Cisco Systems 3750E manual 39-14

Models: 3750E

1 1236
Download 1236 pages 40.08 Kb
Page 966
Image 966

Chapter 39 Configuring IPv6 Unicast Routing

Configuring IPv6

 

Command

Purpose

Step 4

 

 

interface interface-id

Enter interface configuration mode, and specify the Layer 3

 

 

interface to configure.

Step 5

 

 

no switchport

Remove the interface from Layer 2 configuration mode (if it is a

 

 

physical interface).

Step 6

 

 

ip address ip-address mask [secondary]

Specify a primary or secondary IPv4 address for the interface.

Step 7

 

 

ipv6 address ipv6-prefix/prefix length eui-64

Specify a global IPv6 address with an interface identifier in the

 

 

low-order 64 bits of the IPv6 address. Specify only the network

 

 

prefix; the last 64 bits are automatically computed from the

 

 

switch MAC address. This enables IPv6 processing on the

 

or

interface.

 

 

 

ipv6 address ipv6-addresslink-local

Specify a link-local address on the interface to be used instead

 

 

of the link-local address that is automatically configured when

 

 

IPv6 is enabled on the interface. This command enables IPv6

 

or

processing on the interface.

 

ipv6 enable

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.

Step 8

 

 

end

Return to privileged EXEC mode.

Step 9

 

 

show interface interface-id

Verify your entries.

 

show ip interface interface-id

 

 

show ip v6 interface interface-id

 

Step 10

 

 

copy running-config startup-config

(Optional) Save your entries in the configuration file.

 

 

 

To disable IPv4 routing, use the no ip routing global configuration command. To disable IPv6 routing, use the no ipv6 unicast-routingglobal 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-64or no ipv6 address ipv6-addresslink-localinterface configuration command. To remove all manually configured IPv6 addresses from an interface, use the no ipv6 address interface configuration command without arguments. To disable IPv6 processing on an interface that has not been explicitly configured with an IPv6 address, use the no ipv6 enable interface configuration command.

This example shows how to enable IPv4 and IPv6 routing on an interface.

Switch(config)# sdm prefer dual-ipv4-and-ipv6 default

Switch(config)# ip routing

Switch(config)# ipv6 unicast-routing

Switch(config)# interface gigabitethernet1/0/11

Switch(config-if)# no switchport

Switch(config-if)#ip address 192.168.99.1 244.244.244.0

Switch(config-if)#ipv6 address 2001:0DB8:c18:1::/64 eui 64

Switch(config-if)# end

 

Catalyst 3750-E and 3560-E Switch Software Configuration Guide

39-14

OL-9775-02

Page 966
Image 966
Cisco Systems 3750E manual 39-14