default-gateway on a switch

Unanswered Question
Jul 21st, 2008

why we configure default-gateway on a switch ? Can someone give an example ? As i know switches makes forwarding decisions based on layer 2 ( i mean layer 2 switches).

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Mark Yeates Mon, 07/21/2008 - 15:57

The "ip default-gateway" command is used to enter your router's default gateway, just as you would do on your normal Windows machine. This is used for the management of the switch so that it can be reached from outside networks. This is mainly used on layer 2 switches, and layer 3 switches that are not doing any routing.


soztekin326758 Mon, 07/21/2008 - 16:04

so if switch has management interface and i want to telnet it from,they are at different networks,do i have to use default-gateway command?

Mark Yeates Mon, 07/21/2008 - 16:11

Yes you will need a gateway to route between the networks. You will need a router or a layer 3 switch to do this function.

Mark Yeates Mon, 07/21/2008 - 16:24

You are most welcome! Best of luck on the implementation of your switch.



This Discussion