L2 Switch Management IP

Layer 2 switches don't perform packet routing and don't build a routing table. They aren't IP routing aware.

However, you can assign an IP address to an SVI to allow remote connections to the CLI of the switch (using Telnet or SSH).

Configure the IP address on the SVI in the same way as on a multilayer switch.

  1. SW1(config)# interface vlan1

  2. SW1(config-if)# ip address 192.168.1.253 255.255.255.0

  3. SW1(config-if)# no shutdown

Configure the switch's default gateway. In this case, PC2 isn't in the same LAN as SW1. If SW1 doesn't have a default gateway, it can't communicate with PC2.

  1. SW1(config)# ip default-gateway 192.168.1.254

Last updated