背景
- 公司有一台Juniper MX480的路由器承载了全球的路由条目,所以这篇文章整理了Juniper的常用命令,方便后续维护
- PS:Juniper设备的配置命令还是很规范的,也很容易看懂
查看路由条目
1 | show route |
查看设备配置,以命令的方式
1 | show configuration |display set |
配置静态路由
1 | ipv4 |
路由策略配置(一眼懂)
1 | set policy-options policy-statement test term 5 from route-filter 0.0.0.0/0 exact |
BGP配置
1 | set routing-options autonomous-system 65534 ##设置本地的AS号 |
查看所有的BGP邻居状态
1 | show bgp summary |
查看光模块收发光
1 | show interfaces diagnostics optics xe-0/2/2 |