Topology:
Configuration:
--------------------------R1------------------------
Interface Loopback0
IP Address 1.1.1.1 255.255.255.0
!
Interface fastethernet0/0
IP address 12.1.1.1 255.255.255.0
Duplex Auto
Speed auto
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 12.1.1.2 Remote-as 200
No auto-summary
--------------------------R2---------------
Interface Loopback0
IP address 2.2.2.2 255.255.255.255
!
Interface fastethernet0/0
IP address 12.1.1.2 255.255.255.0
Duplex Auto
Speed auto
!
Interface FASTETHERNET0/1
IP address 23.1.1.2 255.255.255.0
Duplex Auto
Speed auto
!
router OSPF 100
Router-id 2.2.2.2
Log-adjacency-changes
Network 2.2.2.2 0.0.0.0 Area 0
Network 23.1.1.0 0.0.0.255 Area 0
!
Router BGP 200
No synchronization
BGP Router-id 2.2.2.2
BGP log-neighbor-changes
Neighbor 3.3.3.3 Remote-as 200
Neighbor 3.3.3.3 Update-source Loopback0
Neighbor 3.3.3.3 Next-hop-self
Neighbor 12.1.1.1 Remote-as 100
No auto-summary
------------------R3--------------
Interface Loopback0
IP address 3.3.3.3 255.255.255.255
!
Interface fastethernet0/0
IP address 34.1.1.3 255.255.255.0
Duplex Auto
Speed auto
!
Interface FASTETHERNET0/1
IP address 23.1.1.3 255.255.255.0
Duplex Auto
Speed auto
!
router OSPF 100
Router-id 3.3.3.3
Log-adjacency-changes
Network 3.3.3.3 0.0.0.0 Area 0
Network 23.1.1.0 0.0.0.255 Area 0
Network 34.1.1.0 0.0.0.255 Area 0
!
Router BGP 200
No synchronization
BGP Router-id 3.3.3.3
BGP log-neighbor-changes
Neighbor 2.2.2.2 Remote-as 200
Neighbor 2.2.2.2 Update-source Loopback0
Neighbor 2.2.2.2 Route-reflector-client
Neighbor 4.4.4.4 Remote-as 200
Neighbor 4.4.4.4 Update-source Loopback0
Neighbor 4.4.4.4 Route-reflector-client
No auto-summary
-----------------R4--------------------
Interface Loopback0
IP address 4.4.4.4 255.255.255.255
!
Interface fastethernet0/0
IP address 34.1.1.4 255.255.255.0
Duplex Auto
Speed auto
!
Interface FASTETHERNET0/1
IP address 45.1.1.4 255.255.255.0
Duplex Auto
Speed auto
!
router OSPF 100
Router-id 4.4.4.4
Log-adjacency-changes
Network 4.4.4.4 0.0.0.0 Area 0
Network 34.1.1.0 0.0.0.255 Area 0
!
Router BGP 200
No synchronization
BGP Router-id 4.4.4.4
BGP log-neighbor-changes
Neighbor 3.3.3.3 Remote-as 200
Neighbor 3.3.3.3 Update-source Loopback0
Neighbor 45.1.1.5 Remote-as 300
No auto-summary
-------------------R5-------------------
Interface FASTETHERNET0/1
IP address 45.1.1.5 255.255.255.0
Duplex Auto
Speed auto
!
Router BGP 300
No synchronization
BGP Router-id 5.5.5.5
BGP log-neighbor-changes
Neighbor 45.1.1.4 Remote-as 200
No auto-summary
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Network/lyjs/