Tunnels for IPv6
527
Managed Switches
7. Verify the configuration.
CLI: Create a 6to4 Tunnel on Switch 2
1. Enable routing and IPv6 routing on Switch 2.
2. Configure the IPv4 address on routing port 2/0/1.
3. Configure the IPv6 address on the 6to4 tunnel in the format 2002:V4ADDR::Host/16, in
which where V4ADDR is the source IPv4 address of the tunnel. The prefix length for the
tunnel must be 16.
(Netgear Switch) #show ipv6 route
IPv6 Routing Table - 5 entries
Codes: C - connected, S - static, 6To4 - 6to4 Route, B - BGP Derived
O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF Ext 1, OE2 - OSPF Ext 2
ON1 - OSPF NSSA Ext Type 1, ON2 - OSPF NSSA Ext Type 2
C 2002::/16 [0/0]
via ::, tunnel 0
C 2002:c301:302:1::/64 [0/0]
via ::, 1/0/3
6To4 2002:c301:402::/48 [1/0]
via fe80::c301:301, 01h:25m:23s, tunnel 0
6To4 2002:c301:502::/48 [1/0]
via fe80::c301:301, 00h:44m:11s, tunnel 0
S 8888::/16 [1/0]
via 2002:c301:502::1, tunnel 0
(Netgear Switch) # config
(Netgear Switch) (Config)#ipv6 unicast-routing
(Netgear Switch) (Config)#ip routing
(Netgear Switch) (Config)# interface 2/0/1
(Netgear Switch) (Interface 2/0/1)#routing
(Netgear Switch) (Interface 2/0/1)#ip address 195.1.4.2 255.255.255.0
(Netgear Switch) (Interface 2/0/1)#exit
(Netgear Switch) (Config)#interface tunnel 0
(Netgear Switch) (Interface tunnel 0)#ipv6 address 2002:c301:402::1/16
(Netgear Switch) (Interface tunnel 0)#ipv6 enable
(Netgear Switch) (Interface tunnel 0)#tunnel mode ipv6ip 6to4
(Netgear Switch) (Interface tunnel 0)#tunnel source 195.1.4.2
(Netgear Switch) (Interface tunnel 0)#exit