86
2.6.25 VLAN Command
1. Create a 802.1q VLAN, port-based VLAN and a management VLAN rule.
VLAN dot1q command
Parameter
Description
Switch(config)# vlan dot1q-vlan
[1-4094]
[1-4094]
Enter a VID number to create an
802.1q VLAN.
Switch(config-vlan-VID)# name
[vlan_name]
[vlan_name]
Specify a descriptive name for this
VLAN.
Switch(config)# vlan
management-vlan [1-4094]
management-port [port_list] mode
[trunk | access]
[1-4094]
Enter the management VLAN ID.
[port_list]
Specify the management port
number.
[trunk |
access]
Specify whether the management
port is in trunk or access mode.
“trunk” mode:
Set the selected
ports to tagged.
“access” mode:
Set the selected
ports to untagged.
Switch(config)# vlan port-based
[name]
[name]
Specify a name for this port-based
VLAN.
No command
Switch(config)# no vlan dot1q-
vlan [1-4094]
[1-4094]
Delete the specified VLAN.
Switch(config-vlan-VID)# no
name
Remove the descriptive name for
the specified VLAN.
Switch(config)# no vlan port-
based [name]
[name]
Delete the specified port-based
VLAN.
Show command
Switch(config)# show vlan
Display global VLAN information
including 802.1q VLAN
Enable/Disable status and CPU
VLAN ID.
Switch(config)# show vlan dot1q-
vlan
Show 802.1q VLAN table.
Switch(config-vlan-VID)# show
Show the selected VLAN
‟s
membership.
Switch(config)# show vlan port-
based
Show port-based VLAN table.
Switch(config)# show vlan
interface [port_list]
[port_list]
Show the selected ports
‟ VLAN
assignment and VLAN mode.
Exit command
Switch(config-vlan-VID)# exit
Return to Global configuration
Mode.
Dot1q & Port-based VLAN example
Switch(config)# vlan dot1q-vlan 100
Create a new dot1q VLAN 100.
Summary of Contents for FOS-3124 SERIES
Page 202: ...202 Restart DHCP service ...