cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
789
Views
0
Helpful
2
Replies

ip default-gateway

kbullard00
Level 1
Level 1

Confused about static routing.

Tried to configure a static route on a 2620 router but is indicates there is no such command.

i used ip default-gateway.

I thought that is supposed to be used, or can be used, when ip routing is not enabled.

when is this used

thanks in advance

1 Accepted Solution

Accepted Solutions

Bert Gevers
Cisco Employee
Cisco Employee

Hi,

a very good explanation of the different ways to configure default routes/gateways can be found here:

http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a0080094374.shtml

Basically, ip default-gateway should only be used when 'no ip routing' is configured on the router.

As per the command reference:

http://www.cisco.com/en/US/docs/ios/12_3/ipaddr/command/reference/ip1_i1g.html#wp1080489

This command was introduced ages ago in 10.0.

HTH,

Bert

View solution in original post

2 Replies 2

Bert Gevers
Cisco Employee
Cisco Employee

Hi,

a very good explanation of the different ways to configure default routes/gateways can be found here:

http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a0080094374.shtml

Basically, ip default-gateway should only be used when 'no ip routing' is configured on the router.

As per the command reference:

http://www.cisco.com/en/US/docs/ios/12_3/ipaddr/command/reference/ip1_i1g.html#wp1080489

This command was introduced ages ago in 10.0.

HTH,

Bert

The original post seems to indicate that the ip default-gateway command was not present in his version of IOS. And that surprises me. Can we verify that this is actually the case?

I would offer a slightly different perspective about using ip default-gateway command. It is true that the command is intended for circumstances where the router is acting as an IP host - and not as a router. The most common circumstance where the router acts as an IP host is if the router config specifies no ip routing. But there are also some other circumstances where the router may act as an IP host. Booting into rommon is one circumstance that comes to mind. So I look at configuring ip default-gateway as a form of insurance. I do not expect to need it very much. But if I get into one of those circumstances I might be very glad that it was configured.

HTH

Rick

HTH

Rick