Page 46
To display the VLAN configuration of the switch, use the
switchport -s
command..
> switchport -s
Port F1 is an access port type, associated with VLAN ID 1
Port F2 is an access port type, associated with VLAN ID 1
Port 1 is an access port type, associated with VLAN ID 1
Port 2 is an access port type, associated with VLAN ID 1
Port 3 is an access port type, associated with VLAN ID 1
Port 4 is an access port type, associated with VLAN ID 1
Port 5 is an access port type, associated with VLAN ID 1
Port 6 is an access port type, associated with VLAN ID 1
Port 7 is an access port type, associated with VLAN ID 1
Port 8 is an access port type, associated with VLAN ID 1
Mgt1 is an access port type associated with VLAN ID 1
>
To configure an access port with a VLAN ID, use the following command.
> switchport -p 1 -vid 100
> switchport -s -p 1
Port 1 is an access port type, associated with VLAN ID 100
>
NOTE: VLANs must be added using the
vlan
command before they can be associated with a port.
To configure Fiber Port 1 as a trunk port, use the following command.
> switchport -p f1 -mode trunk
> switchport -p f1 -add 100
>switchport -s -p f1
Port F1 is a trunk port type, native VLAN ID 1
included VLANs: 1..4095
>