基本配置
AR1 AR2 AR3
[AR1]undo info e [AR2]undo info e [AR3]undo info e
[AR1]undo info enable [AR2]undo info enable [AR3]undo info enable
[AR1]int g0/0/0
[AR1-GigabitEthernet0/0/0]ip
add 172.16.12.1 24
[AR1-GigabitEthernet0/0/0]quit
[AR2]int g0/0/0
[AR2-GigabitEthernet0/0/0]ip
add 172.16.12.2 24
[AR2-GigabitEthernet0/0/0]int
g0/0/1
[AR2-GigabitEthernet0/0/1]ip
add 172.16.23.2 24
[AR3]int g0/0/1
[AR3-GigabitEthernet0/0/1]ip
add 172.16.23.3 24
[AR3-GigabitEthernet0/0/1]quit
[AR1]ip route-static 172.16.2
3.0 24 172.16.12.2
[AR3]ip route-static 172.16.1
2.0 24 172.16.23.2
EBGP 配置
AR1 AR3
[AR1]bgp 65000
[AR1-bgp]undo sync
[AR1-bgp]undo summ a
[AR1-bgp]peer 172.16.23.3 as
65001
[AR1-bgp]peer 172.16.23.3 conn
g0/0/0
[AR1-bgp]peer 172.16.23.3 next-
hop-local
[AR3]bgp 65001
[AR3-bgp]undo sync
[AR3-bgp]undo summ a
[AR3-bgp]peer 172.16.12.1 as
65000
[AR3-bgp]peer 172.16.12.1 conn
g0/0/1
[AR3-bgp]peer 172.16.12.1 next-
hop-l