Chapter16IPv6TunnelConguration
CongurationFlow
The6in4tunnelisofv6natureandthusIPv6needstobeenabled.Thesourceaddress
ofthetunnelistheIPv4addressofthelocalrouter,whereasthedestinationaddressis
theIPv4addressofthepeerrouter.Theremustbearouteforinterworkingbetweenthe
sourceaddressandthedestinationaddressofthetunnel(viatheIPv4routingprotocol,
thestaticroutingprotocolorotherroutingprotocols).
1.Create6in4tunnelinterfacesandenableIPv6onthem.
2.Enterthetunnelcongurationmodefromtheglobalmode,andthenenterthe6in4
tunnelinterfacetobecongured.
3.Congurethetunnelmode,thesourceaddress,andthedestinationaddress.
CongurationCommands
CongurationonR1:
R1(config)#interfacev6_tunnel3
R1(config-if-v6_tunnel3)#ipv6enable
R1(config-if-v6_tunnel3)#ipv6address3172::27/64
R1(config-if-v6_tunnel3)#exit
R1(config)#ipv6-tunnel-config
R1(config-ipv6-tunnel)#interfacev6_tunnel3
R1(config-ipv6-tunnel-if-v6_tunnel3)#tunnelmodeipv6ip6in4
R1(config-ipv6-tunnel-if-v6_tunnel3)#tunneldestinationipv433.1.1.28
R1(config-ipv6-tunnel-if-v6_tunnel3)#tunnelsourceipv433.1.1.27
R1(config-ipv6-tunnel-if-v6_tunnel3)#exit
R1(config-ipv6-tunnel)#exit
R1(config)#interfacegei-2/4
R1(config-if-gei-2/4)#noshutdown
R1(config-if-gei-2/4)#ipaddress33.1.1.27255.255.0.0
R1(config-if-gei-2/4)#exit
R1(config)#interfacegei-2/3
R1(config-if-gei-2/3)#noshutdown
R1(config-if-gei-2/3)#ipv6enable
R1(config-if-gei-2/3)#ipv6address2700::1/64
R1(config-if-gei-2/3)#exit
CongurationonR2:
R2(config)#interfacev6_tunnel3
R2(config-if-v6_tunnel3)#ipv6enable
R2(config-if-v6_tunnel3)#ipv6address3172::28/64
R2(config-if-v6_tunnel3)#exit
R2(config)#ipv6-tunnel-config
R2(config-ipv6-tunnel)#interfacev6_tunnel3
R2(config-ipv6-tunnel-if-v6_tunnel3)#tunnelmodeipv6ip6in4
16-7
SJ-20140504150128-018|2014-05-10(R1.0)ZTEProprietaryandCondential