除R5的5.5.5.0环回外;其他所有的环回均可以互相访问
R1
[r1-bgp]display this [V200R003C00] # bgp 1 router-id 1.1.1.1 peer 12.1.1.2 as-number 2 # ipv4-family unicast undo synchronization deterministic-med network 1.1.1.0 255.255.255.0 peer 12.1.1.2 enable # return
R2
[r2-bgp]display th [V200R003C00] # bgp 2 router-id 2.2.2.2 peer 3.3.3.3 as-number 2 peer 3.3.3.3 connect-interface LoopBack0 peer 4.4.4.4 as-number 2 peer 4.4.4.4 connect-interface LoopBack0 peer 12.1.1.1 as-number 1 # ipv4-family unicast undo synchronization network 2.2.2.0 255.255.255.0 peer 3.3.3.3 enable peer 3.3.3.3 next-hop-local peer 4.4.4.4 enable peer 4.4.4.4 next-hop-local peer 12.1.1.1 enable # return
R3
[r3-bgp]display th [V200R003C00] # bgp 2 router-id 3.3.3.3 peer 2.2.2.2 as-number 2 peer 2.2.2.2 connect-interface LoopBack0 peer 4.4.4.4 as-number 2 peer 4.4.4.4 connect-interface LoopBack0 # ipv4-family unicast undo synchronization network 3.3.3.0 255.255.255.0 peer 2.2.2.2 enable peer 4.4.4.4 enable # return
R4
[r4-bgp]display th [V200R003C00] # bgp 2 router-id 4.4.4.4 peer 2.2.2.2 as-number 2 peer 2.2.2.2 connect-interface LoopBack0 peer 3.3.3.3 as-number 2 peer 3.3.3.3 connect-interface LoopBack0 peer 5.5.5.5 as-number 3 peer 5.5.5.5 ebgp-max-hop 2 peer 5.5.5.5 connect-interface LoopBack0 # ipv4-family unicast undo synchronization network 4.4.4.0 255.255.255.0 peer 2.2.2.2 enable peer 2.2.2.2 next-hop-local peer 3.3.3.3 enable peer 3.3.3.3 next-hop-local peer 5.5.5.5 enable # return
R5
[r5-bgp]display th [V200R003C00] # bgp 3 router-id 5.5.5.5 peer 4.4.4.4 as-number 2 peer 4.4.4.4 ebgp-max-hop 2 peer 4.4.4.4 connect-interface LoopBack0 # ipv4-family unicast undo synchronization network 99.1.1.0 255.255.255.0 peer 4.4.4.4 enable # return