What are the commands to set a Gateway of Last Resort on our Cisco 2811 router? We are not sure how this is accomplished. Thank you. We want to set the gateway of last resort to 167.154.191.1. Thanks.
The gateway of last resort is simply the most preferred default route known by the router. The easiest way to define a gateway of last resort is to configure a static route:
ip route 0.0.0.0 0.0.0.0 a.b.c.d
where a.b.c.d is the IP address of your gateway of last resort.
We have that ip route set exactly the way you say, but when we issue the show ip route command, it still says that the gateway of last resort is not set. What are we missing? Thanks.
Can you post the static route exactly as you have it configured? What other routing config is on the router that might be relevant? Are you running a routing protocol? Can you ping the address configured in your static route?
same A.B.C.D
where is in
ip route 0.0.0.0 0.0.0.0 A.B.C.D
but this is the same.
and A.B.C.D is the IP address of second side Your WAN Interface
IP 167.154.191.1 is logical
if your WAN (eg. Serial0) in Cisco have IP 167.154.191.2
and mask 255.255.255.252
And You must try by ping 167.154.191.1
Can You go from this router outside???
That is incorrect. The command "ip default-gateway" is only relevant if you have disabled IP routing and the router is acting as a host on a bridged LAN. That is certainly not the case here.
Hey all, thanks for your replies but we figured out why it wasn't showing up when we did a show run command. We were configuring this router before connecting to any other interfaces that were up. A gateway of last resort apparently will not show up until it has active connections. Thanks for all your replies.
You're almost right. For any route to be valid, the next hop must be reachable. It sounds like you had a static route configured but the next hop wasn't reachable because you didn't have any links up. Having a static route pointing to a link that isn't available is like giving someone directions and telling them to take a road that doesn't exist. ;-)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.