17.
Virtual LANs (VLANs)
MN700004 Rev 01
208
device-name
(config)#
vlan
device-name
(config vlan)#
no management 1,3-4094
device-name
(config vlan)#
create manage 2
device-name
(config vlan)#
config manage
device-name
(config-vlan manage)#
add ports 1/1/2 untagged
device-name
(config-vlan manage)#
add ports default 1/1/2
device-name
(config-vlan manage)#
exit
device-name
(config vlan)#
create v100 100
device-name
(config vlan)#
config v100
device-name
(config-vlan v100)#
add ports 1/1/3 untagged
device-name
(config-vlan v100)#
add ports default 1/1/3
device-name
(config-vlan v100)#
add ports 1/1/10 tagged
device-name
(config-vlan v100)#
exit
device-name
(config vlan)#
create v101 101
device-name
(config vlan)#
config v101
device-name
(config-vlan v101)#
add ports 1/1/11 untagged
device-name
(config-vlan v101)#
add ports default 1/1/11
device-name
(config-vlan v101)#
add ports 1/1/12 tagged
device-name
(config-vlan v101)#
exit
device-name
(config vlan)#
create v102 102
device-name
(config vlan)#
config v102
device-name
(config-vlan v102)#
add ports 1/1/4 untagged
device-name
(config-vlan v102)#
add ports default 1/1/4
device-name
(config-vlan v102)#
add ports 1/1/13 tagged
device-name
(config-vlan v102)#
exit
device-name
(config vlan)#
config default
device-name
(config-vlan default)#
remove ports 1/1/2-1/1/4,1/1/13
device-name
(config-vlan default)#
exit
show vlan management
The
show vlan management
command, in Privileged (Enable) mode, displays which VLANs
provide management access.
Command Syntax
device-name
#
show vlan management
Example
The following example shows that by default, management is accessible on all VLANs. After
we apply the
no management
command to block access on a specified list of VLANs, the
response to the
show vlan management
command indicates that management is accessible
only on VLANs in the complementary list.
device-name
#
show vlan management
Management VLANs: 1-4094
device-name
(config)#
vlan
device-name
(config vlan)#
no management 1,5-7,21-4093
...
device-name
#
show vlan management
Management VLANs: 2-4,8-20,4094
device-name
#