Enable ip routing on a Cisco switch

I know that one way is to use the command "ip routing"

But can you also enable ip routing by justing entering a static route?

ex: ip route 0.0.0.0 0.0.0.0 192.168.1.1

I ran across this on one of my switches.

I ran "show ip route" and i got back static and connected routes.

When I searched through the config I did not see "ip routing" or "router eigrp" or any "network" commands

Dragon0x40Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jjmartineziiiCommented:
Yes I believe you need the ip routing command

http://www.cisco.com/en/US/tech/tk389/tk815/technologies_configuration_example09186a008019e74e.shtml

It should be at the top of the config:


no aaa new-model
clock timezone CST -6
clock summer-time CDT recurring
system mtu routing 1500
ip subnet-zero
ip routing



I believe if you don't have the command there, you won't see anything in your routing table.
0
Dragon0x40Author Commented:
I do not have the "ip routing" line in my config

When I enter "show ip route" I get a table with 4 static routes and 4 connected routes.

It seems that entering a static route must enable ip routing without having to enter the "ip routing" command?
0
SouljaSr. Network EngineerCommented:
If you see a routing table than routing is enabled. Otherwise it would not show anything.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

SouljaSr. Network EngineerCommented:
In my experience, you could create dynamic route configurations and routing remain disabled. I am not sure about static routes, but maybe your observation is true.
0
rochey2009Commented:
Hi,

It depends what the default setting is for the device. For most routers and the Catalyst 6500, ip routing is the default setting and so ip routing doesn't appear in the configuration. However, for a 3750 layer 3 switch, ip routing is not enabled by default and you have to enter ip routing into the configuration.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SanjeevlokeCommented:
When I searched through the config I did not see "ip routing" or "router eigrp" or any "network" commands
?
what does above mean?

Unless u enable EIGRP and under it network command u wont c it.
for e.g
router eigrp 10(AS number)
network 10.0.0.0
no-summary

Unless u enable EIGRP with its L3 neigbour u wont c any EIGRP routes..
0
rochey2009Commented:
Which router or layer 3 switch are you using?
0
Dragon0x40Author Commented:
This is a 6500 so routing is enabled by default?
0
rochey2009Commented:
Yes it is.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Routers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.