Chapter16IPv6TunnelConguration
16.1.3.2Example:Configuringa4in6Tunnel
CongurationDescription
AsshowninFigure16-7,supposeR1andR2aredual-stackrouterswhereasPC1and
PC2areIPv4hosts.Thisexampledescribeshowtocongurea4in6tunnel.
Figure16-74in6TunnelCongurationExample
CongurationFlow
The4in6tunnelisofv4nature.ThesourceaddressofthetunnelistheIPv6addressof
thelocalrouter,whereasthedestinationaddressistheIPv6addressofthepeerrouter.
Theremustbearouteforinterworkingbetweenthesourceaddressandthedestination
addressofthetunnel(viatheIPv6routingprotocol,thestaticroutingprotocolorother
routingprotocols).
1.Createa4in6tunnelandcongureIPv4addresses.
2.Enterthetunnelcongurationmodefromtheglobalmode,andthenenterthe4in6
tunnelinterfacetobecongured.
3.Congurethetunnelmode,thesourceaddress,andthedestinationaddress.
CongurationCommands
CongurationonR1:
R1(config)#interfacev6_tunnel2
R1(config-if-v6_tunnel2)#ipaddress27.0.1.1255.255.0.0
R1(config-if-v6_tunnel2)#exit
R1(config)#ipv6-tunnel-config
R1(config-ipv6-tunnel)#interfacev6_tunnel2
R1(config-ipv6-tunnel-if-v6_tunnel2)#tunnelmodeipipv64in6
R1(config-ipv6-tunnel-if-v6_tunnel2)#tunneldestinationipv62078::28
R1(config-ipv6-tunnel-if-v6_tunnel2)#tunnelsourceipv62078::27
R1(config-ipv6-tunnel-if-v6_tunnel2)#exit
R1(config-ipv6-tunnel)#exit
R1(config)#interfacegei-2/4
16-9
SJ-20140504150128-018|2014-05-10(R1.0)ZTEProprietaryandCondential