网络
vyos配置bgp
·
143 字
·
约 1 分钟
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| set interfaces ethernet eth2 mtu 9000
commit
save
set interfaces ethernet eth2 vif 100 address 100.100.100.254/24
set interfaces ethernet eth2 vif 100 description bgp100
set interfaces ethernet eth2 vif 100 mtu 9000
set interfaces ethernet eth2 vif 200 address 200.200.200.254/24
set interfaces ethernet eth2 vif 200 description bgp200
set interfaces ethernet eth2 vif 200 mtu 9000
set interfaces dummy dum01 address 1.1.1.1/24
set protocols bgp parameters router-id 1.1.1.1
set protocols bgp system-as 65001
set protocols bgp neighbor 100.100.100.1 remote-as 65000
set protocols bgp neighbor 200.200.200.1 remote-as 65000
set protocols bgp neighbor 100.100.100.1 address-family ipv4-unicast
set protocols bgp neighbor 200.200.200.1 address-family ipv4-unicast
set protocols bgp address-family ipv4-unicast redistribute connected
set protocols bgp address-family ipv4-unicast redistribute static
commit
save
exit
show bgp summary
|