Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Default Gateways on Cisco Switches

Avatar of COE-IT
COE-ITFlag for United States of America asked on
RoutersSwitches / Hubs
8 Comments1 Solution1014 ViewsLast Modified:
I have a Cisco 3500 switch connected to a Cisco 2600 router. Initially, the switch did not have a default gateway set but the switch could still ping the 2600 router. Then, as a test, we set a wrong default gateway on the switch (ip default-gateway x.x.x.x) to see if the switch could still ping the router - and it could. No matter what default gateway address we put in the switch, we could still ping the router and beyond the router to any device on our network.

I believe that the switch can ping the router (despite the wrong default gateway settings) because they are directly connected and are communicating via Layer 2.

Am I correct?

Also, what is the purpose of the "default-gateway" command if the switch can still see the default gateway (router) regardless of what default gateway IP address you give it?
ASKER CERTIFIED SOLUTION
Avatar of rrb31337
rrb31337

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 8 Comments.
See Answers