Configuring IPv6 Unicast Routing
Configuring IPv6
DETAILED STEPS
Command
1.
configure terminal
2.
sdm prefer dual-ipv4-and-ipv6 {default |
routing | vlan}
3.
end
4.
reload
5.
configure terminal
6.
ip routing
7.
ipv6 unicast-routing
8.
interface interface-id
9.
no switchport
10.
ip address ip-address mask [secondary]
11.
ipv6 address ipv6-prefix/prefix length
eui-64
or
ipv6 address ipv6-address link-local
or
ipv6 enable
12.
end
13.
show interface interface-id
show ip interface interface-id
show ipv6 interface interface-id
14.
copy running-config startup-config
To disable IPv4 routing, use the no ip routing global configuration command. To disable IPv6 routing, use the no ipv6
unicast-routing global configuration command. To remove an IPv4 address from an interface, use the no ip address
ip-address mask interface configuration command. To remove an IPv6 address from an interface, use the no ipv6
address ipv6-prefix/prefix length eui-64 or no ipv6 address ipv6-address link-local interface configuration command.
Purpose
Enter global configuration mode.
Select an SDM template that supports IPv4 and IPv6.
default—Set the switch to the default template to
balance system resources.
routing—Set the switch to the routing template to
support IPv4 and IPv6 routing, including IPv4
policy-based routing.
vlan—Maximize VLAN configuration on the switch
with no routing supported in hardware.
Return to privileged EXEC mode.
Reload the operating system.
Enter global configuration mode.
Enable IPv4 routing on the switch.
Enable forwarding of IPv6 data packets on the switch.
Enter interface configuration mode, and specify the
Layer 3 interface to configure.
Remove the interface from Layer 2 configuration mode
(if it is a physical interface).
Specify a primary or secondary IPv4 address for the
interface.
Specify a global IPv6 address. Specify only the network
prefix; the last 64 bits are automatically computed from
the switch MAC address.
Specify a link-local address on the interface to be used
instead of the automatically configured link-local
address when IPv6 is enabled on the interface.
Automatically configure an IPv6 link-local address on
the interface, and enable the interface for IPv6
processing. The link-local address can only be used to
communicate with nodes on the same link.
Return to privileged EXEC mode.
Verify your entries.
(Optional) Save your entries in the configuration file.
939