Mplsvpn跨域optionB第二种方式.doc

上传人:夺命阿水 文档编号:21376 上传时间:2022-07-12 格式:DOC 页数:14 大小:156KB
返回 下载 相关 举报
Mplsvpn跨域optionB第二种方式.doc_第1页
第1页 / 共14页
Mplsvpn跨域optionB第二种方式.doc_第2页
第2页 / 共14页
Mplsvpn跨域optionB第二种方式.doc_第3页
第3页 / 共14页
Mplsvpn跨域optionB第二种方式.doc_第4页
第4页 / 共14页
Mplsvpn跨域optionB第二种方式.doc_第5页
第5页 / 共14页
点击查看更多>>
资源描述

《Mplsvpn跨域optionB第二种方式.doc》由会员分享,可在线阅读,更多相关《Mplsvpn跨域optionB第二种方式.doc(14页珍藏版)》请在课桌文档上搜索。

1、Mpls vpn跨域optionB2011-09-23 13:45:49|分类: MPLS-VPN |标签:mplsvpn跨域optionb |字号大中小订阅 Mpls vpn跨域optionB有两种方式:第一种方式为ASBR之间通过单跳MP-EBGP,ASBR之间必须直联第二种方式为ASBR之间通过多跳MP-EBGP,ASBR之间必须采用tunnel方式,本文只介绍这种方式。Mpls vpn over gre!对于mpls vpn over gre的这种方式,有两种方法可以使VPNv4的下一跳地址在接收路由更新的AS中可达:1 将ASBR之间的tunnel互联地址重分布到IGP;2 ASBR

2、在向PE或RR传递从另一个AS学到的VPNv4的路由时,下一跳为自已,也就是next-hop-self实验拓扑图如下:方法一:默认情况下,R6从AS1学到VPNv4的路由再通告给R10RR时,下一跳地址为R4的F0/0的地址,但是R10学到VPNv4路由的下一跳地址不可达,所以在R4和R6上分别将tunnel的互联地址重新分发到IGP中,这样R10才通将VPNv4的路由传递给R9。在标签交换方面,下一跳地址不改变,就不会重新分配标签。如R9学到的VPNv4的路由分配out标签是由R4分配的。0 packets, 0 bytes tag information set, all rewrites

3、 owned local tag: VPN route head fast tag rewrite with Fa0/0, 192.168.2.9, tags imposed 840 427 via 192.168.0.5, 0 dependencies, recursive next hop 192.168.2.9, FastEthernet0/0 via 192.168.0.5/32 (Default) valid cached adjacencytag rewrite with Fa0/0, 192.168.2.9, tags imposed 840 427Type escape seq

4、uence to abort. 1 10.0.0.1 60 msec 140 msec 168 msec 2 192.168.1.2 MPLS: Labels 232/643 Exp 0 1008 msec 1028 msec 936 msec 3 192.168.1.6 MPLS: Labels 332/643 Exp 0 840 msec 1004 msec 816 msec 4 192.168.1.10 MPLS: Labels 426/643 Exp 0 888 msec 836 msec 768 msec 5 192.168.0.6 MPLS: Label 643 Exp 0 768

5、 msec 812 msec 1176 msec /只有单层标签 6 192.168.2.2 MPLS: Labels 717/939 Exp 0 888 msec 932 msec 936 msec 7 192.168.2.6 MPLS: Labels 813/939 Exp 0 792 msec 740 msec 816 msec 8 10.0.0.5 AS 20 MPLS: Label 939 Exp 0 796 msec 688 msec 984 msec 9 10.0.0.6 AS 20 1032 msec 884 msec 984 msecR11#R4和R6上只保存本AS内的VPN

6、v4的路由。R4#show mpls forwarding-table Local Outgoing Prefix Bytes tag Outgoing Next Hop tag tag or VC or Tunnel Id switched interface 416 Untagged 6.6.6.6/32 0 Fa0/0 192.168.0.2 417 110 1:1:10.0.0.0/30 610 Fa1/1 192.168.1.9 418 Pop tag 192.168.1.16/30 0 Fa1/1 192.168.1.9 419 Pop tag 192.168.1.4/30 0 F

7、a1/1 192.168.1.9 420 303 192.168.1.12/30 0 Fa1/1 192.168.1.9 421 300 192.168.1.0/30 0 Fa1/1 192.168.1.9 422 301 1.1.1.1/32 15844 Fa1/1 192.168.1.9 423 302 2.2.2.2/32 0 Fa1/1 192.168.1.9 424 Pop tag 3.3.3.3/32 0 Fa1/1 192.168.1.9 425 328 5.5.5.5/32 3573 Fa1/1 192.168.1.9 426 Pop tag 192.168.0.6/32 64

8、0 Tu0 point2point 427 138 1:1:11.11.11.11/32 5068 Fa1/1 192.168.1.9 428 137 1:1:192.168.10.0/24 0 Fa1/1 192.168.1.9 R6#show mpls forwarding-table Local Outgoing Prefix Bytes tag Outgoing Next Hop tag tag or VC or Tunnel Id switched interface 608 Untagged 4.4.4.4/32 0 Fa0/0 192.168.0.1 609 Pop tag 19

9、2.168.0.1/32 0 Fa0/0 192.168.0.1 610 Pop tag 192.168.2.12/30 0 Fa1/0 192.168.2.2 611 Pop tag 192.168.2.4/30 0 Fa1/0 192.168.2.2 612 714 192.168.2.16/30 0 Fa1/0 192.168.2.2 613 716 192.168.2.8/30 0 Fa1/0 192.168.2.2 614 Pop tag 7.7.7.7/32 0 Fa1/0 192.168.2.2 615 715 8.8.8.8/32 0 Fa1/0 192.168.2.2 640

10、 717 9.9.9.9/32 0 Fa1/0 192.168.2.2 641 713 10.10.10.10/32 1216 Fa1/0 192.168.2.2 642 Pop tag 192.168.0.5/32 640 Tu0 point2point 643 939 1:1:12.12.12.12/32 610 Fa1/0 192.168.2.2 644 938 1:1:192.168.20.0/24 0 Fa1/0 192.168.2.2 R4的配置:hostname R4!boot-start-markerboot-end-marker!ip subnet-zero!ip cefno

11、 ip domain-lookupmpls label range 400 499mpls label protocol ldp! interface Loopback0no ip directed-broadcast!interface Tunnel0no ip directed-broadcastmpls bgp forwardingtunnel source Loopback0!interface FastEthernet0/0no ip directed-broadcastmpls bgp forwarding!interface FastEthernet1/0no ip addres

12、sno ip directed-broadcastshutdownduplex halfspeed auto! interface FastEthernet1/1no ip directed-broadcastduplex halfspeed autotag-switching ip!router ospf 1log-adjacency-changesredistribute connected subnetsnetwork 4.4.4.4 0.0.0.0 area 0network 192.168.1.8 0.0.0.3 area 0!router bgp 1no bgp default r

13、oute-target filterbgp log-neighbor-changesneighbor 5.5.5.5 remote-as 1neighbor 5.5.5.5 update-source Loopback0neighbor 192.168.0.6 remote-as 2!address-family ipv4neighbor 5.5.5.5 activateno neighbor 192.168.0.6 activateno auto-summaryno synchronizationexit-address-family!address-family vpnv4neighbor

14、 5.5.5.5 activateneighbor 5.5.5.5 send-munity bothneighbor 192.168.0.6 activateneighbor 192.168.0.6 send-munity bothexit-address-family!ip classless!control-plane!line con 0exec-timeout 0 0stopbits 1line aux 0stopbits 1line vty 0 4login!no s aaa enableR6的配置:hostname R6!boot-start-markerboot-end-mark

15、er!ip subnet-zero!ip cefno ip domain-lookupmpls label range 600 699mpls label protocol ldp! interface Loopback0no ip directed-broadcast!interface Tunnel0no ip directed-broadcastmpls bgp forwardingtunnel source Loopback0!interface FastEthernet0/0no ip directed-broadcastmpls bgp forwarding!interface F

16、astEthernet1/0no ip directed-broadcastduplex halfspeed autotag-switching ip! interface FastEthernet1/1no ip addressno ip directed-broadcastshutdownduplex halfspeed auto!router odr!router ospf 1log-adjacency-changesredistribute connected subnetsnetwork 6.6.6.6 0.0.0.0 area 0network 192.168.2.0 0.0.0.

17、3 area 0!router bgp 2no synchronizationno bgp default route-target filterbgp log-neighbor-changesneighbor 10.10.10.10 remote-as 2neighbor 10.10.10.10 update-source Loopback0neighbor 192.168.0.5 remote-as 1no auto-summary!address-family vpnv4neighbor 10.10.10.10 activateneighbor 10.10.10.10 send-muni

18、ty bothneighbor 192.168.0.5 activateneighbor 192.168.0.5 send-munity bothexit-address-family!ip classless!tag-switching tdp router-id Loopback0control-plane!line con 0exec-timeout 0 0stopbits 1line aux 0stopbits 1line vty 0 4login!no s aaa enableend第二种方法:采用next-host-self这时ASBR上同时保存另一个AS的VPN路由,标签也由AS

19、BR分配0 packets, 0 bytes tag information set, all rewrites owned local tag: VPN route head fast tag rewrite with Fa0/0, 192.168.2.9, tags imposed 810 645 via 6.6.6.6, 0 dependencies, recursive next hop 192.168.2.9, FastEthernet0/0 via 6.6.6.6/32 (Default) valid cached adjacency tag rewrite with Fa0/0,

20、 192.168.2.9, tags imposed 810 645R6#show mpls forwarding-table Local Outgoing Prefix Bytes tag Outgoing Next Hop tag tag or VC or Tunnel Id switched interface 608 Untagged 4.4.4.4/32 0 Fa0/0 192.168.0.1 609 Pop tag 192.168.0.1/32 0 Fa0/0 192.168.0.1 610 Pop tag 192.168.2.12/30 0 Fa1/0 192.168.2.2 6

21、11 Pop tag 192.168.2.4/30 0 Fa1/0 192.168.2.2 612 714 192.168.2.16/30 0 Fa1/0 192.168.2.2 613 716 192.168.2.8/30 0 Fa1/0 192.168.2.2 614 Pop tag 7.7.7.7/32 0 Fa1/0 192.168.2.2 615 715 8.8.8.8/32 0 Fa1/0 192.168.2.2 640 717 9.9.9.9/32 0 Fa1/0 192.168.2.2 641 713 10.10.10.10/32 0 Fa1/0 192.168.2.2 642

22、 Pop tag 192.168.0.5/32 5068 Tu0 point2point 643 939 1:1:12.12.12.12/32 2956 Fa1/0 192.168.2.2 644 938 1:1:192.168.20.0/24 0 Fa1/0 192.168.2.2 645 427 1:1:11.11.11.11/32 0 Tu0 point2point 646 428 1:1:192.168.10.0/24 0 Tu0 point2point 647 417 1:1:10.0.0.0/30 0 Tu0 point2point R4#show mpls forwarding-

23、table Local Outgoing Prefix Bytes tag Outgoing Next Hop tag tag or VC or Tunnel Id switched interface 416 Untagged 6.6.6.6/32 0 Fa0/0 192.168.0.2 417 110 1:1:10.0.0.0/30 4894 Fa1/1 192.168.1.9 418 Pop tag 192.168.1.16/30 0 Fa1/1 192.168.1.9 419 Pop tag 192.168.1.4/30 0 Fa1/1 192.168.1.9 420 303 192.

24、168.1.12/30 0 Fa1/1 192.168.1.9 421 300 192.168.1.0/30 0 Fa1/1 192.168.1.9 422 301 1.1.1.1/32 15844 Fa1/1 192.168.1.9 423 302 2.2.2.2/32 0 Fa1/1 192.168.1.9 424 Pop tag 3.3.3.3/32 0 Fa1/1 192.168.1.9 425 328 5.5.5.5/32 3573 Fa1/1 192.168.1.9 426 Pop tag 192.168.0.6/32 2680 Tu0 point2point 427 138 1:

25、1:11.11.11.11/32 5068 Fa1/1 192.168.1.9 428 137 1:1:192.168.10.0/24 0 Fa1/1 192.168.1.9 429 644 1:1:192.168.20.0/24 0 Tu0 point2point 448 643 1:1:12.12.12.12/32 0 Tu0 point2point 449 609 1:1:10.0.0.4/30 0 Tu0 point2point Type escape sequence to abort. 1 10.0.0.1 112 msec 88 msec 100 msec 2 192.168.1

26、.2 MPLS: Labels 205/448 Exp 0 912 msec 884 msec 936 msec 3 192.168.1.6 MPLS: Labels 329/448 Exp 0 984 msec 1008 msec 884 msec 4 192.168.1.10 MPLS: Label 448 Exp 0 936 msec 812 msec 888 msec 5 192.168.0.6 MPLS: Label 643 Exp 0 840 msec 764 msec 860 msec /标签由448变成643 6 192.168.2.2 MPLS: Labels 717/939

27、 Exp 0 912 msec 764 msec 1080 msec 7 192.168.2.6 MPLS: Labels 813/939 Exp 0 1008 msec 884 msec 864 msec 8 10.0.0.5 AS 20 MPLS: Label 939 Exp 0 744 msec 764 msec 792 msec 9 10.0.0.6 AS 20 864 msec 812 msec 888 msecR4的配置router ospf 1log-adjacency-changesnetwork 4.4.4.4 0.0.0.0 area 0network 192.168.1.

28、8 0.0.0.3 area 0!router bgp 1no bgp default route-target filterbgp log-neighbor-changesneighbor 5.5.5.5 remote-as 1neighbor 5.5.5.5 update-source Loopback0neighbor 192.168.0.6 remote-as 2!address-family ipv4neighbor 5.5.5.5 activateno neighbor 192.168.0.6 activateno auto-summaryno synchronizationexi

29、t-address-family!address-family vpnv4neighbor 5.5.5.5 activateneighbor 5.5.5.5 send-munity bothneighbor 5.5.5.5 next-hop-selfneighbor 192.168.0.6 activateneighbor 192.168.0.6 send-munity bothexit-address-family!R6的配置router ospf 1log-adjacency-changesnetwork 6.6.6.6 0.0.0.0 area 0network 192.168.2.0

30、0.0.0.3 area 0!router bgp 2no synchronizationno bgp default route-target filterbgp log-neighbor-changesneighbor 10.10.10.10 remote-as 2neighbor 10.10.10.10 update-source Loopback0neighbor 192.168.0.5 remote-as 1no auto-summary! address-family vpnv4neighbor 10.10.10.10 activateneighbor 10.10.10.10 send-munity bothneighbor 10.10.10.10 next-hop-selfneighbor 192.168.0.5 activateneighbor 192.168.0.5 send-munity bothexit-address-family!

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 在线阅读 > 生活休闲


备案号:宁ICP备20000045号-1

经营许可证:宁B2-20210002

宁公网安备 64010402000986号