Edge Switches

Unanswered Question
Oct 30th, 2008

For devices not being used as a router such as closet switches which is better to use? no ip routing and then set a ip default-gateway or use ip routing and set ip route 0.0.0 for it's mgnt traffic and etc.

Either works this is just a preference/design thing.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (2 ratings)
glen.grant Thu, 10/30/2008 - 12:44

You will probably get a dozen different answers , we no ip route and use a default gateway if its just going to do access layer duty.

mattcalderon Thu, 10/30/2008 - 12:54

I figured there would be many people who say one way is better than the other and vice-versa, but I was wondering if there was a Cisco best practice. A co-worker and I were just discussing this topic and we both see differently on it and were wondering what this group of experts would say.

My preferred method is to use default gateway as well when not doing any L3 routing. I dont see the use of having a routing table if you know you are not going to use it.

Thanks for the reply!

Jon Marshall Thu, 10/30/2008 - 16:26


I agree with Glen on this. If your switch is going to be L2 only then i would make sure ip routing is disabled and use the default-gateway command. For one thing this makes it very clear what the switch is doing from a L2/L3 perspective.

One thing though - try turning off routing on a 6500 with a Sup720 - it can be somewhat difficult :)


mattcalderon Fri, 10/31/2008 - 06:56

Thanks again for your answer. I happen to agree with you gentlemen I just wish I had a Cisco doc to refer to.

I have never attempted to no ip route on a SUP720. I guess we always assume if its that big monster of a switch it will be doing routing of some kind.



This Discussion