interfaces openvpn <vtunx> server subnet <ipv4net>
Specifies the subnet from which client IP addresses are allocated.
- vtunx
- The identifier for the OpenVPN interface. This may be vtun0 to vtunx, where x is a non-negative integer.
- ipv4net
- The subnet from which client IP addresses are allocated. The prefix for the subnet must be /29 or smaller.
Configuration mode
interfaces {
openvpn vtunx {
server {
subnet ipv4net
}
}
}
This command is used on the server side of a remote access OpenVPN connection and specifies the subnet on which the remote clients will receive IP addresses.
Use this command to specify the subnet from which client IP addresses are allocated.
Use the set form of this command to specify the subnet.
Use the delete form of this command to remove the subnet configuration.
Use the show form of this command to view the subnet configuration.