BGP路由反射器

合集下载

H3C IPV6之IBGP一级RR路由反射器典型组网配置案例

H3C IPV6之IBGP一级RR路由反射器典型组网配置案例

组网说明:本案例采用H3C HCL模拟器来模拟IPV6 IBGP一级RR路由反射器典型组网配置!R1与R2属于AS100,R3属于AS200。

R1是R2的RR路由反射器的客户端。

R2与R3为EBGP邻居关系。

要求R1、R2、R3的loopback0能够互通。

配置思路:1、按照网络拓扑图正确配置IP地址2、R1与R2建立IBGP邻居关系,R2配置RR路由反射器客户端,指向R13、R2与R3建立EBGP邻居关系配置过程:R1:<H3C>sysSystem View: return to User View with Ctrl+Z.[H3C]sysname R1[R1]int loopback 1[R1-LoopBack1]ip address 1.1.1.1 32[R1-LoopBack1]quit[R1]int loopback 0[R1-LoopBack0]ipv6 address 3::1 64[R1-LoopBack0]quit[R1]int gi 0/1[R1-GigabitEthernet0/1]des <connect to R2>[R1-GigabitEthernet0/1]ipv6 address 1::1 64[R1-GigabitEthernet0/1]quit[R1]bgp 100[R1-bgp-default]router-id 1.1.1.1[R1-bgp-default]peer 1::2 as-number 100[R1-bgp-default]address-family ipv6 unicast[R1-bgp-default-ipv6]peer 1::2 enable[R1-bgp-default-ipv6]network 3:: 64[R1-bgp-default-ipv6]quit[R1-bgp-default]quitR2:<H3C>sysSystem View: return to User View with Ctrl+Z. [H3C]sysname R2[R2]int loopback 1[R2-LoopBack1]ip address 2.2.2.2 32[R2-LoopBack1]quit[R2]int loopback 0[R2-LoopBack0]ipv6 address 4::1 64[R2-LoopBack0]quit[R2]int gi 0/1[R2-GigabitEthernet0/1]des <connect to R1> [R2-GigabitEthernet0/1]ipv6 address 1::2 64 [R2-GigabitEthernet0/1]quit[R2]int gi 0/0[R2-GigabitEthernet0/0]des <connect to R3> [R2-GigabitEthernet0/0]ipv6 address 2::1 64 [R2-GigabitEthernet0/0]quit[R2]bgp 100[R2-bgp-default]router-id 2.2.2.2[R2-bgp-default]peer 1::1 as-number 100 [R2-bgp-default]peer 2::2 as-number 200 [R2-bgp-default]address-family ipv6 unicast [R2-bgp-default-ipv6]peer 1::1 enable[R2-bgp-default-ipv6]peer 1::1 reflect-client [R2-bgp-default-ipv6]peer 2::2 enable[R2-bgp-default-ipv6]network 4:: 64[R2-bgp-default-ipv6]import-route direct [R2-bgp-default-ipv6]quit[R2-bgp-default]quitR3:<H3C>sysSystem View: return to User View with Ctrl+Z. [H3C]sysname R3[R3]int loopback 1[R3-LoopBack1]ip address 3.3.3.3 32[R3-LoopBack1]quit[R3]int loopback 0[R3-LoopBack0]ipv6 address 5::1 64[R3-LoopBack0]quit[R3]int gi 0/0[R3-GigabitEthernet0/0]des <connect to R2> [R3-GigabitEthernet0/0]ipv6 address 2::2 64 [R3-GigabitEthernet0/0]quit[R3]bgp 200[R3-bgp-default]router-id 3.3.3.3[R3-bgp-default]peer 2::1 as-number 100 [R3-bgp-default]address-family ipv6 unicast [R3-bgp-default-ipv6]peer 2::1 enable[R3-bgp-default-ipv6]network 5:: 64[R3-bgp-default-ipv6]quit[R3-bgp-default]quit分别查看R1、R2、R3的路由表:查看R1的BGP邻居信息:查看R2的BGP邻居信息:查看R3的BGP邻居信息:查看R1的IPV6 BGP路由表:查看R2的IPV6 BGP路由表:[R2]dis bgp routing-table ipv6Total number of routes: 8BGP local router ID is 2.2.2.2Status codes: * - valid, > - best, d - dampened, h - historys - suppressed, S - stale, i - internal, e - externala - additional-pathOrigin: i - IGP, e - EGP, ? - incomplete* > Network : 1:: PrefixLen : 64 NextHop : :: LocPrf :PrefVal : 32768 OutLabel : NULL MED : 0Path/Ogn: ?* > Network : 1::2 PrefixLen : 128 NextHop : ::1 LocPrf :PrefVal : 32768 OutLabel : NULL MED : 0Path/Ogn: ?* > Network : 2:: PrefixLen : 64 NextHop : :: LocPrf :PrefVal : 32768 OutLabel : NULL MED : 0Path/Ogn: ?* > Network : 2::1 PrefixLen : 128 NextHop : ::1 LocPrf :PrefVal : 32768 OutLabel : NULL MED : 0Path/Ogn: ?* >i Network : 3:: PrefixLen : 64 NextHop : 1::1 LocPrf : 100 PrefVal : 0 OutLabel : NULL MED : 0Path/Ogn: i* > Network : 4:: PrefixLen : 64 NextHop : :: LocPrf :PrefVal : 32768 OutLabel : NULLMED : 0Path/Ogn: i* > Network : 4::1 PrefixLen : 128 NextHop : ::1 LocPrf :PrefVal : 32768 OutLabel : NULL MED : 0Path/Ogn: ?* >e Network : 5:: PrefixLen : 64 NextHop : 2::2 LocPrf :PrefVal : 0 OutLabel : NULL MED : 0Path/Ogn: 200i[R2]查看R3的IPV6 BGP路由表:在R1使用loopback0作为源能PING通R2和R3的loopback0:在R2使用loopback0作为源能PING通R1和R3的loopback0:在R3使用loopback0作为源能PING通R1和R1的loopback0:至此,IPV6之IBGP 一级RR路由反射器典型组网配置案例已完成!。

配置BGP

配置BGP

配置BGPBGP协议概述BGP是目前Internet使用最广的外部网关协议(Exterior Gateway Protocol,EGP),其提供的主要功能是在不同的自治系统(autonomous systems,AS)之间交换网络可达信息,并通过协议自身机制消除路由环路。

BGP使用TCP作为传输协议,用TCP协议的可靠传输机制保证BGP的传输可靠性。

运行BGP协议的router称为BGP speaker,建立了BGP会话连接(BGP session)的BGP speakers之间被称作对等体(BGP peers)。

BGP speaker之间建立对等体的模式有两种:IBGP(Internal BGP)和EBGP(External BGP)。

IBGP是指在相同AS内建立的BGP连接,EBGP是指在不同AS之间建立的BGP连接。

二者的作用简而言之就是:EBGP是完成不同AS之间路由信息的交换,IBGP是完成路由信息在本AS内的过渡。

锐捷网络的BGP协议有如下特点:●支持BGP-4●支持路径属性✓ORIGN Attribute✓AS_PATH Attribute✓NEXT_HOP Attribute✓MULTI_EXIT_DISC Attribute✓LOCAL-PREFERENCE Attribute✓ATOMIC_AGGREGATE Attribute✓AGGREGATOR Attribute✓COMMUNITY Attribute✓ORIGINATOR_ID Attribute✓CLUSTER_LIST Attribute●支持BGP对等体组●支持使用Loopback接口●支持使用TCP的MD5认证●支持BGP和IGP的同步●支持BGP路由聚合●支持BGP路由衰减●支持BGP路由反射器●支持AS联盟●支持BGP软复位缺省的BGP配置:要运行交换机的BGP ,在特权模式下,按照如下步骤进行: Step1 Step2 Step3 Step4 Step5 Step6 Step7使用no router bgp 关闭BGP 。

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

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

IBGP水平分割:从一个IBGP学到的BGP路由不会传到另一个IBGP解决办法RR(路由反射器)可以指定他的客户1、如果一条路由通过客户学习到,那么会反射到客户、非客户、EBGP邻居2、如果一条路由通过EBGP邻居学习到,那么会反射给客户、非客户、EBGP邻居3、如果一条路由通过非客户学习到,那么会反射给客户和EBGP邻居,不会反射给非客户R1(config)#int s2/1R1(config-if)#ip add 12.0.0.1 255.255.255.0R1(config-if)#no shuR1(config-if)#int lo0R1(config-if)#ip add 1.1.1.1 255.255.255.0R1(config-if)#do ping 12.0.0.2Type 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 msR1(config-if)#router bgp 100R1(config-router)#bgp router-id 1.1.1.1R1(config-router)#nei 12.0.0.2 remote-as 234R1(config-router)#net 1.1.1.0 mask 255.255.255.0R1(config-router)#*Sep 12 19:39:51.659: %BGP-5-ADJCHANGE: neighbor 12.0.0.2 UpR1(config-router)#do sh ip bgpBGP table version is 3, local router ID is 1.1.1.1Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incompleteNetwork 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 iR1(config-router)#do sh ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set1.0.0.0/24 is subnetted, 1 subnetsC 1.1.1.0 is directly connected, Loopback05.0.0.0/24 is subnetted, 1 subnetsB 5.5.5.0 [20/0] via 12.0.0.2, 00:05:0612.0.0.0/24 is subnetted, 1 subnetsC 12.0.0.0 is directly connected, Serial2/1R2(config)#int s2/1R2(config-if)#ip add 12.0.0.2 255.255.255.0R2(config-if)#no shuR2(config-if)#int s2/2R2(config-if)#ip add 23.0.0.2 255.255.255.0R2(config-if)#no shuR2(config-if)#do ping 23.0.0.3Type 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 msR2(config)#router eigrp 90R2(config-router)#no auR2(config-router)#net 23.0.0.0 0.0.0.255R2(config-router)#net 2.2.2.2 0.0.0.0R2(config-router)#int lo0R2(config-if)#ip add 2.2.2.2 255.255.255.255R2(config)#router bgp 234R2(config-router)#bgp router-id 2.2.2.2R2(config-router)#no synR2(config-router)#no auR2(config-router)#nei 3.3.3.3 remote-as 234R2(config-router)#nei 3.3.3.3 up lo0R2(config-router)#nei 12.0.0.1 remote-as 100R2(config-router)#*Sep 12 19:39:54.599: %BGP-5-ADJCHANGE: neighbor 12.0.0.1 UpR2(config-router)#exit*Sep 12 19:42:41.763: %BGP-5-ADJCHANGE: neighbor 3.3.3.3 UpR2(config-router)#do sh ip bgp sumBGP router identifier 2.2.2.2, local AS number 234BGP table version is 2, main routing table version 21 network entries using 101 bytes of memory1 path entries using 48 bytes of memory1 BGP path attribute entries using 60 bytes of memory1 BGP AS-PA TH entries using 24 bytes of memory0 BGP route-map cache entries using 0 bytes of memory0 BGP filter-list cache entries using 0 bytes of memoryBGP using 233 total bytes of memoryBGP activity 1/0 prefixes, 1/0 paths, scan interval 60 secsNeighbor V AS MsgRcvd MsgSent TblV er InQ OutQ Up/Down State/PfxRcd 3.3.3.3 4 234 6 7 2 0 0 00:02:35 012.0.0.1 4 100 10 9 2 0 0 00:05:23 1R2(config-router)#do sh ip bgpBGP table version is 2, 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, ? - incompleteNetwork Next Hop Metric LocPrf Weight Path*> 1.1.1.0/24 12.0.0.1 0 0 100 iR2(config)#router bgp 234R2(config-router)#nei 3.3.3.3 next-hop-self /R3开始学到了1.1.1.0/24没有优化的路由,因为下一跳不可达,要在R2上给R3指明next-hop-self *Sep 12 19:48:50.667: %BGP-5-ADJCHANGE: neighbor 3.3.3.3 UpR2(config-router)#do sh ip bgpBGP 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, ? - incompleteNetwork Next Hop Metric LocPrf Weight Path*> 1.1.1.0/24 12.0.0.1 0 0 100 i*>i5.5.5.0/24 4.4.4.4 0 100 0 500 iR3(config)#int s2/1R3(config-if)#ip add 23.0.0.3 255.255.255.0R3(config-if)#no shuR3(config-if)#ip add 34.0.0.3 255.255.255.0R3(config-if)#no shuR3(config-if)#do ping 34.0.0.4Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 34.0.0.4, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 20/68/112 msR3(config-if)#router eigrp 90R3(config-router)#no auR3(config-router)#net 23.0.0.0 0.0.0.255R3(config-router)#net 34.0.0.0 0.0.0.255R3(config-router)#net 3.3.3.3 0.0.0.0R3(config-router)#int lo0R3(config-if)#ip add 3.3.3.3 255.255.255.255R3(config-if)#router bgp 234R3(config-router)#bgp rouR3(config-router)#bgp router-id 3.3.3.3R3(config-router)#no synR3(config-router)#no auR3(config-router)#nei 2.2.2.2 remote-as 234R3(config-router)#nei 2.2.2.2 up lo0R3(config-router)#nei 4.4.4.4 remote-as 234R3(config-router)#nei 4.4.4.4 up lo0*Sep 12 19:42:54.131: %BGP-5-ADJCHANGE: neighbor 2.2.2.2 UpR3(config-router)#*Sep 12 19:43:06.723: %BGP-5-ADJCHANGE: neighbor 4.4.4.4 UpR3(config-router)#do sh ip bgp/因为下一跳不可达BGP table version is 1, local router ID is 3.3.3.3Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incompleteNetwork Next Hop Metric LocPrf Weight Path * i1.1.1.0/24 12.0.0.1 0 100 0 100 i * i5.5.5.0/24 45.0.0.5 0 100 0 500 i R3(config-router)#do sh ip bgpBGP table version is 2, local router ID is 3.3.3.3Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incompleteNetwork Next Hop Metric LocPrf Weight Path *>i1.1.1.0/24 2.2.2.2 0 100 0 100 i* i5.5.5.0/24 45.0.0.5 0 100 0 500 iR3(config-router)#do sh ip bgp/下一跳可达,在R2和R4上做next-hop-selfBGP table version is 3, local router ID is 3.3.3.3Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incompleteNetwork Next Hop Metric LocPrf Weight Path*>i1.1.1.0/24 2.2.2.2 0 100 0 100 i*>i5.5.5.0/24 4.4.4.4 0 100 0 500 iR3(config)#router bgp 234R3(config-router)#nei 2.2.2.2 route-reflector-client /指明R2为自己的客户,符合第一条R3(config-router)#*Sep 12 19:48:33.619: %BGP-5-ADJCHANGE: neighbor 2.2.2.2 Down RR client config change R3(config-router)#*Sep 12 19:49:03.139: %BGP-5-ADJCHANGE: neighbor 2.2.2.2 UpR3(config-router)#R4(config)#int s2/1R4(config-if)#ip add 34.0.0.4 255.255.255.0R4(config-if)#no shuR4(config-if)#int s2/2R4(config-if)#ip add 45.0.0.4 255.255.255.0R4(config-if)#no shuR4(config-if)#do ping 45.0.0.5Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 45.0.0.5, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 4/66/156 msR4(config-if)#router eigrp 90R4(config-router)#no auR4(config-router)#net 34.0.0.0 0.0.0.255R4(config-router)#net 4.4.4.4 0.0.0.0R4(config-router)#int lo0R4(config-if)#ip add 4.4.4.4 255.255.255.255R4(config-if)#router bgp 234R4(config-router)#bgp rouR4(config-router)#bgp router-id 4.4.4.4R4(config-router)#no synR4(config-router)#no auR4(config-router)#nei 3.3.3.3 remote-as 234R4(config-router)#nei 3.3.3.3 up lo0R4(config-router)#nei 45.0.0.5 remote-as 500R4(config-router)#*Sep 12 19:41:59.647: %BGP-5-ADJCHANGE: neighbor 45.0.0.5 UpR4(config-router)#*Sep 12 19:43:10.147: %BGP-5-ADJCHANGE: neighbor 3.3.3.3 UpR4(config-router)#do sh ip bgpBGP table version is 2, local router ID is 4.4.4.4Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incompleteNetwork Next Hop Metric LocPrf Weight Path *> 5.5.5.0/24 45.0.0.5 0 0 500 i R4(config-router)#exitR4(config)#router bgp 234R4(config-router)#nei 3.3.3.3 next-hop-selfR4(config-router)#do sh ip bgpBGP table version is 3, local router ID is 4.4.4.4Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incompleteNetwork Next Hop Metric LocPrf Weight Path *>i1.1.1.0/24 2.2.2.2 0 100 0 100 i *> 5.5.5.0/24 45.0.0.5 0 0 500 iR5(config)#int s2/2R5(config-if)#ip add 45.0.0.5 255.255.255.0R5(config-if)#no shuR5(config-if)#int lo0R5(config-if)#ip add 5.5.5.5 255.255.255.0R5(config-if)#router bgp 500R5(config-router)#bgp rouR5(config-router)#bgp router-id 5.5.5.5R5(config-router)#no synR5(config-router)#no auR5(config-router)#nei 45.0.0.4 remote-as 234R5(config-router)#net 5.5.5.0 mask 255.255.255.0R5(config-router)#do sh ip bgpBGP table version is 3, local router ID is 5.5.5.5Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incompleteNetwork Next Hop Metric LocPrf Weight Path *> 1.1.1.0/24 45.0.0.4 0 234 100 i *> 5.5.5.0/24 0.0.0.0 0 32768 iR5(config-router)#do sh ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set1.0.0.0/24 is subnetted, 1 subnetsB 1.1.1.0 [20/0] via 45.0.0.4, 00:05:295.0.0.0/24 is subnetted, 1 subnetsC 5.5.5.0 is directly connected, Loopback045.0.0.0/24 is subnetted, 1 subnetsC 45.0.0.0 is directly connected, Serial2/2。

路由器反射器(RR)配置

路由器反射器(RR)配置

路由器反射器(RR)配置一、路由器基本配置R1>enableR1#conf tR1(config)#int lo 0R1(config-if)#ip add 1.1.1.1 255.255.255.0R1(config-if)#exitR1(config-if)#ip add 12.12.12.1 255.255.255.0 R1(config-if)#clock rate 128000R1(config-if)#no shutdownR1(config-if)#endR1#R2>enableR2#conf tR2(config)#int lo 0R2(config-if)#ip add 2.2.2.2 255.255.255.0R2(config-if)#exitR2(config)#int s0/0R2(config-if)#ip add 12.12.12.2 255.255.255.0 R2(config-if)#no shutdownR2(config-if)#exitR2(config)#int s0/1R2(config-if)#ip add 23.23.23.2 255.255.255.0 R2(config-if)#clock rate 128000R2(config-if)#no shutdownR2(config-if)#endR2#R3>enableR3#conf tR3(config)#int lo 0R3(config-if)#ip add 3.3.3.3 255.255.255.0R3(config-if)#exitR3(config)#int s0/0R3(config-if)#ip add 23.23.23.3 255.255.255.0 R3(config-if)#no shutdownR3(config-if)#exitR3(config)#int s0/1R3(config-if)#ip add 34.34.34.3 255.255.255.0 R3(config-if)#clock rate 128000R3(config-if)#no shutdownR3(config-if)#endR3#R4>enableR4#conf tR4(config)#int lo 0R4(config-if)#ip add 4.4.4.4 255.255.255.0R4(config-if)#exitR4(config-if)#ip add 34.34.34.4 255.255.255.0R4(config-if)#no shutdownR4(config-if)#exitR4(config)#exitR4#二、对路由器进行配置R1#conf tR1(config)#router eigrp 1R1(config-router)#net 1.1.1.0R1(config-router)#net 12.12.12.0R1(config-router)#no auto-summaryR1(config-router)#exitR1(config)#router bgp 100R1(config-router)#no synchronizationR1(config-router)#no auto-summaryR1(config-router)#bgp router-id 1.1.1.1R1(config-router)#neighbor 2.2.2.2 remote-as 100R1(config-router)#neighbor 2.2.2.2 update-source lo 0R1(config-router)#net 1.1.1.0 mask 255.255.255.0R1(config-router)#endR1#R2#conf tR2(config)#router eigrp 1R2(config-router)#net 12.12.12.0R2(config-router)#net 23.23.23.0R2(config-router)#net 2.2.2.0R2(config-router)#no auto-summaryR2(config-router)#exiR2(config)#router bgp 100R2(config-router)#no synchronizationR2(config-router)#no auto-summaryR2(config-router)#bgp router-id 2.2.2.2R2(config-router)#neighbor 1.1.1.1 remote-as 100R2(config-router)#neighbor 1.1.1.1 update-source lo 0R2(config-router)#neighbor 1.1.1.1 route-reflector-client //配置RR客户端R2(config-router)#neighbor 3.3.3.3 remote-as 100R2(config-router)#neighbor 3.3.3.3 update-source lo 0R2(config-router)#neighbor 3.3.3.3 route-reflector-clientR2(config-router)#endR2#R3#conf tR3(config)#router eigrp 1R3(config-router)#net 3.3.3.0R3(config-router)#net 23.23.23.0R3(config-router)#no auto-summaryR3(config-router)#exitR3(config)#router bgp 100R3(config-router)#no synchronizationR3(config-router)#no auto-summaryR3(config-router)#bgp router-id 3.3.3.3R3(config-router)#neighbor 2.2.2.2 remote-as 100R3(config-router)#neighbor 2.2.2.2 update-source lo 0R3(config-router)#neighbor 2.2.2.2 next-hop-selfR3(config-router)#neighbor 34.34.34.4 remote-as 200R3(config-router)#endR3#R4#conf tR4(config)#router bgp 200R4(config-router)#no synchronizationR4(config-router)#no auto-summaryR4(config-router)#bgp router-id 4.4.4.4R4(config-router)#neighbor 34.34.34.3 remote-as 100R4(config-router)#net 4.4.4.0 mask 255.255.255.0R4(config-router)#endR4#三、查看路由表R1#sh ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set1.0.0.0/24 is subnetted, 1 subnetsC 1.1.1.0 is directly connected, Loopback02.0.0.0/24 is subnetted, 1 subnetsD 2.2.2.0 [90/2297856] via 12.12.12.2, 00:22:09, Serial0/03.0.0.0/24 is subnetted, 1 subnetsD 3.3.3.0 [90/2809856] via 12.12.12.2, 00:15:34, Serial0/04.0.0.0/24 is subnetted, 1 subnetsB 4.4.4.0 [200/0] via 3.3.3.3, 00:00:0423.0.0.0/24 is subnetted, 1 subnetsD 23.23.23.0 [90/2681856] via 12.12.12.2, 00:22:09, Serial0/012.0.0.0/24 is subnetted, 1 subnetsC 12.12.12.0 is directly connected, Serial0/0R1#R2#sh ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set1.0.0.0/24 is subnetted, 1 subnetsD 1.1.1.0 [90/2297856] via 12.12.12.1, 00:14:16, Serial0/02.0.0.0/24 is subnetted, 1 subnetsC 2.2.2.0 is directly connected, Loopback03.0.0.0/24 is subnetted, 1 subnetsD 3.3.3.0 [90/2297856] via 23.23.23.3, 00:07:40, Serial0/14.0.0.0/24 is subnetted, 1 subnetsB 4.4.4.0 [200/0] via 3.3.3.3, 00:02:2523.0.0.0/24 is subnetted, 1 subnetsC 23.23.23.0 is directly connected, Serial0/112.0.0.0/24 is subnetted, 1 subnetsC 12.12.12.0 is directly connected, Serial0/0R2#R3#sh ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set34.0.0.0/24 is subnetted, 1 subnetsC 34.34.34.0 is directly connected, Serial0/11.0.0.0/24 is subnetted, 1 subnetsD 1.1.1.0 [90/2809856] via 23.23.23.2, 00:07:48, Serial0/02.0.0.0/24 is subnetted, 1 subnetsD 2.2.2.0 [90/2297856] via 23.23.23.2, 00:07:48, Serial0/03.0.0.0/24 is subnetted, 1 subnetsC 3.3.3.0 is directly connected, Loopback04.0.0.0/24 is subnetted, 1 subnetsB 4.4.4.0 [20/0] via 34.34.34.4, 00:03:2623.0.0.0/24 is subnetted, 1 subnetsC 23.23.23.0 is directly connected, Serial0/012.0.0.0/24 is subnetted, 1 subnetsD 12.12.12.0 [90/2681856] via 23.23.23.2, 00:07:49, Serial0/0R3#R4#sh ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set34.0.0.0/24 is subnetted, 1 subnetsC 34.34.34.0 is directly connected, Serial0/01.0.0.0/24 is subnetted, 1 subnetsB 1.1.1.0 [20/0] via 34.34.34.3, 00:00:504.0.0.0/24 is subnetted, 1 subnetsC 4.4.4.0 is directly connected, Loopback0R4#四、测试R2#sh ip bgp neiR2#sh ip bgp neighbors 1.1.1.1BGP neighbor is 1.1.1.1, remote AS 100, internal linkBGP version 4, remote router ID 1.1.1.1BGP state = Established, up for 00:04:40Last read 00:00:39, hold time is 180, keepalive interval is 60 seconds Neighbor capabilities:Route refresh: advertised and received(old & new)Address family IPv4 Unicast: advertised and receivedMessage statistics:InQ depth is 0OutQ depth is 0Sent RcvdOpens: 2 2Notifications: 0 0Updates: 2 2Keepalives: 29 29Route Refresh: 0 0Total: 33 33Default minimum time between advertisement runs is 5 secondsFor address family: IPv4 UnicastBGP table version 9, neighbor version 9/0Output queue sizes : 0 self, 0 replicatedIndex 2, Offset 0, Mask 0x4Route-Reflector Client2 update-group memberSent RcvdPrefix activity: ---- ----Prefixes Current: 1 1 (Consumes 48 bytes) Prefixes Total: 2 1Implicit Withdraw: 1 0Explicit Withdraw: 0 0Used as bestpath: n/a 1Used as multipath: n/a 0Outbound InboundLocal Policy Denied Prefixes: -------- -------Total: 0 0Number of NLRIs in the update sent: max 1, min 0Connections established 2; dropped 1Last reset 00:05:19, due to RR client config changeConnection state is ESTAB, I/O status: 1, unread input bytes: 0 Connection is ECN DisabledLocal host: 2.2.2.2, Local port: 11002Foreign host: 1.1.1.1, Foreign port: 179Enqueued packets for retransmit: 0, input: 0 mis-ordered: 0 (0 bytes)Event Timers (current time is 0x2272C0):Timer Starts Wakeups NextRetrans 8 0 0x0TimeWait 0 0 0x0AckHold 6 0 0x0SendWnd 0 0 0x0KeepAlive 0 0 0x0GiveUp 0 0 0x0PmtuAger 0 0 0x0DeadWait 0 0 0x0iss: 220836448 snduna: 220836769 sndnxt: 220836769 sndwnd: 16064irs: 2855413144 rcvnxt: 2855413378 rcvwnd: 16151 delrcvwnd: 233SRTT: 197 ms, RTTO: 984 ms, RTV: 787 ms, KRTT: 0 msminRTT: 28 ms, maxRTT: 300 ms, ACK hold: 200 msFlags: active open, nagleIP Precedence value : 6Datagrams (max data segment is 536 bytes):Rcvd: 12 (out of order: 0), with data: 6, total data bytes: 233Sent: 10 (retransmit: 0, fastretransmit: 0, partialack: 0, Second Congestion: 0), with data: 8, total data bytes: 320R2#R2#sh ip bgp neighbors 3.3.3.3BGP neighbor is 3.3.3.3, remote AS 100, internal linkBGP version 4, remote router ID 3.3.3.3BGP state = Established, up for 00:05:58Last read 00:00:57, hold time is 180, keepalive interval is 60 secondsNeighbor capabilities:Route refresh: advertised and received(old & new)Address family IPv4 Unicast: advertised and receivedMessage statistics:InQ depth is 0OutQ depth is 0Sent RcvdOpens: 2 2Notifications: 0 0Updates: 2 2Keepalives: 20 20Route Refresh: 0 0Total: 24 24Default minimum time between advertisement runs is 5 secondsFor address family: IPv4 UnicastBGP table version 9, neighbor version 9/0Output queue sizes : 0 self, 0 replicatedIndex 2, Offset 0, Mask 0x4Route-Reflector Client2 update-group memberSent RcvdPrefix activity: ---- ----Prefixes Current: 2 1 (Consumes 48 bytes)Prefixes Total: 2 1Implicit Withdraw: 0 0Explicit Withdraw: 0 0Used as bestpath: n/a 1Used as multipath: n/a 0Outbound InboundLocal Policy Denied Prefixes: -------- -------Total: 0 0Number of NLRIs in the update sent: max 0, min 0Connections established 2; dropped 1Last reset 00:06:33, due to RR client config changeConnection state is ESTAB, I/O status: 1, unread input bytes: 0Connection is ECN DisabledLocal host: 2.2.2.2, Local port: 11001Foreign host: 3.3.3.3, Foreign port: 179Enqueued packets for retransmit: 0, input: 0 mis-ordered: 0 (0 bytes)Event Timers (current time is 0x23680C):Timer Starts Wakeups NextRetrans 11 0 0x0TimeWait 0 0 0x0AckHold 8 3 0x0SendWnd 0 0 0x0KeepAlive 0 0 0x0GiveUp 0 0 0x0PmtuAger 0 0 0x0DeadWait 0 0 0x0iss: 1760578556 snduna: 1760578915 sndnxt: 1760578915 sndwnd: 16026irs: 1218313682 rcvnxt: 1218313958 rcvwnd: 16109 delrcvwnd: 275SRTT: 231 ms, RTTO: 769 ms, RTV: 538 ms, KRTT: 0 msminRTT: 24 ms, maxRTT: 300 ms, ACK hold: 200 msFlags: active open, nagleIP Precedence value : 6Datagrams (max data segment is 536 bytes):Rcvd: 17 (out of order: 0), with data: 8, total data bytes: 275Sent: 16 (retransmit: 0, fastretransmit: 0, partialack: 0, Second Congestion: 0), with data: 11, total data bytes: 358R2#五、查看BGPR2#sh ip bgp 4.4.4.0BGP routing table entry for 4.4.4.0/24, version 7Paths: (1 available, best #1, table Default-IP-Routing-Table)Advertised to update-groups:2200, (Received from a RR-client)3.3.3.3 (metric 2297856) from 3.3.3.3 (3.3.3.3)Origin IGP, metric 0, localpref 100, valid, internal, bestR2#R1#sh ip bgp 4.4.4.0BGP routing table entry for 4.4.4.0/24, version 3Paths: (1 available, best #1, table Default-IP-Routing-Table)Not advertised to any peer2003.3.3.3 (metric 2809856) from 2.2.2.2 (2.2.2.2)Origin IGP, metric 0, localpref 100, valid, internal, bestOriginator: 3.3.3.3, Cluster list: 2.2.2.2R1#。

10BGP路由反射器(RR)

10BGP路由反射器(RR)

B GP路由反射器(RR)路由反射器相关角色在一个AS内部关于路由反射器有以下几种角色:1、路由反射器RR(Route Reflector):允许把从IBGP对等体学到的路由反射到其他IBGP对等体的BGP设备,类似OSPF网络中的DR。

2、客户机(Client):与RR形成反射邻居关系的IBGP设备。

在AS内部客户机只需要与RR直连。

3、非客户机(Non-Client):既不是RR也不是客户机的IBGP设备。

在AS内部非客户机与RR之间,以及所有的非客户机之间仍然必须建立全连接关系。

4、始发者(Originator):在AS内部始发路由的设备。

Originator_ID属性用于防止集群内产生路由环路。

5、集群(Cluster):路由反射器及其客户机的集合。

Cluster_List属性用于防止集群间产生路由环路。

路由反射器作用:简化设备配置,减少了邻居条目两种主要角色:R R:router reflector,路由反射器C lient:RR客户端路由反射器规则:1、从非客户端收到的路由,发布给所有客户端(客户端和非客户端都是IBGP邻居)2、从客户端收到的路由,发布给所有的客户端和非客户端(客户端和非客户端都是IBGP邻居)3、从EBGP邻居收到路由,发布给所有的客户端和非客户端其他:R R将路由反射时不会修改以下的BGP路径属性:Next_Hop、AS_Path、 Local_Preference、MED,如果反射器修改这几个路径属性的值则有可能产生路由环路路由反射器防环Originator-idRR内部防环O riginator-id属性与自身的router-id相同,则会忽略Cluster-listR R之间的防环C luster-list包含了自身的Cluster-id,则会忽略。

BGP的防环机制

BGP的防环机制

•EBGP的防环
1.利用AS-PASH属性,路由条目在传递的过
程中,将记录所经过的AS号,BGP协议拒
绝接受携带本地AS号的BGP路由
•IBGP 的防环机制
1.水平分割,IBGP不中转路由,从一个IBGP
邻居处学习到的路由条目不得传递给下一个
IBGP邻居
2.Next-hop下一跳属性
3.Origin属性,解决反射器产生的环路,不接
收与自己起源ID相同的路由。

•IBGP中的反射器的防环机制
1.通过Originator_ID属性和Cluster_list属

2.路由反射器和它的客户机组成一个集群
(Cluster),使用AS内唯一的Cluster ID
作为标识。

为了防止集群间产生路由环路,
路由反射器使用Cluster_List属性,记录路
由经过的所有集群的Cluster ID。

3.Originator ID由RR产生,使用的Router
ID的值标识路由的始发者,用于防止集群内
产生路由环路
•IBGP中的联盟的防环
1.通过AS_Path属性防环
2.联盟相关的属性在传出联盟时会自动被删除。

BGP的路由反射器簇

BGP的路由反射器簇

LAB BGP的路由反射器簇一实验说明:在前面的试验中我们了解了路由反射器(RR)的概念。

本实验中我们引入另一个概念:反射簇其实这并不是什么新的概念。

所谓反射簇就是一个RR跟它的客户形成的一个集合,一个AS中,可以有多个反射簇,反射簇之间通过RR建立连接。

一个反射簇内也可以有多个RR(这其实是为了实现冗余)。

这里引入一个簇ID的概念,即存在多个反射簇时,RR用于下面我们就通过试验来了解一下反射簇,也是为了巩固我上几个关于RR试验的概念。

―――――――――――――――――――――――――――――――――――――――二试验一如上图所示,在AS12345中,R2,R3为RR,两台路由器分别指定另外的3台路由器为自己的客户,两个RR与客户的连接关系完全相同,只是相互提供了冗余。

1 基本配置(IGP是EIGRP,已经配置好)r1#sh run | b r brouter bgp 12345no synchronizationnetwork 11.11.11.0 mask 255.255.255.0neighbor 12.0.0.2 remote-as 12345neighbor 13.0.0.3 remote-as 12345no auto-summary―――――――――――――――――r2#sh run | b r brouter bgp 12345no synchronizationneighbor 10.0.0.3 remote-as 12345neighbor 10.0.0.4 remote-as 12345neighbor 10.0.0.5 remote-as 12345neighbor 12.0.0.1 remote-as 12345no auto-summary―――――――――――――――――r3#sh run | b r brouter bgp 12345no synchronizationneighbor 10.0.0.2 remote-as 12345neighbor 10.0.0.4 remote-as 12345neighbor 10.0.0.5 remote-as 12345neighbor 13.0.0.1 remote-as 12345no auto-summary―――――――――――――――――r4#sh run | b r brouter bgp 12345no synchronizationnetwork 44.44.44.0 mask 255.255.255.0neighbor 10.0.0.2 remote-as 12345neighbor 10.0.0.3 remote-as 12345no auto-summary―――――――――――――――――r5#sh run | b r brouter bgp 12345no synchronizationnetwork 55.55.55.0 mask 255.255.255.0neighbor 10.0.0.2 remote-as 12345neighbor 10.0.0.3 remote-as 12345no auto-summary ―――――――――――――――――――――――――――――――――――――――2 配置RR及反射簇r2(config)#router bgp 12345r2(config-router)#neighbor 10.0.0.4 route-reflector-clientr2(config-router)#neighbor 10.0.0.5 route-reflector-clientr2(config-router)#neighbor 12.0.0.1 route-reflector-clientr2(config-router)#bgp cluster-id 23 /设置反射簇ID=23――――――――――――――――――――――――r3(config)#router bgp 12345r3(config-router)#neighbor 10.0.0.4 route-reflector-clientr3(config-router)#neighbor 10.0.0.5 route-reflector-clientr3(config-router)#neighbor 13.0.0.1 route-reflector-clientr3(config-router)#bgp cluster-id 23现在R2,R3已经是这个反射簇中的两个RR了,反射簇ID=23 ,这两个RR互为冗余。

bgp反射器和联盟

bgp反射器和联盟

Bgp反射器和联盟Bgp反射器可以减少bgp对等体的数量。

R2这个不需要和r4建立对等体关系,并且,也不需要在r2上和r4上在配置路由重发布。

即不需要把bgp的路由再发不到igp中去。

这个时候,配置如下R2:bgp 200router-id 2.2.2.2peer 3.3.3.3 as-number 200peer 3.3.3.3 connect-interface LoopBack0peer 12.1.1.1 as-number 100#ipv4-family unicastundo synchronizationpeer 3.3.3.3 enablepeer 12.1.1.1 enabler3:(路由反射器)bgp 200router-id 3.3.3.3peer 2.2.2.2 as-number 200peer 2.2.2.2 connect-interface LoopBack0peer 4.4.4.4 as-number 200peer 4.4.4.4 connect-interface LoopBack0#ipv4-family unicastundo synchronizationpeer 2.2.2.2 enablepeer 2.2.2.2 reflect-clientpeer 4.4.4.4 enablepeer 4.4.4.4 reflect-clientr4:bgp 200router-id 4.4.4.4peer 3.3.3.3 as-number 200peer 3.3.3.3 connect-interface LoopBack0peer 45.1.1.5 as-number 300ipv4-family unicastundo synchronizationpeer 3.3.3.3 enablepeer 45.1.1.5 enable在r3上看下路由:[r3]dis bgp routing-tableBGP Local router ID is 3.3.3.3Status codes: * - valid, > - best, d - damped,h - history, i - internal, s - suppressed, S - StaleOrigin : i - IGP, e - EGP, ? - incompleteTotal Number of Routes: 2Network NextHop MED LocPrf PrefVal Path/Ogni 1.1.1.0/24 12.1.1.1 0 100 0 100ii 5.5.5.0/24 45.1.1.5 0 100 0 300i注意,这个时候两个路由都没有〉号,因为下一跳不可达。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
(3)配置 R2 的 BGP R2: router bgp 1 bgp router-id 2.2.2.2 neighbor 1.1.1.1 remote-as 1 neighbor 1.1.1.1 update-source Loopback0 neighbor 3.3.3.3 remote-as 1 neighbor 3.3.3.3 update-source Loopback0 network 22.2.2.0 ma R3#show ip bgp
说明:R2 将 R1 和 R5 的路由都发来了,R3 的路由表已经完整 (3)查看 R1 的路由情况
R1#show ip bgp
说明:因为从 client 学习到的路由将发送给所有 client 和所有非 client,所 以 R1 收到了 R2 发来的所有路由,但不包括 R4 的路由
Lucifer_los
(4)查看 R2 的路由情况 R2#show ip bgp
Cisco 技术文档
2015/3/25
说明:因为 R3 不能将 iBGP R4 的路由发给任何 iBGP 邻居,所以 R2 也没有 R4 的路 由 (5)在 R3 上查看 R4 发来的路由 44.4.4.0
R3#show ip bgp 44.4.4.0
R2: router bgp 1 neighbor 3.3.3.3 next-hop-self
(8)再次查看 R3 的路由情况 R3#show ip bgp
说明:可以看到,从 R2 反射过来的 R5 的路由 55.5.5.0 的下一跳还是 R5,所以在 Reflector 环境中,下一跳属性是不能被改变的
R5: router bgp 5 bgp roouter-id 5.5.5.5 nei 15.1.1.1 remote-as 1 nei 15.1.1.1 e net 55.5.5.0 ma 255.255.255.0
Lucifer_los
Cisco 技术文档
(2)配置 R1 的 BGP R1: router bgp 1 bgp router-id 1.1.1.1 neighbor 2.2.2.2 remote-as 1 neighbor 2.2.2.2 update-source Loopback0 neighbor 15.1.1.5 remote-as 5 neighbor 15.1.1.5 ebgp-multihop 255 network 11.1.1.0 mask 255.255.255.0
Lucifer_los
Cisco 技术文档
2015/3/25
BGP 路由反射器(Reflector)
拓扑图
说明:
上图中所有路由器都配有 Loopback 地址,地址分别为: R1 Loopback 0 1.1.1.1/32 Loopback 11 11.1.1.1/24 R2 Loopback 0 2.2.2.2/32 Loopback 22 22.2.2.2/24 R3 Loopback 0 3.3.3.3/32 Loopback 33 33.3.3.3/24 R4 Loopback 0 4.4.4.4/32 Loopback 44 44.4.4.4/24 R5 Loopback 0 5.5.5.5/32 Loopback 55 55.5.5.5/24 所有路由器之间运行 OSPF,并将 Loopback 0 的地址发布到 OSPF 中,保证全网 Loopback 0 之间是可以通信的
R3: router bgp 1 bgp cluster-id 123
说明:R3 上修改 cluster ID 为 0.0.0.123 (6)查看 R4 从 Reflector 反射过来的路由信息
R4#show ip bgp 55.5.5.0
说明:R3 已经将 cluster ID 改为 0.0.0.123
(4)配置 R3 的 BGP R3: router bgp 1 bgp router-id 3.3.3.3 neighbor 2.2.2.2 remote-as 1 neighbor 2.2.2.2 update-source Loopback0 neighbor 4.4.4.4 remote-as 1 neighbor 4.4.4.4 update-source Loopback0 network 33.3.3.0 mask 255.255.255.0
配置步骤
1、底层 IP 配置 略
2、IGP 保证全网 Loopback 0 互通 R1: router os 1 router-id 1.1.1.1 net 12.1.1.1 0.0.0.0 a 0 net 1.1.1.1 0.0.0.0 a 0 (其他略)
3、全网配置 BGP (1)配置 R5 的 BGP
说明:R4 发给 R3 的路由为正常路由,所以没有不同
(6)在 R3 上查看 R2 发来的路由 55.5.5.0 R3#show ip bgp 55.5.5.0
说明:因为 R2 是 Reflector,所以发出的路由带有 Cluster ID,即为自己的 Router-ID 2.2.2.2,还有个 Originator ID,就是 AS 边界第一台路由器 R1 的 Router-ID (7)改变 Reflector 路由器 R2 对 Client 的下一跳属性
4、查看 BGP 路由情况 (1)查看 R5 的 BGP 路由情况
R5#show ip bgp
2015/3/25
说明:因为 R2 无法将 R3 和 R4 的路由 33.3.3.0 和 44.4.4.0 发给 R1,所以导致 R5 路由表不完整
Lucifer_los
Cisco 技术文档
(2)查看 R1 的 BGP 路由情况 R1#show ip bgp
(3)查看 R4 的路由情况 R4#show ip bgp
2015/3/25
说明:R3 将所有路由反射给 client R4,最后 R4 拥有了全部的路由 (4)查看 R4 从 Reflector 反射过来的路由信息
R4#show ip bgp 55.5.5.0
说明:路由从一个 cluster 发到另外一个 cluster,cluster ID 会像 AS_Path 一样被保 留累积 (5)在 R3 上修改 cluster ID
(5)配置 R4 的 BGP R4: router bgp 1 bgp router-id 4.4.4.4 neighbor 3.3.3.3 remote-as 1 neighbor 3.3.3.3 update-source Loopback0 network 44.4.4.0 mask 255.255.255.0
R3#show ip bgp
说明:R3 只能收到 R2 和 R4 的直连路由 (5)查看 R4 的 BGP 路由情况
R4#show ip bgp
说明:R4 只能收到 R3 的直连路由
5、配置 BGP Reflector (1)配置 R2 为 BGP Reflector
R2: router bgp 1 neighbor 3.3.3.3 route-reflector-client
6、配置 Cluster 2 (1)查看 R4 的路由情况
R4#show ip bgp
说明:由于 R3 不能将任何从 iBGP 接收到的路由发给 R4,导致 R4 只有 R3 和 R4 两 台路由器的路由
Lucifer_los
Cisco 技术文档
(2)将 R3 配置为另一个 Cluster 的 Reflector R3: router bgp 1 neighbor 4.4.4.4 route-reflector-client
2015/3/25
说明:因为 R2 无法将 R3 和 R4 的路由 33.3.3.0 和 44.4.4.0 发给 R1,所以导致 R1 路 由表不完整 (3)查看 R2 的 BGP 路由情况
R2#show ip bgp
说明:因为 R3 无法将 R4 的路由 44.4.4.0 发给 R2,所以导致 R2 路由表不完整 (4)查看 R3 的 BGP 路由情况
相关文档
最新文档