cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4358
Views
0
Helpful
4
Replies

Catalyst 9200 unable to set gateway of last resort

Hi,

 

I'm trying to add the gateway of last resort to my Catalyst 9200 stack using:

ip route 0.0.0.0 0.0.0.0 10.0.0.1

When I run the command it completes without any error, but then it does not appear as gateway of last resort when I do:

show ip route

Gateway of last resort is not set

I do have IP routing enabled and assume I cannot use the below because the next hop is on a subnet that the switch has an SVI for:

ip default-network

Appreciate any guidance.

 

Thanks

James

1 Accepted Solution

Accepted Solutions

 

Correct, the next hop IP needs to be reachable before the route is installed in the IP routing table. 

 

Jon

View solution in original post

4 Replies 4

Jon Marshall
Hall of Fame
Hall of Fame

 

Can you ping 10.0.0.1 ?

 

Jon

I can't, as these are going to be replacements for several production switches, so I'm doing as much of the config ahead of the swap as possible.

As such, they are not connected to the core network and that 10.0.0.1 firewall is not reachable.

 

I assume then, based on your asking that question, that the route will only be added if the target is reachable at that time?

 

Cheers

Eds

 

Correct, the next hop IP needs to be reachable before the route is installed in the IP routing table. 

 

Jon

Perfect thanks!

 

James