Use ipv6 address in Cisco IOS interface-configuration mode to assign an IPv6 address with slash notation, such as 2001:db8::1/64. Enable ipv6 unicast-routing globally first when the router must forward IPv6 packets. section 20.4 section 20.4.1
Remember these operational details:
- IOS accepts correctly abbreviated IPv6 addresses and displays addresses in their shortest abbreviated form. section 20.4.1
- Configuring a global IPv6 address automatically generates a link-local address unless one is manually configured. section 20.4.1 section 20.5.3
- IPv6 addresses accumulate on an interface instead of overwriting one another; remove an unwanted address with the no command. section 20.4.1
- Configure a specific link-local address with ipv6 address address link-local; a new link-local address replaces the existing one. section 20.5.3
Assign and verify an interface address
R1(config)# interface g0/0 R1(config-if)# ipv6 address 2001:db8::1/64 R1(config-if)# no shutdown R1(config-if)# do show ipv6 interface brief GigabitEthernet0/0 [up/up] FE80::260:2FFF:FE62:B801 2001:DB8::1 The command assigns the global address; IOS also shows the automatically generated link-local address.
