interfaces openvpn <vtunx> ipv6 address
Assigns an IPv6 address to an OpenVPN interface.
- vtunx
- The identifier for the OpenVPN interface. This may be vtun0 to vtunx, where x is a non-negative integer.
- autoconf
- Generates an IPv6 address using the Stateless Address Autoconfiguration (SLAAC) protocol. Generate this address if the interface is performing a host function rather than a router function. This address can be specified in addition to static IPv6, static IPv4, and IPv4 DHCP addresses on the interface.
- ipv6prefix
- A 64-bit IPv6 address prefix used to configure an IPv6 address in EUI-64 format. The system concatenates this prefix with a 64-bit EUI-64 address derived from the 48-bit MAC address of the interface.
- link-local ipv6-address
- Specifies the 128-bit IPv6 address.
Configuration mode
interfaces {
openvpn vtunx {
ipv6 {
address {
autoconf
eui64 ipv6prefix
link-local ipv6address
}
}
}
}
Use this command to assign an IPv6 address to an OpenVPN interface.
Employ the autoconf keyword to direct the system to autoconfigure the address, using the SLAAC protocol defined in RFC 4862. Alternatively, you can provide an EUI-64 IPv6 address prefix so that the system constructs the IPv6 address.
If you want the system to use SLAAC to acquire addresses on this interface, then, in addition to setting this parameter, you must also disable IPv6 forwarding. Disable forwarding either globally by using the system ipv6 disable-forwarding command or specifically on this interface by using the interfaces openvpn <vtunx> ipv6 disable-forwarding command.
Use the set form of this command to assign an IPv6 address to an interface.
Use the delete form of this command to delete an IPv6 address from an interface.
Use the show form of this command to view settings of an IPv6 address configuration.