1h Configure VLAN & assign interface


Create VLAN and Assign a Port to that VLAN

!!! Switch port 1 is a Part of Vlan 10 and Switch port 2 is a part of Vlan 20

Sw1(config)#vlan 10
Sw1(config)#name cisco
Sw1(config)#exit

Sw1(config)#vlan 20
Sw1(config)#name linux
Sw1(config)#exit

Sw1(config)#interface fastEthernet 0/1
Sw1(config-if)#switchport access vlan 10

Sw1(config)#interface fastEthernet 0/2
Sw1(config-if)#switchport access vlan 20

Sw1#show vlan brief
After assigning each port to a different Vlan. 10.0.0.1 and 10.0.0.2 won’t be able to ping each other.


Next  Lab 1g  Port Security