05-06-2010 11:48 AM - edited 03-06-2019 10:58 AM
05-06-2010 11:59 AM
Hello Neo,
we use ip default-gateway when ip routing is disabled to provide a default gateway to a device like a L2 LAN switch
we use ip route 0.0.0.0 0.0.0.0 Gw-ipaddress when ip routing is enabled
if ip routing is enabled ip default-gateway command is ignored
if ip routing is disabled ip route 0.0.0.0 0.0.0.0 is not effective
Hope to help
Giuseppe
05-06-2010 11:59 AM
Hello Neo,
we use ip default-gateway when ip routing is disabled to provide a default gateway to a device like a L2 LAN switch
we use ip route 0.0.0.0 0.0.0.0 Gw-ipaddress when ip routing is enabled
if ip routing is enabled ip default-gateway command is ignored
if ip routing is disabled ip route 0.0.0.0 0.0.0.0 is not effective
Hope to help
Giuseppe
05-06-2010 12:22 PM
default-gateway for layer2
default route for layer3
05-06-2010 12:43 PM
ya
05-06-2010 12:48 PM
default-gateway ........... is the port of exit from your subnet (exit of a broadcast domain) to another subnet, WAN, etc. It is usually the interface in the router to wich your network is connected. You define it as the IP address of the router connected to your subnet.
default route ...... If the packet doesn't match any subnet in the routing table and you have defined a default-route, the packet will take the default-route and the packet will be delivered to the next-hop defined in the default-route.
05-06-2010 10:31 PM
please help
regards
Neo
Hi Neo,
All have given the exact answers for the difference let me also try to explain the same with my version
Default route is used as the gateway of last resort meaning if there is no more specific route the default route is used.
Default Gateway is used on a non routing device, meaning if the destination is off the local subnet use the default gateway.If you config default gateway on a router you must do "no ip routing" first.
Hope to Help !!
Ganesh.H
Remember to rate the helpful post
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide