?
Solved

ip default gateway command

Posted on 2004-08-15
4
Medium Priority
?
695 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 15

Accepted Solution

by:
scampgb earned 200 total points
ID: 11804739
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
ID: 11804760
thanks man
0
 
LVL 15

Expert Comment

by:scampgb
ID: 11805593
Hi Disolved.

Thanks for the "A" :-)
0
 

Expert Comment

by:tut404
ID: 15094903

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

New Server 172.16.200.2  was moved from behind Router R2 f0/1 to behind router R1 int f/01 and has now address 172.16.100.2. But we want users still to be able to connected to it by old IP. How to do it ? We can used destination NAT (DNAT).  In DNAT…
I have seen some questions on problems with SSH/telnet access to Cisco routers that may occur despite the fact that from a PC connected to your LAN, Internet connectivity is in place and users can access Internet sites without any issues.  There are…
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…
Suggested Courses

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