while i was testing Junos in a virtual environment, i accidentally deleted an entry in the forwarding base (do not clearly remember which command i used to let that happen), but because of this the device did not want to install the route (ospf) anymore in the fib, also not when i tried with a static route, it was still showing in the RIB btw.
What can i do in the future to readd a route to the fib, incase I or someone else accidentally deletes route(s) from the forwarding base?
tia!
update:
so i was able to find the command which made me delete an entry in the fib, it was the clear-route forwarding table "network/mask" "next-hop" command. Does anyone know how to re-add routes incase something like this happens? (my motive for running this command was so i could refresh that route)
shut/noshut and/or adding a static route for the same dest. network and next-hop did not do the trick.
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