static route using both broadcast interface and next-hop ip !!
hi,
I have used in my lab a static route "ip route 4.4.4.4 255.255.255.255 GigabitEthernet1/0 10.0.0.3"
both 10.0.0.3 and 10.0.0.2 have route to 4.4.4.4/32
using the static route mentioned up, the router installed 10.0.0.3, I have shutdown 10.0.0.3 and I was expecting the router change its decision to 10.0.0.2 but it did not.
so here what is the use of this command since it is available in Cisco IOS??
thanks,
I have used in my lab a static route "ip route 4.4.4.4 255.255.255.255 GigabitEthernet1/0 10.0.0.3"
both 10.0.0.3 and 10.0.0.2 have route to 4.4.4.4/32
using the static route mentioned up, the router installed 10.0.0.3, I have shutdown 10.0.0.3 and I was expecting the router change its decision to 10.0.0.2 but it did not.
so here what is the use of this command since it is available in Cisco IOS??
thanks,
Comments
but how is that possible with Router since first of all it does not accept same prefix to be assigned to two different interfaces. like if I use command "ip route 4.4.4.4 255.255.255.255 GigabitEthernet1/0 10.0.0.3" it does not make sense if Gig1 had prefix like 10.0.2.1\24
??
however when I tried it, it was possible and don't understand why the router accept such this
I have tried to use command like "ip route 4.4.4.4 255.255.255.255 10.0.0.3" without specifying the interface, when the directly connected interface which has 10.0.0.1\24 got down, this route was removed from the routing table. so in case of redistributing statics route into IGP, routing table will get updated automatically without using interface option in the static route as per this result !!
10.0.0.3 is the next hop and available on the LAN interface of the router. so how come I can reach it via another router!!
the destination network is 4.4.4.4/32