Chapter2IPv6AddressConguration
AlltheseintegersarehexintegersandthosefromAtoFrepresent10to15.Eachinteger
ofanaddressmustbeindicatedexceptforthestartingzero.Thisisarelativelystandard
waytoexpressanIPv6address.Apartfromthis,therearetwomorewaysthatareclearer
andeasiertouse.
SomeIPv6addressescontainasuccessionofzeros,similartothesecondandthethird
examplesasmentionedabove.Inthiscase,thesuccessionofzeroscanberepresented
by"pacing",asprovidedintherelevantstandard.
Thatistosay,theaddress2000:0:0:0:0:0:0:1canbeexpressedas2000::1,ofwhichthe
twocolonsmeanthattheaddresscanbeextendedtoacomplete128-bitaddress.Inthis
method,onlywhenthe16-bitgroupisall-zero,canitbesubstitutedbytwocolons,which
canonlybeusedonceintheaddress.
Table2-7listsexamplesforcompressedformatsofIPv6addresses.
Table2-7IPv6AddressCompression
AddTypeNormalFormatCompressedFormat
Unicastaddress1080:0:0:0:8:800:200C:417A1080::8:800:200C:417A
MulticastaddressFF01:0:0:0:0:0:0:101FF01::101
Loopbackaddress0:0:0:0:0:0:0:1::1
Unspeciedaddress0:0:0:0:0:0:0:0::
IntheenvironmentmixedwithIPv4andIPv6,theremaybeathirdway.Theleast
signicant32-bitinanIPv6addresscanbeusedtoexpressanIPv4addressinamixed
way:X:X:X:X:X:X:d.d.d.d,amongwhichXrepresentsa16-bitanddindicatesa8-bit
decimalinteger.
Forexample,theaddress0:0:0:0:0:0:10.0.0.1isalegalIPv4address.Therefore,this
addressisexpressedas:10.0.0.1bycombiningthetwopossibleexpressions.
AnIPv6addressconsistsoftwoparts:subnetprexandinterfaceidentier.AnIPnode
addressisexpectedtobeexpressedinawaysimilartothatofaCIDRaddress,asan
addresscarryinganextravalue,indicatinghowmanybitsoftheaddressisthemask.
AnIPv6nodeaddressindicatesthelengthofaprexbyseparatingthelengthfromthe
IPv6addresswithaslash.
Forexample,intheaddressof
1030:0:0:0:C9B4:FF12:48AA:1A2B/60,thelengthoftheprexforroutingis60-bits
IPv6HostAddress
AnIPv6hosthasmanyIPv6addressesevenifithasonlyonesingleinterface.AnIPv6
hostcanhavethefollowingunicastaddressessimultaneously.
lThelink-localaddressofeachinterface
lTheunicastaddressofeachinterface,whichcanbeasite-localaddressoroneor
moreaggregableglobaladdresses
2-11
SJ-20140504150128-018|2014-05-10(R1.0)ZTEProprietaryandCondential