R1
配置:
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

r1#show running-config
Building configuration...

 

Current configuration : 1152 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r1
!
boot-start-marker
boot-end-marker
!
!
memory-size iomem 5
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
!
!
ip cef
ip ips po max-events 100
no ftp-server write-enable
!
interface Loopback1
 ip address <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />1.1.1.1 255.255.255.0
!
interface Serial0/0
 ip address 192.168.1.1 255.255.255.0
 serial restart-delay 0
!
interface Serial0/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
!
router eigrp 1
 network 1.1.1.0 0.0.0.255
 network 192.168.1.0
 no auto-summary
!
router bgp 100
 no synchronization
 bgp router-id 1.1.1.1
 bgp log-neighbor-changes
 network 1.1.1.0 mask 255.255.255.0
 neighbor 2.2.2.2 remote-as 100
 neighbor 2.2.2.2 update-source Loopback1
 no auto-summary
!
ip http server
no ip http secure-server
ip classless
!
control-plane
!
line con 0
line aux 0
line vty 0 4
 login
!
End

 

 

 

 

R2
配置:

r2#show running-config
Building configuration...

 

Current configuration : 1301 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r2
!
boot-start-marker
boot-end-marker
!
!
memory-size iomem 5
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
!
!
ip cef
ip ips po max-events 100
no ftp-server write-enable
!
interface Loopback2
 ip address 2.2.2.2 255.255.255.0
!
interface Serial0/0
 ip address 192.168.1.2 255.255.255.0
 serial restart-delay 0
!
interface Serial0/1
 ip address 192.168.2.1 255.255.255.0
 serial restart-delay 0
!
interface Serial0/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
!
router eigrp 1
 network 2.2.2.0 0.0.0.255
 network 192.168.1.0
 network 192.168.2.0
 no auto-summary
!
router bgp 100
 no synchronization
 bgp router-id 2.2.2.2
 bgp log-neighbor-changes
 network 2.2.2.0 mask 255.255.255.0
 neighbor 1.1.1.1 remote-as 100
 neighbor 1.1.1.1 update-source Loopback2
 neighbor 3.3.3.3 remote-as 100
 neighbor 3.3.3.3 update-source Loopback2
 neighbor 3.3.3.3 route-reflector-client
 no auto-summary
!
ip http server
no ip http secure-server
ip classless
!
control-plane
!
line con 0
line aux 0
line vty 0 4
 login
!
!
End

 

 

 

R3
配置:

r3#show running-config

Building configuration...

 

Current configuration : 1233 bytes

!

version 12.3

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname r3

!

boot-start-marker

boot-end-marker

!

!

memory-size iomem 5

no aaa new-model

ip subnet-zero

!

!

no ip domain lookup

!

ip cef

ip ips po max-events 100

no ftp-server write-enable

!

interface Loopback3

 ip address 3.3.3.3 255.255.255.0

!

interface Serial0/0

 no ip address

 shutdown

 serial restart-delay 0

!

interface Serial0/1

 ip address 192.168.2.2 255.255.255.0

 serial restart-delay 0

!

interface Serial0/2

 ip address 192.168.3.1 255.255.255.0

 serial restart-delay 0

!

interface Serial0/3

 no ip address

 shutdown

 serial restart-delay 0

!

router eigrp 1

 network 3.3.3.0 0.0.0.255

 network 192.168.2.0

 no auto-summary

!

router bgp 100

 no synchronization

 bgp router-id 3.3.3.3

 bgp log-neighbor-changes

 network 3.3.3.0 mask 255.255.255.0

 neighbor 2.2.2.2 remote-as 100

 neighbor 2.2.2.2 update-source Loopback3

 neighbor 2.2.2.2 next-hop-self

 neighbor 192.168.3.2 remote-as 200

 no auto-summary

!

ip http server

no ip http secure-server

ip classless

!

control-plane

!

line con 0

line aux 0

line vty 0 4

 login

!

!

End

 

 

 

 

R4
配置:

r4#  show running-config

Building configuration...

 

Current configuration : 1032 bytes

!

version 12.3

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname r4

!

boot-start-marker

boot-end-marker

!

memory-size iomem 5

no aaa new-model

ip subnet-zero

!

no ip domain lookup

!

!

ip cef

ip ips po max-events 100

no ftp-server write-enable

!

interface Loopback4

 ip address 4.4.4.4 255.255.255.0

!

interface Serial0/0

 no ip address

 shutdown

 serial restart-delay 0

!

interface Serial0/1

 no ip address

 shutdown

 serial restart-delay 0

!

interface Serial0/2

 ip address 192.168.3.2 255.255.255.0

 serial restart-delay 0

!

interface Serial0/3

 no ip address

 shutdown

 serial restart-delay 0

!

router bgp 200

 no synchronization

 bgp router-id 4.4.4.4

 bgp log-neighbor-changes

 network 4.4.4.0 mask 255.255.255.0

 neighbor 192.168.3.1 remote-as 100

 no auto-summary

!

ip http server

no ip http secure-server

ip classless

!

control-plane

!

line con 0

line aux 0

line vty 0 4

 login

!

!

End

 

 

结论:

RR
会从
EBGP  
学习的路由反射给簇内的客户端和非客户端

RR
会从客户端收到的路由反射到客户端、非客户端、
EBGP
邻居

RR
从非客户端收到的路由会反射给客户端和
EBGP