IBGP水平分割:从一个IBGP学到的BGP路由不会传到另一个IBGP

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

IBGP水平分割:从一个IBGP学到的BGP路由不会传到另一个IBGP

解决办法RR(路由反射器)可以指定他的客户

1、如果一条路由通过客户学习到,那么会反射到客户、非客户、EBGP邻居

2、如果一条路由通过EBGP邻居学习到,那么会反射给客户、非客户、EBGP邻居

3、如果一条路由通过非客户学习到,那么会反射给客户和EBGP邻居,不会反射给非客户R1(config)#int s2/1

R1(config-if)#ip add 12.0.0.1 255.255.255.0

R1(config-if)#no shu

R1(config-if)#int lo0

R1(config-if)#ip add 1.1.1.1 255.255.255.0

R1(config-if)#do ping 12.0.0.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 12.0.0.2, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 24/58/96 ms

R1(config-if)#router bgp 100

R1(config-router)#bgp router-id 1.1.1.1

R1(config-router)#nei 12.0.0.2 remote-as 234

R1(config-router)#net 1.1.1.0 mask 255.255.255.0

R1(config-router)#

*Sep 12 19:39:51.659: %BGP-5-ADJCHANGE: neighbor 12.0.0.2 Up

R1(config-router)#do sh ip bgp

BGP table version is 3, local router ID is 1.1.1.1

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

r RIB-failure, S Stale

Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path

*> 1.1.1.0/24 0.0.0.0 0 32768 i

*> 5.5.5.0/24 12.0.0.2 0 234 500 i

R1(config-router)#do sh ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2

i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

ia - IS-IS inter area, * - candidate default, U - per-user static route

o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

1.0.0.0/24 is subnetted, 1 subnets

C 1.1.1.0 is directly connected, Loopback0

5.0.0.0/24 is subnetted, 1 subnets

B 5.5.5.0 [20/0] via 12.0.0.2, 00:05:06

12.0.0.0/24 is subnetted, 1 subnets

C 12.0.0.0 is directly connected, Serial2/1

R2(config)#int s2/1

R2(config-if)#ip add 12.0.0.2 255.255.255.0

R2(config-if)#no shu

R2(config-if)#int s2/2

R2(config-if)#ip add 23.0.0.2 255.255.255.0

R2(config-if)#no shu

R2(config-if)#do ping 23.0.0.3

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 23.0.0.3, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 12/65/144 ms

R2(config)#router eigrp 90

R2(config-router)#no au

R2(config-router)#net 23.0.0.0 0.0.0.255

R2(config-router)#net 2.2.2.2 0.0.0.0

R2(config-router)#int lo0

R2(config-if)#ip add 2.2.2.2 255.255.255.255

R2(config)#router bgp 234

R2(config-router)#bgp router-id 2.2.2.2

R2(config-router)#no syn

R2(config-router)#no au

R2(config-router)#nei 3.3.3.3 remote-as 234

R2(config-router)#nei 3.3.3.3 up lo0

R2(config-router)#nei 12.0.0.1 remote-as 100

R2(config-router)#

*Sep 12 19:39:54.599: %BGP-5-ADJCHANGE: neighbor 12.0.0.1 Up

R2(config-router)#exit

相关文档
最新文档