版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、实用文档Mpls vpn 跨域 optionB2011-09-23 13:45:49| 分类:MPIS-VPN |标签:叩lsvpn 跨域 optionh|字号大中小 订阅Mpls vpn跨域optionB有两种方式:第一种方式为ASBR之间通过单跳MP-EBGP, ASBR之间必须直联第二种方式为ASBR之间通过多跳MP-EBGP,ASBR之间必须采用tunnel方式,本文只介绍这种方式。Mpls vpn over gre !对于mpls vpn over gre的这种方式,有两种方法可以使VPNv4的下一跳地址在接收路由更新的AS 中可达:将ASBR之间的tunnel互联地址重分布到IGP
2、;ASBR在向PE (或RR)传递从另一个AS学到的VPNv4的路由时,下一跳为自已,也就是 next-hop-self实验拓扑图如下:方法一:默认情况下,R6从AS1学到VPNv4的路由再通告给R10(RR)时,下一跳地址为R4的F0/0的地址,但是R10学到VPNv4路由的下一跳地址不可达,所以在R4和R6上分别将tunnel的互联地址重新分发到IGP中,这样R10才通将VPNv4的路由传递给R9。实用文档在标签交换方面,下一跳地址不改变,就不会重新分配标签。如R9学到的VPNv4的路由分配out标 签是由R4分配的。R9# show ip cef vrf test 11.11.11.11
3、11.11.11.11/32, version 34, epoch 0, cached adjacency 192.168.2.90 packets, 0 bytestag information set, all rewrites ownedlocal tag: VPN route headfast tag rewrite with Fa0/0, 192.168.2.9, tags imposed 840 427via 192.168.0.5, 0 dependencies, recursivenext hop 192.168.2.9, FastEthernet0/0 via 192.168
4、.0.5/32 (Default)valid cached adjacencytag rewrite with Fa0/0, 192.168.2.9, tags imposed 840 427R11#traceroute 12.12.12.12Type escape sequence to abort.Tracing the route to 12.12.12.1210.0.0.1 60 msec 140 msec 168 msec192.168.1.2 MPLS: Labels 232/643 Exp 0 1008 msec 1028 msec 936 msec192.168.1.6 MPL
5、S: Labels 332/643 Exp 0 840 msec 1004 msec 816 msec192.168.1.10 MPLS: Labels 426/643 Exp 0 888 msec 836 msec 768 msec192.168.0.6MPLS:Label 643 Exp 0 768 msec812 msec1176msec 只有单层标签 TOC o 1-5 h z 192.168.2.2MPLS:Labels 717/939Exp0888msec932msec936msec192.168.2.6MPLS:Labels 813/939Exp0792msec740msec81
6、6msec10.0.0.5 AS 20 MPLS: Label 939Exp0796msec688msec984msec10.0.0.6 AS 20 1032 msec 884 msec 984 msecR11#R4和R6上只保存本AS内的VPNv4的路由实用文档R4#show mpls forwarding-tableLocalOutgoingPrefixBytestagOutgoingNextHoptagIdtag switchedinterfaceorVCorTunnel416192.168.0.2Untagged6.6.6.6/320Fa0/04172.168.1.91101:1:10
7、.0.0.0/30610Fa1/119418tag192.168.1.16/300Fa1/1192.168.1.9Pop419tag192.168.1.4/300Fa1/1192.168.1.9Pop420192.168.1.9303192.168.1.12/300Fa1/1421192.168.1.9300192.168.1.0/300Fa1/1422192.168.1.93011.1.1.1/3215844Fa1/1423192.168302.1.92.2.2.2/320Fa1/1424tag3.3.3.3/320Fa1/1192.168.1.9Pop425192.168.13285.5.
8、5.5/323573Fa1/1426tag192.168.0.6/32640Tu0point2pointPop4271381:1:11.11.11.11/32Fa1/1192.168.1.950684281371:1:192.168.10.0/240Fa1/1192.168.1.9实用文档R6#show mpls forwarding-tableHopLocalOutgoingPrefixBytestag OutgoingNextIdtagtag switchedinterfaceorVCorTunnel192.608168.0.1Untagged4.4.4.4/320Fa0/0tag6091
9、92.168.0.1/320Fa0/0192.168.0.1Poptag610192.168.2.12/300Fa1/0192.168.2.2Poptag611192.168.2.4/300Fa1/0192.168.2.2Pop192.612168.2.2714192.168.2.16/300Fa1/0192613.168.2.2716192.168.2.8/300Fa1/0tag6147.7.7.7/320Fa1/0192.168.2.2Pop615192.168715.2.28.8.8.8/320Fa1/0640192.168717.2.29.9.9.9/320Fa1/06412.168.
10、2.271310.10.10.10/321216Fa1/019tag642192.168.0.5/32640Tu0point2pointPop6439391:1:12.12.12.12/32Fa1/0192.168.2.26106449381:1:192.168.20.0/240Fa1/0192.168.2.2R4的配置:实用文档hostname R4!boot-start-markerboot-end-marker!ip subnet-zero!ip cefno ip domain-lookupmpls label range 400 499mpls label protocol ldpin
11、terface Loopback0ip address 4.4.4.4 255.255.255.255no ip directed-broadcast!interface Tunnel0ip address 192.168.0.5 255.255.255.252no ip directed-broadcastmpls bgp forwardingtunnel source Loopback0tunnel destination 6.6.6.6!interface FastEthernet0/0ip address 192.168.0.1 255.255.255.252no ip directe
12、d-broadcast实用文档.国gno ip addressno ip directed-broadcastshutdownduplex halftointerface - iteriace asti-LiierneLip address 192.168.1.10 255.255.255.252no ip directed-broadcastduplex halfspeed auto,ing ip一1log-adjacency-changesredistribute connected subnetsnetwork 4.4.4.4 0.0.0.0 area 0network 192.168.
13、1.8 0.0.0.3 area 0。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 2ily ipv4实用文档neighbor 5.5.5.5 activateno neighbor 192.168.0.6 activateno auto-summaryno synchronizationexit-address-family!
14、address-family vpnv4neighbor 5.5.5.5 activateneighbor 5.5.5.5 send-community bothneighbor 192.168.0.6 activateneighbor 192.168.0.6 send-community bothexit-address-family!ip classlessip route 6.6.6.6 255.255.255.255 192.168.0.2control-plane!line con 0exec-timeout 0 0stopbits 1line aux 0stopbits 1line
15、 vty 0 4login!no cns aaa enable实用文档R6的配置:hostname R6 !boot-start-markerboot-end-marker !ip subnet-zero!ip cefno ip domain-lookup mpls label range 600 699 mpls label protocol ldpinterface Loopback0ip address 6.6.6.6 255.255.255.255no ip directed-broadcast!interface Tunnel0ip address 192.168.0.6 255.2
16、55.255.252no ip directed-broadcastmpls bgp forwardingtunnel source Loopback0tunnel destination 4.4.4.4!interface FastEthernet0/0实用文档ip address 192.168.0.2 255.255.255.252no ip directed-broadcast,晔forwardinginterface FastEthernet”。ip address 192.168.2.1 255.255.255.252no ip directed-broadcastduplex h
17、alfspeed autoing ipinterface FastEthernet.1nLeriacenasLi-LiierneLno ip addressno ip directed-broadcastshutdownduplex halftorouter ospf 1log-adjacency-changesredistribute connected subnetsnetwork 6.6.6.6 0.0.0.0 area 0network 192.168.2.0 0.0.0.3 area 0router bgp 2no synchronizationno bgp default rout
18、e-target filterbgp log-neighbor-changes实用文档neighbor 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-community bothneighbor 192.168.0.5 activateneighbor 192.1
19、68.0.5 send-community bothexit-address-family!ip classlessip route 4.4.4.4 255.255.255.255 192.168.0.1tag-switching tdp router-id Loopback0control-plane!line con 0exec-timeout 0 0stopbits 1line aux 0stopbits 1line vty 0 4login!no cns aaa enable实用文档end第二种方法:采用next-host-self这时ASBR上同时保存另一个AS的VPN路由,标签也由
20、ASBR分配R9# show ip cef vrf test 11.11.11.1111.11.11.11/32, version 37, epoch 0, cached adjacency 192.168.2.90 packets, 0 bytestag information set, all rewrites ownedlocal tag: VPN route headfast tag rewrite with Fa0/0, 192.168.2.9, tags imposed 810 645via 6.6.6.6, 0 dependencies, recursivenext hop 19
21、2.168.2.9, FastEthernet0/0 via 6.6.6.6/32 (Default)valid cached adjacencytag rewrite withFa0/0,192.168.2.9, tags imposed 810645R6#show mpls forwarding-tableHopLocalOutgoingPrefixBytestag OutgoingNextIdtagtag switchedinterfaceorVCorTunnel192.608168.0.1Untagged4.4.4.4/320Fa0/0tag609192.168.0.1/320Fa0/
22、0192.168.0.1Poptag610192.168.2.12/300Fa1/0192.168.2.2Poptag611192.168.2.4/300Fa1/0192.168.2.2Pop192.612168.2.2714192.168.2.16/300Fa1/0192613.168.2.7162192.168.2.8/300Fa1/0tag6147.7.7.7/320Fa1/0192.168.2.2Pop实用文档615715192.168.2.28.8.8.8/320Fa1/06407179.9.9.9/320Fa1/0192.168.2.264171310.10.10.10/320Fa
23、1/0192.168.2.2642Poptag192.168.0.5/325068Tu0point2point6439391:1:12.12.12.12/322956Fa1/0192.168.2.26449381:1:192.168.20.0/240Fa1/0192.168.2.26454271:1:11.11.11.11/320Tu0point2point6464281:1:192.168.10.0/240Tu0point2point6474171:1:10.0.0.0/300Tu0point2pointR4#show mpls forwarding-tableHopLocalOutgoin
24、gPrefixBytestag OutgoingNextIdtagswitchedtagorinterfaceVCorTunnel192.416168.0.2Untagged6.6.6.6/320Fa0/0.168417.1.91101:1:10.0.0.0/304894Fa1/1192tag418192.168.1.16/300Fa1/1192.168.1.9Pop实用文档tag419192.168.1.4/300Fa1/1192.168.1.9Pop192.420303168.1.9192.168.1.12/300Fa1/1192421300.168.1.9192.168.1.0/300F
25、a1/1192422301.168.1.91.1.1.1/3215844Fa1/1423302192.168.1.92.2.2.2/320Fa1/1tag4243.3.3.3/320Fa1/1192.168.1.9Pop425328192.168.1.95.5.5.5/323573Fa1/1tag426192.168.0.6/322680Tu0point2pointPop4271381:1:11.11.11.11/32Fa1/1192.168.1.950684281371:1:192.168.10.0/24Fa1/1192.168.1.904296441:1:192.168.20.0/24Tu
26、0point2point04486431:1:12.12.12.12/32Tu0point2point04496091:1:10.0.0.4/300Tu0point2pointR11#traceroute 12.12.12.12Type escape sequence to abort.Tracing the route to 12.12.12.12实用文档10.0.0.1 112 msec 88 msec100 msec192.168.1.2 MPLS: Labels205/448Exp0912 msec884 msec 936 msec TOC o 1-5 h z 192.168.1.6
27、MPLS: Labels329/448Exp0984 msec1008 msec 884msec192.168.1.10 MPLS: Label448 Exp0 936msec 812msec 888 msec192.168.0.6 MPLS: Label 643 Exp 0 840 msec 764 msec 860 msec /标签由 448 变成 643192.168.2.2 MPLS: Labels717/939Exp0912 msec764 msec 1080msec192.168.2.6 MPLS: Labels813/939Exp01008 msec 884 msec 864ms
28、ec10.0.0.5 AS 20 MPLS: Label 939 Exp 0 744 msec 764 msec 792 msec10.0.0.6 AS 20 864 msec 812 msec 888 msecR4的配置router ospf 1 log-adjacency-changes network 4.4.4.4 0.0.0.0 area 0 network 192.168.1.8 0.0.0.3 area 0!router bgp 1no bgp default route-target filter bgp log-neighbor-changes neighbor 5.5.5.5 remote-as 1neighb
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 承包酒席合同范本
- 桓台劳动合同
- 环境治理合同协议
- 划缴税费三方协议书
- 2024版云服务系统建设与维护合同
- 2024年度出租车行业碳排放交易合同
- 二零二四年度人力资源服务合同:企业员工招聘与培训
- 2024年度便利店会员管理系统加盟合同
- 水牛购销合同范本
- 2024年度租赁合同:带电器家具的个人住宅租赁期限与解除条件
- 专题10 议论文阅读(含答案) 2024年中考语文【热点-重点-难点】专练(上海专用)
- 21 小圣施威降大圣 公开课一等奖创新教案
- 初中数学教学“教-学-评”一体化研究
- 学校(幼儿园)每周食品安全排查治理报告(整学期16篇)
- 贵州省2023年12月普通高中学业水平考试数学试卷
- 湘教版九年级上册数学《第4章小结复习》课件
- 广成仪制药王正朝全集
- 【芝麻灰】石材检测报告
- 中国脑血管病防治指南+全文
- 最新淮安市外国语学校小升初数学试卷资料.doc
- 儿童百分位标准曲线图
评论
0/150
提交评论