为了分担RR的负担,有时候需要建立多级RR。
拓扑如下
R2R3作为R1的客户端,R4R5和R6R7分别作为R2和R3的客户端。所有路由器都处于AS1.
基本配置显示:
R1#sh ip int b
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES manual up up
FastEthernet0/0.12 12.1.1.1 YES manual up up
FastEthernet0/0.13 13.1.1.1 YES manual up up
Loopback0 1.1.1.1 YES manual up up
…omit
R1#sh run | b router
router ospf 10
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!
router bgp 1
no synchronization
bgp router-id 1.1.1.1
bgp log-neighbor-changes
network 1.1.1.0 mask 255.255.255.0
neighbor 12.1.1.2 remote-as 1
neighbor 12.1.1.2 route-reflector-client
neighbor 13.1.1.3 remote-as 1
neighbor 13.1.1.3 route-reflector-client
no auto-summary
R2#sh ip int b
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES manual up up
FastEthernet0/0.12 12.1.1.2 YES manual up up
FastEthernet0/0.24 24.1.1.2 YES manual up up
FastEthernet0/0.25 25.1.1.2 YES manual up up
Loopback0 2.2.2.2 YES manual up up
….omit
R2#sh run | b router
router ospf 10
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!
router bgp 1
no synchronization
bgp router-id 2.2.2.2
bgp log-neighbor-changes
network 2.2.2.0 mask 255.255.255.0
neighbor 12.1.1.1 remote-as 1
neighbor 24.1.1.4 remote-as 1
neighbor 24.1.1.4 route-reflector-client
neighbor 25.1.1.5 remote-as 1
neighbor 25.1.1.5 route-reflector-client
no auto-summary
R4#sh ip int b
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES manual up up
FastEthernet0/0.24 24.1.1.4 YES manual up up
Loopback0 4.4.4.4 YES manual up up
….omit
R4#
R4#
R4#sh run | b router
router ospf 10
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!
router bgp 1
no synchronization
bgp router-id 4.4.4.4
bgp log-neighbor-changes
network 4.4.4.0 mask 255.255.255.0
neighbor 24.1.1.2 remote-as 1
no auto-summary
下面看看BGP表
R1#sh ip b
BGP table version is 8, 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
*>i2.2.2.0/24 12.1.1.2 0 100 0 i
*>i3.3.3.0/24 13.1.1.3 0 100 0 i
*>i4.4.4.0/24 24.1.1.4 0 100 0 i
*>i5.5.5.0/24 25.1.1.5 0 100 0 i
*>i6.6.6.0/24 36.1.1.6 0 100 0 i
*>i7.7.7.0/24 37.1.1.7 0 100 0 i
R2#sh ip b
BGP table version is 8, local router ID is 2.2.2.2
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
*>i1.1.1.0/24 12.1.1.1 0 100 0 i
*> 2.2.2.0/24 0.0.0.0 0 32768 i
*>i3.3.3.0/24 13.1.1.3 0 100 0 i
*>i4.4.4.0/24 24.1.1.4 0 100 0 i
*>i5.5.5.0/24 25.1.1.5 0 100 0 i
*>i6.6.6.0/24 36.1.1.6 0 100 0 i
*>i7.7.7.0/24 37.1.1.7 0 100 0 i
R4#sh ip b
BGP table version is 8, local router ID is 4.4.4.4
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
*>i1.1.1.0/24 12.1.1.1 0 100 0 i
*>i2.2.2.0/24 24.1.1.2 0 100 0 i
*>i3.3.3.0/24 13.1.1.3 0 100 0 i
*> 4.4.4.0/24 0.0.0.0 0 32768 i
*>i5.5.5.0/24 25.1.1.5 0 100 0 i
*>i6.6.6.0/24 36.1.1.6 0 100 0 i
*>i7.7.7.0/24 37.1.1.7 0 100 0 i
都学到了。
一般在实际的工程项目中,不要有超过2级的RR的设计出现,这样很容易出现环路或者次优路由。
转载于:https://blog.51cto.com/edges/340092