当我在虚拟环境中测试 Junos 时,我不小心删除了转发库中的一个条目(不清楚我曾经使用哪个命令让这种情况发生),但因此设备不想安装路由(ospf)不再在fib中,当我尝试使用静态路由时,它仍然显示在RIB btw中。
如果我或其他人不小心从转发库中删除了路由,我将来该怎么做才能读取到 fib 的路由?
蒂亚!
更新:
所以我能够找到让我删除fib中的条目的命令,它是clear-route转发表“network/mask”“next-hop”命令。有谁知道如何重新添加路线以防发生这种情况?(我运行这个命令的动机是我可以刷新那条路线)
关闭/noshut 和/或为同一目标添加静态路由。网络和下一跳没有成功。
root# run show route
inet.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
1.1.1.0/24 *[OSPF/10] 00:00:11, metric 2
> to 2.2.2.1 via ge-0/0/0.0
root# run show route forwarding-table
Routing table: default.inet
Internet:
Destination Type RtRef Next hop Type Index NhRef Netif
default perm 0 rjct 36 1
0.0.0.0/32 perm 0 dscd 34 1
1.1.1.0/24 user 0 2.2.2.1 ucst 557 3 ge-0/0/0.0
========= command - root# run clear route forwarding-table 1.1.1.0/24 2.2.2.1
==== after
root# run show route
inet.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
1.1.1.0/24 *[OSPF/10] 00:07:30, metric 2
> to 2.2.2.1 via ge-0/0/0.0
root# run show route forwarding-table
Routing table: default.inet
Internet:
Destination Type RtRef Next hop Type Index NhRef Netif
default perm 0 rjct 36 1
0.0.0.0/32 perm 0 dscd 34 1
2.2.2.0/24 intf 0 rslv 554 1 ge-0/0/0.0