ipv6
This command sets the cellular interface for IPv6.
Syntax
ipv6 {address|dhcp-client|enable|nd}
Command |
Description |
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
address |
Defines an IPv6 address. You can use the following optional commands:
|
|||||||||
dhcp-client pd |
The device as a DHCPv6 client receives a prefix (on its WAN interface) for delegation and uses it to perform SLAAC connectivity on its LAN side (sending prefix in ICMPv6 Router Advertisement message). |
|||||||||
enable |
Enables IPv6 on the cellular interface. | |||||||||
nd autoconfig default-route |
Command Mode
Privileged User
Note
■ | The command is applicable only to PPP-based cellular modems. |
■ | To disable IPv6: no ipv6 enable |
Example
This example enables RFC 7278 support where the device uses prefixes received in Router Advertisment ICMPv6 message, for SLAAC on its LAN side as-is:
(config-data)# interface cellular 0/0
(conf-cellular-0/0)# ipv6 enable
(conf-cellular-0/0)# ipv6 address autoconfig extnd-prfx-lan
(conf-cellular-0/0)# ipv6 nd autoconfig default-route
On any given LAN interface:
ipv6 enable
ipv6 nd ra interval 15 10
ipv6 nd pd Cellular 0/0/1 ::/64
no ipv6 nd ra suppress
Once configured, the device does the following:
■ | Generates an IPv6 address addr1 using EUI64 (and MAC address of the cellular interface) and installs <addr1>/128 on its cellular interface, which creates a native connected route on that subnet (128) is created. |
■ | Generates an IPv6 adddress addr2 using EUI64 (and MAC address of LAN interface) and installs <add2>/64 on the LAN interface, which creates a native connected route on that subnet (64). |
■ | Sets the default gateway to the source address of the original Router Advertisement ICMPv6 message on which the prefix was received on the WAN side (cellular network). |
■ | Sends the RA on the LAN interface with the prefix received on the Router Adv. message received on the WAN side (cellular network). The prefix has both its flags of onlink and autoconf turned on ("1"). |
Any host connecting to the device on its LAN side can either set its IPv6 address as “automatic”, which uses the prefix along with EUI64 to generate a Global Unicast address for the host itself, or configure a static address based on the prefix that the RA includes.