I am trying to add a static default route using the permanent keyword on an interface which is currently down/down. My understanding is that permanent keyword is supposed to bypass this check is that correct?
Router(config)#ip route 0.0.0.0 0.0.0.0 gigabitEthernet 0 permanent
%Default route without gateway, if not a point-to-point interface, may impact performance
Router(config)#do show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override
Gateway of last resort is not set
Why does it not set the gateway of last resort?
EDIT
So I just noticed towards the end of my configuration it says:
!
!
ip route 0.0.0.0 0.0.0.0 X.X.X.X permanent
Even though show ip route says it's not set.
I saved running to startup, reloaded and sure enough:
Router#show ip route
Gateway of last resort is X.X.X.X to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via X.X.X.X
This also works for interfaces
Gateway of last resort is 0.0.0.0 to network 0.0.0.0
S* 0.0.0.0/0 is directly connected, GigabitEthernet0