Setting Vlan IP Address

For enabling telnet, switch needs to have an IP address. Instead of physical Ethernet ports, IP address is set on interface called VLAN1.

Switch>enable

Switch#configure terminal

Switch(config)#interface Vlan1

Switch(config-if)#ip address 1.1.1.2 255.0.0.0

Switch(config-if)#no shutdown

After this configuration, PC0 with IP address 1.1.1.3/8 will be able to PING switch 1.1.1.2.


Last modified: Friday, 18 December 2020, 10:41 AM