BGP理解错误的部署RR造成的环路


Platform:cisco iou


目的:理解错误的布署RR造成的环路。
验证:在R6上去traceroute 1.1.1.1 source 6.6.6.6

step 1:load config file (basic_config.txt)

step 2:test 

R1++++++++++++++++++++++++++++++++++++++++++++++++++++

int lo 0
ip add 1.1.1.1 255.255.255.255

int e0/0
no sh
int e0/0.12
en do 12
ip add 12.1.1.1 255.255.255.0

int e0/0.13
en do 13
ip add 13.1.1.1 255.255.255.0

router bgp 100
 no synchronization
 bgp log-neighbor-changes
 network 1.1.1.1 mask 255.255.255.255
 neighbor 12.1.1.2 remote-as 200
 neighbor 13.1.1.3 remote-as 200
 no auto-summary

R2++++++++++++++++++++++++++++++++++++++++++++++

int lo 0
ip add 2.2.2.2 255.255.255.255

int e0/0
no sh
int e0/0.12
en do 12
ip add 12.1.1.2 255.255.255.0

int e0/0.24
en do 24
ip add 24.1.1.2 255.255.255.0

router bgp 200
 no synchronization
 bgp log-neighbor-changes
 neighbor 4.4.4.4 remote-as 200
 neighbor 4.4.4.4 update-source Loopback0
 neighbor 4.4.4.4 next-hop-self
 neighbor 12.1.1.1 remote-as 100
 no auto-summary

router ospf 100
net 2.2.2.2 0.0.0.0 a 0
net 24.1.1.2 0.0.0.0 a 0

R3+++++++++++++++++++++++++++++++++++++++++++++++++++++


int lo 0
ip add 3.3.3.3 255.255.255.255

int e0/0
no sh
int e0/0.13
en do 13
ip add 13.1.1.3 255.255.255.0

int e0/0.35
en do 35
ip add 35.1.1.3 255.255.255.0

router bgp 200
 no synchronization
 bgp log-neighbor-changes
 neighbor 5.5.5.5 remote-as 200
 neighbor 5.5.5.5 update-source Loopback0
 neighbor 5.5.5.5 next-hop-self
 neighbor 13.1.1.1 remote-as 100
 no auto-summary

router ospf 100
net 3.3.3.3 0.0.0.0 a 0
net 35.1.1.3 0.0.0.0 a 0

R4++++++++++++++++++++++++++++++++++++++++++++++++++++++++

int lo 0
ip add 4.4.4.4 255.255.255.255

int e0/0
no sh
int e0/0.24
en do 24
ip add 24.1.1.4 255.255.255.0

int e0/0.46
en do 46
ip add 46.1.1.4 255.255.255.0


router bgp 200
 no synchronization
 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 7.7.7.7 remote-as 200
 neighbor 7.7.7.7 update-source Loopback0
 neighbor 7.7.7.7 route-reflector-client
 neighbor 7.7.7.7 next-hop-self
 no auto-summary

router ospf 100
net 0.0.0.0 0.0.0.0 a 0

R5++++++++++++++++++++++++++++++++++++++++++++++++++

int lo 0
ip add 5.5.5.5 255.255.255.255

int e0/0
no sh
int e0/0.35
en do 35
ip add 35.1.1.5 255.255.255.0

int e0/0.57
en do 57
ip add 57.1.1.5 255.255.255.0

router bgp 200
 no synchronization
 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 route-reflector-client
 neighbor 6.6.6.6 remote-as 200
 neighbor 6.6.6.6 update-source Loopback0
 neighbor 6.6.6.6 route-reflector-client
 neighbor 6.6.6.6 next-hop-self
 no auto-summary

router ospf 100
net 0.0.0.0 0.0.0.0 a 0


R6+++++++++++++++++++++++++++++++++++++++++++++++

int lo 0
ip add 6.6.6.6 255.255.255.255

int e0/0
no sh    
int e0/0.46
en do 46
ip add 46.1.1.6 255.255.255.0

int e0/0.67
en do 67
ip add 67.1.1.6 255.255.255.0

router bgp 200
 no synchronization
 bgp log-neighbor-changes
 network 6.6.6.6 mask 255.255.255.255
 neighbor 5.5.5.5 remote-as 200
 neighbor 5.5.5.5 update-source Loopback0
 no auto-summary


router ospf 100
net 0.0.0.0 0.0.0.0 a 0

R7++++++++++++++++++++++++++++++++++++++++++++

int lo 0
ip add 7.7.7.7 255.255.255.255

int e0/0
no sh
int e0/0.57
en do 57
ip add 57.1.1.7 255.255.255.0

int e0/0.67
en do 67
ip add 67.1.1.7 255.255.255.0

router bgp 200
 no synchronization
 bgp log-neighbor-changes
 neighbor 4.4.4.4 remote-as 200
 neighbor 4.4.4.4 update-source Loopback0
 no auto-summary


router ospf 100
net 0.0.0.0 0.0.0.0 a 0
 

posted @ 2020-04-15 08:06  cyrusxx  阅读(163)  评论(0编辑  收藏  举报