Is it possible to configure an ip route on a layer 2 switch?
workfrom925
Member Posts: 196
in CCNA & CCENT
I know layer 3 switch can function as a router. But do we ever, or is it possible to, set up a route or a default gateway on a level 2 switch? If yes, how is it done?
Comments
-
networker050184 Mod Posts: 11,962 ModThink about it this way, if you do not set up a default gateway on a L2 switch how would you be able to communicate with it from devices on another subnet?
For how to implement this look into the 'ip default-gateway' command.An expert is a man who has made all the mistakes which can be made. -
theodoxa Member Posts: 1,340 ■■■■□□□□□□I read somewhere that the 2960 Series has VERY LIMITED (Static Inter-VLAN Routing Only) Routing Functionality with the right IOS.
https://learningnetwork.cisco.com/thread/34739
Catalyst 2960 and 2960-S Software Configuration Guide, 12.2(55)SE - Configuring Static IP Unicast Routing [Cisco Catalyst 2960 Series Switches] - Cisco SystemsR&S: CCENT → CCNA → CCNP → CCIE [ ]
Security: CCNA [ ]
Virtualization: VCA-DCV [ ] -
xXErebuS Member Posts: 230
-
Serpente Member Posts: 15 ■□□□□□□□□□Speaking at a CCNA level, a regular switch (non-layer 3) operates on layer 2 so you can't set up IP routes because it doesn't generally accept IP commands. There are a few exceptions, however. A switch needs a default gateway - (config)#ip default-gateway - in order to communicate with a router and connect to other networks. Also, you can assign an IP address to your management VLAN so that you can telnet/SSH to a switch since Telnet/SSH operate via an IP address.