3.3 VLANs
vlan
Syntax Description
Default
Modes/Context
History
Role
Example
Related Commands
Note
vlan {<vlan-id> | <vlan-range>}
no vlan {<vlan-id> | <vlan-range>}
Creates a VLAN or range of VLANs, and enters a VLAN context.
The no form of the command deletes the VLAN or VLAN range.
vlan-id
vlan-range
VLAN 1 is enabled by default.
Config
3.1.1400
admin
switch (config) # vlan 10
switch (config vlan 10) # show vlan
VLAN
Name
----
-----------
1
default
10
switch (config vlan 10) #
show vlan
switchport mode
switchport [trunk | hybrid] allowed-vlan
Interfaces are not added automatically to VLAN unless configured with trunk or
hybrid mode with "all" option turned on.
1-4094.
Any range of VLANs.
Ports
--------------------------------------
Eth1/2, Eth1/3, Eth1/4/1, Eth1/4/2 ...
Mellanox Technologies
Rev 1.6.2
322