ipv4
set routing-options static route 10.10.10.0/24 next-hop 192.168.0.1
ipv6
set routing-options rib inet6.0 static route 2222:ccc0:1::/59 next-hop fc00:8c20:1833:1000::ad5:0002
路由策略配置(一眼懂)
set policy-options policy-statement test term 5 from route-filter 0.0.0.0/0 exact
set policy-options policy-statement test term 5 from route-filter 192.168.10.0/24 exact
set policy-options policy-statement test term 5 then reject
set policy-options policy-statement test term 10 from route-filter 172.16.0.0/15 exact
set policy-options policy-statement test term 10 from route-filter 172.17.10.0/24 exact
set policy-options policy-statement test term 30 then accept
BGP配置
set routing-options autonomous-system 65534 ##设置本地的AS号
set protocols bgp group ebgp type external
set protocols bgp group ebgp peer-as 6939 ##邻居的AS号
set protocols bgp group ebgp neighbor 192.168.0.1 import test ##绑定路由策略
set protocols bgp group ebgp neighbor 192.168.0.1 export test_export
set protocols bgp group ebgp neighbor 4111:0472:1231:447a:0000:0000:0000:0001 export ipv6