mpls解决BGP路由黑洞.doc_第1页
mpls解决BGP路由黑洞.doc_第2页
mpls解决BGP路由黑洞.doc_第3页
mpls解决BGP路由黑洞.doc_第4页
mpls解决BGP路由黑洞.doc_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

MPLS 解决BGP路由黑洞问题R1R1enR1#conf tR1(config)#no ip domain-lookupR1(config)#line console 0R1(config-line)#logg sR1(config-line)#no exec-tR1(config-line)#exitR1(config)#interface s1/0R1(config-if)#ip addR1(config-if)#ip address 12.1.1.1 255.255.255.0R1(config-if)#no shR1(config-if)#no shutdown R1(config-if)#interface s1/1R1(config-if)#ip add 13.1.1.1 255.255.255.0R1(config-if)#no shR1(config-if)#no shutdown R1(config-if)#interface lo 0R1(config-if)#ip add 1.1.1.1 255.255.255.0R1(config-if)#exitR1(config)#router eigrp 90R1(config-router)#no auto-summary R1(config-router)#network 0.0.0.0*Mar 1 00:21:40.919: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 90: Neighbor 12.1.1.2 (Serial1/0) is up: new adjacencyR1(config-router)#*Mar 1 00:22:19.859: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 90: Neighbor 13.1.1.3 (Serial1/1) is up: new adjacencyR1(config-router)#do show ip route 1.0.0.0/24 is subnetted, 1 subnetsC 1.1.1.0 is directly connected, Loopback0 2.0.0.0/24 is subnetted, 1 subnetsD 2.2.2.0 90/2297856 via 12.1.1.2, 00:00:56, Serial1/0 3.0.0.0/24 is subnetted, 1 subnetsD 3.3.3.0 90/2297856 via 13.1.1.3, 00:00:14, Serial1/1 12.0.0.0/24 is subnetted, 1 subnetsC 12.1.1.0 is directly connected, Serial1/0 13.0.0.0/24 is subnetted, 1 subnetsC 13.1.1.0 is directly connected, Serial1/1R1(config-router)#exitR1(config)#interface s1/0R1(config-if)#mpls ip*Mar 1 01:13:49.207: %LDP-5-NBRCHG: LDP Neighbor 2.2.2.2:0 (1) is UPR1(config-if)#interface s1/1R1(config-if)#mpls ipR1(config-if)#*Mar 1 01:14:10.571: %LDP-5-NBRCHG: LDP Neighbor 3.3.3.3:0 (2) is UPR2R2enR1#conf tR2(config)#no ip domain-lookupR2(config)#line console 0R2(config-line)#logg sR2(config-line)#no exec-tR2(config-line)#exitR2(config)#interface s1/0R2(config-if)#ip addR2(config-if)#ip address 12.1.1.2 255.255.255.0R2(config-if)#no shR2(config-if)#no shutdown R2(config-if)#interface s1/1R2(config-if)# ip add 24.1.1.2 255.255.255.0R2(config-if)#no shR2(config-if)#no shutdown R2(config-if)#interface lo 0R2(config-if)#ip add 2.2.2.2 255.255.255.0R2(config-if)#exitR2(config)#router eigrp 90R2(config-router)#no auto-summary R2(config-router)#network 12.1.1.0 0.0.0.255R2(config-router)#network 2.2.2.0 0.0.0.255R2(config-router)exitR2(config)#router bgp 123R2(config-router)#no auto-summary R2(config-router)#no synchronization R2(config-router)#bgp router-id 2.2.2.2R2(config-router)#neighbor 24.1.1.4 remote-as 4R2(config-router)#neighbor 3.3.3.3 remote-as 123R2(config-router)#neighbor 3.3.3.3 update-source lo 0R2(config-router)#*Mar 1 00:27:58.535: %BGP-5-ADJCHANGE: neighbor 3.3.3.3 Up R2(config-router)#*Mar 1 00:29:08.071: %BGP-5-ADJCHANGE: neighbor 24.1.1.4 Up R2(config-router)#endR2#shw *Mar 1 00:33:29.527: %SYS-5-CONFIG_I: Configured from console by consoleR2#show ip bgp summary Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd3.3.3.3 4 123 9 9 3 0 0 00:05:45 124.1.1.4 4 4 9 9 3 0 0 00:04:35 1R2#show ip route Gateway of last resort is not set 1.0.0.0/24 is subnetted, 1 subnetsD 1.1.1.0 90/2297856 via 12.1.1.1, 00:23:59, Serial1/0 2.0.0.0/24 is subnetted, 1 subnetsC 2.2.2.0 is directly connected, Loopback0 3.0.0.0/24 is subnetted, 1 subnetsD 3.3.3.0 90/2809856 via 12.1.1.1, 00:23:10, Serial1/0 4.0.0.0/24 is subnetted, 1 subnetsB 4.4.4.0 20/0 via 24.1.1.4, 00:16:37 5.0.0.0/24 is subnetted, 1 subnetsB 5.5.5.0 200/0 via 3.3.3.3, 00:12:09 24.0.0.0/24 is subnetted, 1 subnetsC 24.1.1.0 is directly connected, Serial1/1 12.0.0.0/24 is subnetted, 1 subnetsC 12.1.1.0 is directly connected, Serial1/0 13.0.0.0/24 is subnetted, 1 subnetsD 13.1.1.0 90/2681856 via 12.1.1.1, 00:24:29, Serial1/0R2#show ip bgp BGP table version is 3, local router ID is 2.2.2.2Status codes: s suppressed, d damped, h history, * valid, best, i - internal, r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path* 4.4.4.0/24 24.1.1.4 0 0 4 i*i5.5.5.0/24 3.3.3.3 0 100 0 5 iR2#conf tEnter configuration commands, one per line. End with CNTL/Z. R2(config)#router bgp 123R2(config-router)#neighbor 3.3.3.3 next-hop-self R2(config-router)#exitR2(config)#interface s1/0R2(config-if)#mpls ipR3R3enR3#conf tEnter configuration commands, one per line. End with CNTL/Z.R3(config)#no ip domain-lookupR3(config)#line console 0R3(config-line)#logg sR3(config-line)#no exec-tR3(config-line)#exitR3(config)#interface s1/1R3(config-if)#ip add 13.1.1.3 255.255.255.0R3(config-if)#no shR3(config-if)#no shutdown R3(config-if)#interface s1/0R3(config-if)#ip add 35.1.1.3 255.255.255.0R3(config-if)#no shR3(config-if)#no shutdown R3(config-if)#interface lo 0R3(config-if)#ip add 3.3.3.3 255.255.255.0R3(config-if)#exitR3(config)#router eigrp 90R3(config-router)#no auto-summary R3(config-router)#network 13.1.1.0 0.0.0.255 *Mar 1 00:22:28.539: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 90: Neighbor 13.1.1.1 (Serial1/1) is up: new adjacencyR3(config-router)#network 3.3.3.0 0.0.0.255R3(config-router)#exitR3(config)#router bgp 123R3(config-router)#no auto-summary R3(config-router)#no synchronization R3(config-router)#bgp router-id 3.3.3.3R3(config-router)#neighbor 35.1.1.5 remote-as 5R3(config-router)#neighbor 2.2.2.2 remote-as 123 R3(config-router)#neighbor 2.2.2.2 UPdate-source LO 0*Mar 1 00:27:58.267: %BGP-5-ADJCHANGE: neighbor 2.2.2.2 Up R3(config-router)#neighbor 2.2.2.2 next-hop-self *Mar 1 00:33:39.699: %BGP-5-ADJCHANGE: neighbor 35.1.1.5 Up R3(config-router)#endR3#show ip*Mar 1 00:45:27.479: %SYS-5-CONFIG_I: Configured from console by consoleR3#show ip route 1.0.0.0/24 is subnetted, 1 subnetsD 1.1.1.0 90/2297856 via 13.1.1.1, 00:23:06, Serial1/1 35.0.0.0/24 is subnetted, 1 subnetsC 35.1.1.0 is directly connected, Serial1/0 2.0.0.0/24 is subnetted, 1 subnetsD 2.2.2.0 90/2809856 via 13.1.1.1, 00:23:06, Serial1/1 3.0.0.0/24 is subnetted, 1 subnetsC 3.3.3.0 is directly connected, Loopback0 5.0.0.0/24 is subnetted, 1 subnetsB 5.5.5.0 20/0 via 35.1.1.5, 00:11:55 12.0.0.0/24 is subnetted, 1 subnetsD 12.1.1.0 90/2681856 via 13.1.1.1, 00:23:06, Serial1/1 13.0.0.0/24 is subnetted, 1 subnetsC 13.1.1.0 is directly connected, Serial1/1R3#show ip bgp BGP table version is 2, local router ID is 3.3.3.3 Network Next Hop Metric LocPrf Weight Path* i4.4.4.0/24 24.1.1.4 0 100 0 4 i(R2在IBGP中未更改下一跳,所以次优)* 5.5.5.0/24 35.1.1.5 0 0 5 iR3#show ip bgp Network Next Hop Metric LocPrf Weight Path*i4.4.4.0/24 2.2.2.2 0 100 0 4 i(更改后,最优)* 5.5.5.0/24 35.1.1.5 0 0 5 iR3#show ip route 1.0.0.0/24 is subnetted, 1 subnetsD 1.1.1.0 90/2297856 via 13.1.1.1, 00:46:09, Serial1/1 35.0.0.0/24 is subnetted, 1 subnetsC 35.1.1.0 is directly connected, Serial1/0 2.0.0.0/24 is subnetted, 1 subnetsD 2.2.2.0 90/2809856 via 13.1.1.1, 00:46:09, Serial1/1 3.0.0.0/24 is subnetted, 1 subnetsC 3.3.3.0 is directly connected, Loopback0 4.0.0.0/24 is subnetted, 1 subnetsB 4.4.4.0 200/0 via 2.2.2.2, 00:09:09 5.0.0.0/24 is subnetted, 1 subnetsB 5.5.5.0 20/0 via 35.1.1.5, 00:34:58 12.0.0.0/24 is subnetted, 1 subnetsD 12.1.1.0 90/2681856 via 13.1.1.1, 00:46:10, Serial1/1 13.0.0.0/24 is subnetted, 1 subnetsC 13.1.1.0 is directly connected, Serial1/1R3#conf tR3(config)#interface s1/1R3(config-if)#mpls ipR4R4enR4#conf tEnter configuration commands, one per line. End with CNTL/Z.R4(config)#no ip domain-lookupR4(config)#line console 0R4(config-line)#logg sR4(config-line)#no exec-tR4(config-line)#exitR4(config)#interface s1/1R4(config-if)#ip addR4(config-if)#ip address 24.1.1.4 255.255.255.0R4(config-if)#no shR4(config-if)#no shutdown R4(config-if)#interface lo 0R4(config-if)#ip add 4.4.4.4 255.255.255.0R4(config-if)#exitR4(config)#*Mar 1 00:20:12.531: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to upR4(config)#*Mar 1 00:20:13.339: %LINK-3-UPDOWN: Interface Serial1/1, changed state to upR4(config)#*Mar 1 00:20:14.343: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to upR4(config)#router bgp 4R4(config-router)#no auto-summary R4(config-router)#no synchronization R4(config-router)#bgp router-id 4.4.4.4R4(config-router)#neighbor 24.1.1.2 remotR4(config-router)#neighbor 24.1.1.2 remote-as 123*Mar 1 00:29:07.415: %BGP-5-ADJCHANGE: neighbor 24.1.1.2 Up R4(config-router)#network 4.4.4.0 mask 255.255.255.0R4(config-router)#exitR5R5enR5#conf tEnter configuration commands, one per line. End with CNTL/Z.R5(config)#no ip domain-lookupR5(config)#line console 0R5(config-line)#logg sR5(config-line)#no exec-tR5(config-line)#exitR5(config)#interface s1/0R5(config-if)#ip add 35.1.1.5 255.255.255.0R5(config-if)#no shR5(config-if)#no shutdown R5(config-if)#interface lo 0R5(config-if)#ip add 5.5.5.5 255.255.255.0R5(config-if)#exit*Mar 1 00:20:19.819: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to upR5(config-if)#exit*Mar 1 00:20:20.627: %LINK-3-UPDOWN: Interface Serial1/0, changed state to upR5(config-if)#exit*Mar 1 00:20:21

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论