On Cisco IOS, IPv6 settings are often disabled by default. The following commands are used to enable IPv6 networking and verious IPv6 suboptions.
Global Configuration(s)
ipv6 unicast-routing //a global configuration that enables unicast routing
ipv6 route <dst address> <next hop> // configures a static route on device
Interface Configuration(s)
ipv6 address <ipv6 address>/<subnet mask> // assigns ipv6 address to interface
ipv6 address autoconfig // autoassign ipv6 address if ipv6 if router annoucements are present
ipv6 address <prefix> eui-64 // assign ipv6 address built from the prefix and interface's MAC address
Show Command(s)
show ipv6 interface //displays ipv6 configuration details of interfaces // "brief" can be appended to only display status and ipv6 addresses
show ipv6 routes //displays all ipv6 routes on the device
Static ipv6 address assignment
R1#configure terminal
R1(conf)# ipv6 unicast-routing
R1(conf)# interface ethernet 0/0
R1(config-if)# ipv6 address 2001:db8:0:1/64
Ri (config-if)#exit
R1(conf)# no shutdown
R1(conf)#end
Ipv6 autoconfiguration
An ipv6 address can be assigned to an interface by just giving it an ipv6 network prefix and selecting the eui-64 option
R1(config-if)# ipv6 address 2001:db8:1:/64 eui-64
If there is an router on the network with ipv6 enabled and sending out router annoucements, an ipv6 address can be assigned by using the autoconfigure option. The router will automatically generate an ipv6 address based on the router annoucements received.
R1(config-if)# ipv6 address autoconfig