[Input mode]
global configuration mode
[Description]
Sets the VLAN access map filter for the specified VLAN.
If this command is executed with the "no" syntax, the VLAN access map filter for the specified VLAN is deleted.
[Note]
It is not possible to specify this command for a VLAN ID that is set to the "disable" state.
[Example]
Create a VLAN access map named "VAM001", specify an access list that denies packets from 192.168.0.1, and then specify
VAM001 for VLAN #1000.
SWR2311P(config)#vlan database
SWR2311P(config-vlan)#vlan 1000
SWR2311P(config-vlan)#exit
SWR2311P(config)#access-list 2 deny any 192.168.0.1/32 any
SWR2311P(config)#vlan access-map VAM001
SWR2311P(config-vlan-access-map)#match access-list 2
SWR2311P(config-vlan-access-map)#exit
SWR2311P(config)#vlan filter VAM001 1000
9.1.16 Show VLAN access map
[Syntax]
show
vlan
access-map
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Shows the registered VLAN access map.
The following items are shown.
• Name of the VLAN access map
• Access list applied to VLAN access map
[Example]
Show VLAN access map information.
SWR2311P>show vlan access-map
Vlan access-map VAM001
match ipv4 access-list 2
9.1.17 Show VLAN access map filter
[Syntax]
show
vlan
filter
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Show VLAN access map filter application information.
The following items are shown.
• Name of the VLAN access map
• VLAN ID applied to VLAN access map
[Example]
Show VLAN access map filter information.
SWR2311P>show vlan filter
Vlan Filter VAM001 is applied to vlan 1000
9.2 QoS (Quality of Service)
226
| Command Reference | Traffic control