interfaces openvpn <vtunx> local-address <ipv4>
Specifies the tunnel IP address on the local end of an OpenVPN tunnel.
- vtunx
- The identifier for the OpenVPN interface. This may be vtun0 to vtunx, where x is a non-negative integer.
- ipv4
- Mandatory. An IPv4 address.
- subnet-mask mask
- A subnet mask for the network associated with the local address. A mask is required only when interfaces openvpn <vtunx> device-type tap is set.
Configuration mode
interfaces {
openvpn vtunx {
local-address ipv4 {
subnet-mask mask
}
}
}
Use this command to specify the tunnel IP address on the local end of the OpenVPN tunnel. Only a single address can be specified. This address is required for site-to-site mode OpenVPN tunnels but not for remote access mode tunnels. The subnet mask is required only when the interface is configured as a broadcast interface by using the interfaces openvpn vtunx device-type tap command.
Use the set form of this command to specify the tunnel IP address on the local end of a tunnel.
Use the delete form of this command to remove the tunnel IP address from the local end of a tunnel.
Use the show form of this command to view the tunnel IP address on the local end of a tunnel.