Chapter 26. Tunnel | 415
ProSafe M4100 and M7100 Managed Switches
CLI: Create a Tunnel

Configure

(Netgear Switch) #config
(Netgear Switch) (Config)#ip routing
(Netgear Switch) (Config)#ipv6 forwarding
(Netgear Switch) (Config)#ipv6 unicast-routing
(Netgear Switch) (Config)#interface 1/0/1
(Netgear Switch) (Interface 1/0/1)#routing
(Netgear Switch) (Interface 1/0/1)#ip address 192.168.1.1 255.255.255.0
(Netgear Switch) (Interface 1/0/1)#exit
(Netgear Switch) (Config)#interface tunnel 0
(Netgear Switch) (Interface tunnel 0)#ipv6 enable
(Netgear Switch) (Interface tunnel 0)#ipv6 address 2000::1/64
(Netgear Switch) (Interface tunnel 0)#tunnel mode ipv6ip
(Netgear Switch) (Interface tunnel 0)#tunnel source 192.168.1.1
(Netgear Switch) (Interface tunnel 0)#tunnel destination 192.1.168.1.2
(Netgear Switch) (Interface tunnel 0)#exit
(Netgear Switch) (Config)#exit

Switch GSM7328S_1

This example is using 6in4 mode. If you want to use 6to4 mode, configure each unit as below

and be sure the IPv6 prefix s constructed in the format of 2002:V4ADDR::/48.(V4ADDR is the

IPv4 address of the tunnel source port). In this case, IPv4 and the address is 192.168.1.1

and IPv6 prefix is 2002:c0a8:0101..

(Netgear Switch) (Interface tunnel 0) # ipv6 enable
(Netgear Switch) (Interface tunnel 0) # tunnel mode ipv6ip 6to4
(Netgear Switch) (Interface tunnel 0) # tunnel source 192.168.1.1
(Netgear Switch) (Interface tunnel 0) # ipv6 address 2002:c0a8:0101::1/128
(Netgear Switch) (Interface tunnel 0) # exit
(Netgear Switch) (Config) # ipv6 route 2002::/16 interface tunnel 0