发布时间: 2017-11-25 17:19:20
配置命令:
R1:
router bgp 1
no synchronization
bgp router-id 1.1.1.1
bgp log-neighbor-changes
network 1.1.1.1 mask 255.255.255.255
neighbor 12.1.1.2 remote-as 234
neighbor 14.1.1.2 remote-as 234
no auto-summary
R2;
router bgp 64523
no synchronization
bgp log-neighbor-changes
bgp confederation identifier 234 //声明所在大AS号
neighbor 3.3.3.3 remote-as 64523
neighbor 3.3.3.3 update-source Loopback0
neighbor 3.3.3.3 next-hop-self
neighbor 12.1.1.1 remote-as 1
no auto-summary
router bgp 64523
no synchronization
bgp router-id 3.3.3.3
bgp log-neighbor-changes
bgp confederation identifier 234 //声明所在大AS号
bgp confederation peers 64544 //联邦 小AS间互peer
neighbor 2.2.2.2 remote-as 64523
neighbor 2.2.2.2 update-source Loopback0
neighbor 2.2.2.2 next-hop-self
neighbor 4.4.4.4 remote-as 64544
neighbor 4.4.4.4 ebgp-multihop 255
neighbor 4.4.4.4 update-source Loopback0
neighbor 35.1.1.5 remote-as 5
no auto-summary
R4:
router bgp 64523
no synchronization
bgp router-id 3.3.3.3
bgp log-neighbor-changes
bgp confederation identifier 234 //声明所在大AS号
bgp confederation peers 64544 //联邦 小AS间互peer
neighbor 2.2.2.2 remote-as 64523
neighbor 2.2.2.2 update-source Loopback0
neighbor 2.2.2.2 next-hop-self
neighbor 4.4.4.4 remote-as 64544
neighbor 4.4.4.4 ebgp-multihop 255
neighbor 4.4.4.4 update-source Loopback0
neighbor 35.1.1.5 remote-as 5
no auto-summary
router bgp 5
no synchronization
bgp router-id 5.5.5.5
bgp log-neighbor-changes
neighbor 35.1.1.3 remote-as 234
no auto-summary
查看联邦