实验拓扑:
r1——r7——r3
分别用串口连接
配置如下:
r7:
hostname r7
interface loopback0
ip address 116.83.25.1 255.255.255.0
interface loopback1
ip address 116.83.26.1 255.255.255.0
!
interface ethernet0
no ip address
!
interface serial0
ip address 192.168.54.5 255.255.255.252
encapsulation ppp
no fair-queue
!
interface serial1
ip address 192.168.54.1 255.255.255.252
encapsulation ppp
!
router bgp 15210
network 192.168.54.0
neighbor 192.168.54.2 remote-as 15210
neighbor 192.168.54.2 route-reflector-client
配置充当反射客户端的每个邻居.
neighbor 192.168.54.6 remote-as 15210
建立bgp对等体关系
neighbor 192.168.54.6 route-reflector-client
no auto-summary
!
r2:
hostname r2
interface loopback0
ip address 10.1.1.1 255.255.255.0
!
router bgp 15210
bgp log-neighbor-changes
network 10.1.1.0 mask 255.255.255.0
network 192.168.54.0 mask 255.255.255.0
neighbor 192.168.54.1 remote-as 15210
no auto-summary
r3:
router bgp 15210
no synchronization
bgp log-neighbor-changes
network 192.168.54.0 mask 255.255.255.0
neighbor 192.168.54.5 remote-as 15210
no auto-summary