»ùÓÚipv6µÄÖÐСÐÍÆóÒµÍøµÄÉè¼ÆºÍʵÏÖ ÏÂÔر¾ÎÄ

ÄϾ©Óʵç´óѧͨ´ïѧԺ2016½ì±¾¿ÆÉú±ÏÒµÉè¼Æ£¨ÂÛÎÄ£© bgp router-id 3.3.3.3 //// ÉèÖÃBGPµÄrouter-idΪ3.3.3.3 bgp log-neighbor-changes

neighbor 2016:B13::B1 remote-as 65111

! //// ºÍÔËÓªÉÌIPv6ISP1ÎïÀí¿Ú½¨Á¢ÁÚ¾Ó address-family ipv4

no neighbor 2016:B13::B1 activate

no auto-summary //// ¹Ø±Õ×Ô¶¯»ã×Ü no synchronization //// ¹Ø±Õͬ²½ exit-address-family !

address-family ipv6 //// ¿ªÆôIPv6µØÖ·´Ø

neighbor 2016:B13::B1 activate //// ÔÚIPv6µØÖ·´Øϼ¤»îBGPÁÚ¾Ó redistribute ospf 100 match internal external 1 external 2 include-connected ! //// ÔÚBGPÏÂÖØ·Ö·¢OSPFЭÒé no synchronization //// ¹Ø±Õͬ²½ exit-address-family !

ͼ3.5ÇøÓò1½á¹¹

3. ÇøÓò2ÊÇ¿Í»§Í¨¹ýIPv4ISP1£¬·ÃÎʹ«Ë¾ÍøÂçÍê³ÉÒµÎñ½»Á÷¡£ÆäÖÐR4Æô

21

ÄϾ©Óʵç´óѧͨ´ïѧԺ2016½ì±¾¿ÆÉú±ÏÒµÉè¼Æ£¨ÂÛÎÄ£©

ÓÃ˫ջЭÒ飬ÔÚÓëIPv4ISP1ÏàÁ¬µÄ½Ó¿ÚÉÏÅäÖÃIPv4µØÖ·¡£Ê×ÏÈÔÚIPv4µÄÍøÂçÏ´ﵽR4ºÍIPv4userÄܹ»Ï໥ͨÐÅ£¬Ò²¾ÍÊÇÔÚIPv4ÏÂR4ºÍIPv4ISP1½¨Á¢EBGPÁÚ¾Ó£¬IPv4ºÍIPv4ISP1Ò²½¨Á¢EBGPÁÚ¾Ó¡£ÔÚR4ÉϵÄBGPÅäÖÃÈçÏ£º

router bgp 12345 //// ÔÚ·ÓÉÆ÷ÉÏ¿ªÆôBGPЭÒ飬ASºÅ12345 no synchronization bgp log-neighbor-changes

redistribute ospf 100 //// ÔÚBGPЭÒéÏÂÖØ·Ö·¢OSPFЭÒé neighbor 192.168.101.1 remote-as 65222

! //// ºÍÔËÓªÉÌIPv4ISP1ÎïÀí¿Ú½¨Á¢BGPÁÚ¾Ó no auto-summary //// ¹Ø±Õ×Ô¶¯»ã×Ü !

È·±£R4ºÍIPv4userÄܹ»ÔÚIPv4ÏÂͨÐź󣬽¨Á¢tunnelËíµÀ£¬ÁîR4ÓëIPv4user½¨Á¢Á¬½Ó´©Ô½IPv4ISP1µÄÍøÂçÖ±½ÓÏàÁ¬¡£ÔÚR4ÉÏtunnelÅäÖÃÈçÏ£º

interface Tunnel0 //// ´´½¨tunnelËíµÀÃüÃûΪtunnel0 no ip address //// ²»ÅäÖÃIPv4µØÖ· no ip redirects

ipv6 address 2002:C0A8:6504::1/64 //// ÅäÖÃIPv6 tunnelËíµÀµØÖ· tunnel source Ethernet0/0 //// tunnelËíµÀµÄÔ´µØַΪE0/0 tunnel mode ipv6ip 6to4 //// tunnelËíµÀµÄģʽΪ6to4ģʽ

ͼ3.6 ÇøÓò2½á¹¹

4. ÇøÓò3ÊÇÒìµØµÄÔËÐÐΪIPv6µÄ·Ö¹«Ë¾£¬Òª¿çÔ½IPv4ISP2Óëĸ¹«Ë¾Í¨ÐÅ¡£ÔÚ

22

ÄϾ©Óʵç´óѧͨ´ïѧԺ2016½ì±¾¿ÆÉú±ÏÒµÉè¼Æ£¨ÂÛÎÄ£©

R5ºÍIPv6userÉÏͬʱÆôÓÃ˫ջЭÒ飬Ôڶ˿ڷֱðÅäÖÃIPv4µØÖ·£¬²¢ÇÒÔËÐÐBGP·ÓÉЭÒ飬ÓëÔËÓªÉÌIPv4ISP2½¨Á¢EBGPÁÚ¾Ó¹Øϵ£¬±£Ö¤µÍ²ãIPv4Êý¾ÝÁªÍ¨¡£R5ºÍIPv6userµÄ²¿·Ö½Ó¿ÚÅäÖúÍBGPÅäÖÃÈçÏ£º

R5£º

interface Ethernet0/1 //// ÄÚÍø½Ó¿Ú no ip address half-duplex

ipv6 address 2016:25::5/64 //// ÅäÖÃIPv6µØÖ·

ipv6 ospf 100 area 0 //// ½Ó¿ÚÏÂÔËÐÐOSPFv3·ÓÉЭÒé !

interface Ethernet0/2 //// Ë«Õ»½Ó¿ÚµØÖ· ip address 192.168.201.5 255.255.255.0 £¡ //// ÅäÖÃIPv4µØÖ· half-duplex !

interface Ethernet0/3 //// ÎÞÓÃ½Ó¿Ú no ip address

shutdown //// ¹Ø±Õ½Ó¿Ú half-duplex !

router bgp 12345 //// ¿ªÆôBGP·ÓÉЭÒ飬ASºÅΪ12345 no synchronization //// ¹Ø±Õͬ²½ bgp log-neighbor-changes

neighbor 192.168.201.1 remote-as 65333

! //// ºÍÔËÓªÉÌIPv4ISP2½¨Á¢ÁÚ¾Ó¹Øϵ no auto-summary //// ¹Ø±Õ×Ô¶¯»ã×Ü !

IPv6user£º

interface Ethernet0/0 //// Ë«Õ»½Ó¿Ú

ip address 192.168.200.2 255.255.255.0 //// ÉèÖÃIPv4µØÖ· half-duplex !

router bgp 65333 //// ¿ªÆôBGP·ÓÉЭÒ飬ASºÅΪ65333 no synchronization //// ¹Ø±Õͬ²½

23

ÄϾ©Óʵç´óѧͨ´ïѧԺ2016½ì±¾¿ÆÉú±ÏÒµÉè¼Æ£¨ÂÛÎÄ£© bgp log-neighbor-changes

neighbor 192.168.200.1 remote-as 65333

//// ºÍÔËÓªÉÌIPv4ISP2½¨Á¢ÁÚ¾Ó¹Øϵ

neighbor 192.168.200.1 next-hop-self

//// ¸ü¸ÄBGPÏÂÒ»Ìø no auto-summary //// ¹Ø±Õ×Ô¶¯»ã×Ü

½¨Á¢ÆðµÍ²ãIPv4ͨÐźó£¬ÔÙ¿ªÊ¼´´½¨6to4ËíµÀ£¬Ê¹IPv6userºÍĸ¹«Ë¾ÄÚÍøͨÐÅ¡£ÔÚIPv6userºÍR5ÉϵÄtunnelËíµÀÅäÖÃÈçÏ£º

R5£º

interface Tunnel0 //// ´´½¨tunnelËíµÀ£¬ÃüÃûΪtunnel0 no ip address //// ²»Åä×öIPv4µØÖ· no ip redirects

ipv6 address 2002:C0A8:C905::1/64 //// ÅäÖÃIPv6 tunnelËíµÀµØÖ· tunnel source Ethernet0/2 //// tunnelËíµÀµÄÔ´µØַΪE0/2 tunnel mode ipv6ip 6to4 //// tunnelËíµÀµÄģʽΪ6to4ģʽ !

ͼ3.7ÇøÓò3½á¹¹

Ä£ÄâʵÑéÖеÄÆäÓàÅäÖ㬾ùÔÚ¸½Â¼ÖС£ÔÚ±¾ÎÄÖв»ÔÙÖصãÃèÊö¡£

3.2.4 Éè¼ÆÖпÉÄÜ´æÔÚµÄÎÊÌâ

±¾ÎÄÖеķ½°¸ÔÚ¿¼ÂǹýÆóÒµ³É±¾ºÍʵ¼ÊÊÕÒæºó£¬Ö÷Òª²ÉÓõÄÊÇË«Õ»¼æÈÝģʽºÍTunnelËíµÀЭÒéÏà½áºÏµÄ·½Ê½Éè¼ÆµÄ¡£²¢²»Êǵ¥´¿µÄÈ«Ë«Õ»ÔËÐУ¬Ò²²»Êǵ¥

24