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

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

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.

Yes I believe you need the ip routing command


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.
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?
SouljaSr. Network EngineerCommented:
If you see a routing table than routing is enabled. Otherwise it would not show anything.
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.

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.

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
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)

Unless u enable EIGRP with its L3 neigbour u wont c any EIGRP routes..
Which router or layer 3 switch are you using?
Dragon0x40Author Commented:
This is a 6500 so routing is enabled by default?
Yes it is.
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

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.