BGP联邦


R1,R2,R3,R4,R5直接相连应该ping通。


R1:
router bgp 100
 no synchronization
 bgp log-neighbor-changes
 network 1.1.1.0 mask 255.255.255.0
 network 12.1.1.0 mask 255.255.255.0
 neighbor 12.1.1.2 remote-as 234
 no auto-summary
 
 
R2:
router bgp 65001
 no synchronization
 bgp log-neighbor-changes
 bgp confederation identifier 234  /* 向外发送自己AS号码234
 bgp confederation peers 65002    /*R2与AS65002建立邻居关系
 network 12.1.1.0 mask 255.255.255.0
 network 23.1.1.0 mask 255.255.255.0
 neighbor 12.1.1.1 remote-as 100
 neighbor 23.1.1.3 remote-as 65001
 no auto-summary
 
R3:
router bgp 65001
 no synchronization
 bgp log-neighbor-changes
 bgp confederation identifier 234
 bgp confederation peers 65002
 network 23.1.1.0 mask 255.255.255.0
 network 34.1.1.0 mask 255.255.255.0
 neighbor 23.1.1.2 remote-as 65001
 neighbor 34.1.1.4 remote-as 65002
 no auto-summary
 
R4:
router bgp 65002
 no synchronization
 bgp log-neighbor-changes
 bgp confederation identifier 234
 bgp confederation peers 65001
 network 34.1.1.0 mask 255.255.255.0
 network 45.1.1.0 mask 255.255.255.0
 neighbor 34.1.1.3 remote-as 65001
 neighbor 45.1.1.5 remote-as 500
 no auto-summary
 
R5:
 router bgp 500
 no synchronization
 bgp log-neighbor-changes
 network 5.5.5.0 mask 255.255.255.0
 network 45.1.1.0 mask 255.255.255.0
 neighbor 45.1.1.4 remote-as 234
 no auto-summary

你可能感兴趣的:(职场,休闲,BGP,联邦)