939
Configuring IPv6 Unicast Routing
Configuring IPv6
DETAILED STEPS
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.
Command Purpose
1. configure terminal Enter global configuration mode.
2. sdm prefer dual-ipv4-and-ipv6 {default |
routing | vlan}
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.
3. end Return to privileged EXEC mode.
4. reload Reload the operating system.
5. configure terminal Enter global configuration mode.
6. ip routing Enable IPv4 routing on the switch.
7. ipv6 unicast-routing Enable forwarding of IPv6 data packets on the switch.
8. interface interface-id Enter interface configuration mode, and specify the
Layer 3 interface to configure.
9. no switchport Remove the interface from Layer 2 configuration mode
(if it is a physical interface).
10. ip address ip-address mask [secondary] Specify a primary or secondary IPv4 address for the
interface.
11. ipv6 address ipv6-prefix/prefix length
eui-64
or
ipv6 address
ipv6-address link-local
or
ipv6 enable
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.
12. end Return to privileged EXEC mode.
13. show interface interface-id
show ip interface interface-id
show ipv6 interface interface-id
Verify your entries.
14. copy running-config startup-config (Optional) Save your entries in the configuration file.