- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2021 10:13 AM
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
Solved! Go to Solution.
- Labels:
-
Catalyst 9000
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2021 10:42 AM
Correct, the next hop IP needs to be reachable before the route is installed in the IP routing table.
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2021 10:33 AM
Can you ping 10.0.0.1 ?
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2021 10:37 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2021 10:42 AM
Correct, the next hop IP needs to be reachable before the route is installed in the IP routing table.
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2021 11:03 AM
Perfect thanks!
James
