当前位置: 首页 > 工具软件 > VyOS > 使用案例 >

vyos bgp config

尚景焕
2023-12-01


vyos 1.2.1 version: 

BGP: 

set policy prefix-list LanNet2BGPbgp description LanNet2BGPbgp_FilterLanNet
set policy prefix-list LanNet2BGPbgp rule 100 action 'permit'
set policy prefix-list LanNet2BGPbgp rule 100 description 'LanNet2BGPbgp'
set policy prefix-list LanNet2BGPbgp rule 100 le '32'
set policy prefix-list LanNet2BGPbgp rule 100 prefix '192.168.182.0/24'
set policy prefix-list LanNet2BGPbgp rule 101 action 'permit'
set policy prefix-list LanNet2BGPbgp rule 101 description 'LanNet2BGPbgp'
set policy prefix-list LanNet2BGPbgp rule 101 le '32'
set policy prefix-list LanNet2BGPbgp rule 101 prefix '192.168.183.0/24'

set policy route-map LanNet2BGPbgp description LanNet2BGPbgp_FilterLanNet
set policy route-map LanNet2BGPbgp rule 100 action 'permit'
set policy route-map LanNet2BGPbgp rule 100 match ip address prefix-list 'LanNet2BGPbgp'
set policy route-map LanNet2BGPbgp rule 999 action 'deny'

set policy route-map FORBGPbgpPri1 description ForBGPbgpUsing
set policy route-map FORBGPbgpPri1 rule 100 action 'permit'
set policy route-map FORBGPbgpPri1 rule 100 description 'MAIN'
set policy route-map FORBGPbgpPri1 rule 100 match peer '10.10.118.41'
set policy route-map FORBGPbgpPri1 rule 100 set ip-next-hop '10.10.118.41'
set policy route-map FORBGPbgpPri1 rule 100 set local-preference '150'
set policy route-map FORBGPbgpPri2 rule 100 action 'permit'
set policy route-map FORBGPbgpPri2 rule 100 description 'BK'
set policy route-map FORBGPbgpPri2 rule 100 match peer '10.10.172.169'
set policy route-map FORBGPbgpPri2 rule 100 set ip-next-hop '10.10.172.169'
set policy route-map FORBGPbgpPri2 rule 100 set local-preference '50'

set protocols bgp 65222 address-family ipv4-unicast redistribute connected route-map 'LanNet2BGPbgp'
set protocols bgp 65222 address-family ipv4-unicast redistribute static route-map 'LanNet2BGPbgp'
set protocols bgp 65222 neighbor 10.10.118.41 peer-group 'VRRMIAN'
set protocols bgp 65222 peer-group VRRMIAN address-family ipv4-unicast route-map import 'FORBGPbgpPri1'
set protocols bgp 65222 peer-group VRRMIAN address-family ipv4-unicast soft-reconfiguration inbound
set protocols bgp 65222 peer-group VRRMIAN remote-as '65106'
set protocols bgp 65222 peer-group VRRMIAN update-source '10.10.118.42'
set protocols bgp 65222 neighbor 10.10.172.169 peer-group 'VRRBK'
set protocols bgp 65222 peer-group VRRBK address-family ipv4-unicast route-map import 'FORBGPbgpPri2'
set protocols bgp 65222 peer-group VRRBK address-family ipv4-unicast soft-reconfiguration inbound
set protocols bgp 65222 peer-group VRRBK remote-as '65110'
set protocols bgp 65222 peer-group VRRBK update-source '10.10.172.170'


 

 类似资料:

相关阅读

相关文章

相关问答