码迷,mamicode.com
首页 > 其他好文 > 详细

juniper-bgp配置命令(备忘)

时间:2017-07-09 10:35:40      阅读:320      评论:0      收藏:0      [点我收藏+]

标签:juniper   bgp配置   

ex4550与防火墙旁路BGP牵引配置


创建as域及对端

set routing-options autonomous-system 65533

set protocols bgp group ebgp type external

set protocols bgp group ebgp neighbor 10.0.0.2 multihop

set protocols bgp group ebgp neighbor 10.0.0.2  import bgp_permit

set protocols bgp group ebgp neighbor 10.0.0.2  export bgp_deny

set protocols bgp group ebgp neighbor 10.0.0.2  peer-as 65534


编写需要发布/不发布的路由,需要引入的路由。

set policy-options policy-statement bgp_deny term 1 from route-filter 0.0.0.0/0 orlonger

set policy-options policy-statement bgp_deny term 1 then reject

set policy-options policy-statement bgp_permit term 1 from route-filter 1.0.0.0/24 upto /32

set policy-options policy-statement bgp_permit term 1 then accept

set policy-options policy-statement bgp_permit term 2 then reject


创建策略路由指定回注端口。

set firewall family inet filter zzidcip term pass from destination-address 1.0.0.0/24

set firewall family inet filter zzidcip term pass then routing-instance zzidcip

set firewall family inet filter zzidcip term 1 then accept

set routing-instances zzidcip instance-type forwarding

set routing-instances zzidcip routing-options static route 0.0.0.0/0 next-hop 172.31.4.5


主策略路由内引入附表 。

set routing-options rib-groups celve import-rib zzidcip.inet.0


端口应用策略路由。

set interfaces xe-0/0/20 unit 0 family inet filter input zzidcip

set interfaces xe-0/0/20 unit 0 family inet address 10.0.0.1/30


通过show bgp summary查看bgp状态

juniper-bgp配置命令(备忘)

标签:juniper   bgp配置   

原文地址:http://duxin.blog.51cto.com/8901129/1945497

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!