Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gateway of last resort from dhcp?

Status
Not open for further replies.

longneck

MIS
Aug 30, 2001
72
US
I am trying to use a 2514 as a broadband router. I have it almost working but...

...I currently have to add a static route and specify the next-hop on my ISP's netowrk at x.x.x.x:

ip route 0.0.0.0 0.0.0.0 x.x.x.x

Is it possible to have the router next-hop router automatically added? I looked at many of the configurations passed around here and on packetattack, and I always see this line:

ip route 0.0.0.0 0.0.0.0 Ethernet0

This doesn't work for me. Any suggestions? I don't want to staticly specify the address.
 
why doesn't "ip route 0.0.0.0 0.0.0.0 Ethernet0" work for you? Obviously you can change the E0 with the interface for your router..like fastethernet0..
 
my router doesn't have FastEthernet interfaces. the interface name is correct.
 
What version of IOS are you using? 2514s are getting a bit old, you might be using an IOS that didn't support the interface name (just the IP address) check cisco.com for the command history to see when the new syntax was introduced. I don't have time to do it for you, sorry.
 
Let me clarify: The command doesn't give me an error. It just doesn't seem to do anything. When I do sh ip route it says "gateway of last resort is 0.0.0.0" instead of the address provided via DHCP.

But now I'm thinking it's not necissarily a problem with the ip route command, but a problem with the DHCP client. If I look at the DHCP lease, it doesn't show a default gateway. Shouldn't I see the default gateway?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top