Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 701
  • Last Modified:

ip default gateway command

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
dissolved
Asked:
dissolved
  • 2
1 Solution
 
scampgbCommented:
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
 
dissolvedAuthor Commented:
thanks man
0
 
scampgbCommented:
Hi Disolved.

Thanks for the "A" :-)
0
 
tut404Commented:

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now