Chapter16IPv6TunnelConguration
tunneldestinationipv62078::28
!</ipv6_TUNNEL>
R1(config)#showipinterfacev6_tunnel2
v6_tunnel2AdminStatusisup,PhyStatusisup,lineprotocolisup
Internetaddressis27.0.1.1/16
Broadcastaddressis255.255.255.255
IPMTUis1460bytes
16.1.3.3Example:Configuringa6to4Tunnel
CongurationDescription
AsshowninFigure16-8,supposeR1andR2aredual-stackrouterswhereasPC1and
PC2areIPv6hosts.Thisexampledescribeshowtocongurea6to4tunnel.
Figure16-86to4TunnelCongurationExample
CongurationFlow
A6to4tunnelisofv6natureandthusIPv6needstobeenabledtoconnectthe6to4node
prexedwith2002::/16.ThesourceendofthetunnelisboundwiththeIPv4addressof
thelocalrouter,andnodestinationaddressisrequired.Thetunneladdressmustassume
a2002::/16prex.
1.Createa6to4tunnel,congureIPv6addresses,andenableIPv6.Therst48bitsof
thetunneladdressandthe6to4sitesareofaxedformatandgeneratedaccordingto
thesourceIPv4addressofthetunnel:Convertthex.x.x.xofthesourceIPv4address
ofthetunnelintoahexadecimalyyyy:yyyy,andthenadd2002::/16toittoforma48-bit
prex2002:yyyy:yyyy::/48.
2.Enterthetunnelcongurationmodefromtheglobalmode,andthenenterthe6to4
tunnelinterfacetobecongured.
3.Congurethetunnelmodeandthesourceaddress.
4.AdvertisethetunnelroutethroughstaticroutingorBGP4+.
CongurationCommands
CongurationonR1:
16-11
SJ-20140504150128-018|2014-05-10(R1.0)ZTEProprietaryandCondential