Solved

ip default gateway command

Posted on 2004-08-15
4
685 Views
Last Modified: 2010-04-17
When would you use the "ip default-gateway" command in a cisco router?  

Do you only use the "ip default-gateway" command it when ip routing is disabled?

Which is better. Having IP routing enabled or defining a default gateway?

How does this differ from gateway of last resort?

Thanks
0
Comment
Question by:dissolved
  • 2
4 Comments
 
LVL 15

Accepted Solution

by:
scampgb earned 50 total points
Comment Utility
Hi dissolved,

The "ip default-gateway" command is used to specify the gateway of last resort.
It's the equivalent of specifying a route to 0.0.0.0

As for the difference between default-gateway and turning off IP routing, they aren't related.

If you turn off IP routing, it does exactly that - and essentially defeats the point of having a router :-)

Does that help?
0
 

Author Comment

by:dissolved
Comment Utility
thanks man
0
 
LVL 15

Expert Comment

by:scampgb
Comment Utility
Hi Disolved.

Thanks for the "A" :-)
0
 

Expert Comment

by:tut404
Comment Utility

I had a cisco soho router, which NAT with my Office internal LAN behind.

on this router, i had placed a command
ip 0.0.0.0 0.0.0.0  <isp_wan_ip>

this will also internet traffic to comes into and go out via my router.

I just order a new sets of 14 LAN ip address, which I will need to conffig  for my LAN


Internet
 |
 |
ATM0 :  210.210.100.82 / 30
cisco router
Ethernet0 : 64.64.100.145 / 28
 |
 |
interface : 64.64.100.146 / 28
Firewall
interface : 192.168.20.1 / 24


The firewall of course will do an NAT for 192.168.20.1 .

But what sort of  ip route i need to put in my cisco router?
or do i need need to use ip default-gateway  command ?
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Suggested Solutions

There are two basic ways to configure a static route for Cisco IOS devices. I've written this article to highlight a case study comparing the configuration of a static route using the next-hop IP and the configuration of a static route using an outg…
Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now