r1:
r2:
r3:
r4:
r5:
r2:
r3:
r4:
r1:
r2:
r3:
r4:
bgp 2
router-id 4.4.4.4
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 5.5.5.5 as-number 3
peer 5.5.5.5 ebgp-max-hop 2
peer 5.5.5.5 connect-interface LoopBack0
r5:
R4
ip route-static 5.5.5.0 255.255.255.0 45.1.1.2
ip route-static 5.5.5.0 255.255.255.0 56.1.1.2
R5
ip route-static 4.4.4.0 255.255.255.0 45.1.1.1
ip route-static 4.4.4.0 255.255.255.0 56.1.1.1
宣告:
其余同理即可
最后进行连通性测试即可
实验完成。