Configuring VLAN

To create a VLAN:
Switch# conf t
Switch(config)# vlan 50
Switch(config-vlan)# name sysnet
Switch(config-vlan)# exit 
Assigning to an interface:
Switch(config)# int fa 1/3
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 50
Switch(config-if)# no shut
To delete a VLAN:
 Switch(config)# no vlan 50
VLAN Verification

To determine the trunking status of an interface:
 # show int fa 1/24 trunk OR # show trunk.
For more detailed switchport information:
# show int fa 1/24 switchport
To determine the physical status of a link:
# show int fa 1/24 status
To see a list of VLANs and their assigned interfaces:
# show vlan brief
To check if an interface is assigned to a specific VLAN:
# show vlan id 100
This command is especially helpful as it displays all ports belonging to the VLAN as well as the MTU of each assigned port and type.To see a complete detailed interface list for all VLANs:
# show vlan

2 comments: