11-04-2010 09:47 AM - edited 03-04-2019 10:22 AM
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
Solved! Go to Solution.
11-04-2010 09:55 AM
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
11-04-2010 09:55 AM
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
11-04-2010 11:30 AM
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
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