Configuration manual

IPv6 Routing Configuration
25-6 Configuring and Managing IPv6
Enabling an Interface for IPv6 Routing
In addition to enabling an interface for routing, you must enable unicast routing on the switch
with the ipv6 unicast-routing command in global router configuration mode.
To enable an interface, including VLAN, tunnel, and loopback interfaces, for IPv6 routing, in
router interface configuration mode:
•Use the ipv6 address command to configure a global IPv6 address on an interface. This
command also enables IPv6 processing on the interface and automatically generates a link-
local address.
•Use the ipv6 enable command to enable IPv6 processing on an interface that has not been
configured with an explicit IPv6 address. This command also automatically generates a link-
local address for the interface. The interface cannot route until it is assigned a global IPv6
unicast address.
Refer to “Creating Tunnel Interfaces” on page 25-7 for information about creating tunnel
interfaces.
Configuration Examples
Procedure 25-2 describes the tasks and commands for configuring an IPv6 routing interface. Refer
to the CLI Reference for your platform for more information about the commands listed below.
The following code example assigns a global IPv6 address to VLAN 100, which also generates a
link-local address and enables IPv6 processing. The eui64 option is used to generate the lower 64
bits of the address. The interface’s configuration is then displayed.
C5(su)->router
C5(su)->router>enable
C5su)->router#configure
Enter configuration commands:
C5(su)->router(Config)#ipv6 unicast-routing
C5(su)->router(Config)#interface vlan 100
C5(su)->router(Config-if(Vlan 100))#ipv6 address 3FFE:501:FFFF:101/64 eui64
C5(su)->router(Config-if(Vlan 100))#exit
Procedure 25-2 Configuring an IPv6 Routing Interface
Step Task Command(s)
1. Optionally, in router interface configuration
mode, enable an interface for IPv6 processing
without assigning a global IPv6 address. A link-
local IPv6 address is automatically configured
on the interface.
Note that the interface cannot route until it is
assigned a global IPv6 unicast address.
ipv6 enable
2. Optionally, assign a global IPv6 address to an
interface and enable the interface for IPv6
processing. A link-local IPv6 address is
automatically configured on the interface.
ipv6 address {ipv6-addr/prefix-
length | ipv6-prefix/prefix-length
eui64}
3. Optionally, configure the maximum transmission
unit (MTU) size of IPv6 packets that can be sent
on the interface.
ipv6 mtu bytes
4. In router privileged execution mode, display
information about one or all configured IPv6
interfaces.
show ipv6 interface [vlan vlan-id |
tunnel tunnel-id | loopback loop-id]