cisco Switch question

Posted on 2012-03-28
Medium Priority
Last Modified: 2012-06-21
when i do ip routing on my switch

ip route to GW it doesnt work
when i do ip deafult gateway...it works and i can ping the GW

thoughts ?
Question by:c_hockland
LVL 10

Assisted Solution

Serg earned 500 total points
ID: 37779839
The "ip default-gateway" command is used to specify the default gateway when routing is not enabled. If routing is enabled ((config)#ip routing), the ip default-gateway command is unnecessary.
LVL 15

Assisted Solution

by:Nayyar HH (CCIE RS)
Nayyar HH (CCIE RS) earned 500 total points
ID: 37780734
On a switch not capable of routing such as 2960, 2950 etc the "ip default-gateway" is required if you need to remotely manage the switch. On these type of switches the "ip routing" command has no bearing ( unsupported)
LVL 22

Assisted Solution

eeRoot earned 500 total points
ID: 37794146
A layer 3 switch will use the "ip route" command while a layer 2 switch will need the "ip default gateway"
LVL 10

Accepted Solution

ampranti earned 500 total points
ID: 37805031
You have a layer 2 switch; you should use "ip deafult gateway X.X.X.X"

Which cisco switch you have ?

Featured Post

Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

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.

Join & Write a Comment

Lithium-ion batteries area cornerstone of today's portable electronic devices, and even though they are relied upon heavily, their chemistry and origin are not of common knowledge. This article is about a device on which every smartphone, laptop, an…
In this article, the configuration steps in Zabbix to monitor devices via SNMP will be discussed with some real examples on Cisco Router/Switch, Catalyst Switch, NAS Synology device.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

588 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question