User Manual

Table Of Contents
If this command is executed with the "no" syntax, the specified access list is deleted from the corresponding VLAN access map.
[Note]
Only one access list can be specified for one VLAN access map.
You can use the show vlan access-map command to view the setting.
[Example]
Create a VLAN access map named "VAM001", and specify an access list that denies packets from 192.168.0.1.
SWP2(config)#access-list 2 deny any 192.168.0.1/32 any
SWP2(config)#vlan access-map VAM001
SWP2(config-vlan-access-map)#match access-list 2
9.1.15 Set VLAN access map filter
[Syntax]
vlan filter access-map-name vlan-id [direction]
no vlan filter access-map-name vlan-id [direction]
[Parameter]
access-map-name : Single-byte alphanumeric characters and single-byte symbols(256 characters or less)
Access map name specified by the vlan access-map command
vlan-id : <1-4094>
VLAN ID set to the "enable" status by the vlan command
direction : Specifies the direction of applicable frames. Applied to incoming frames when omitted
Setting value Description
in Apply to received frames
out Apply to transmitted frames
[Initial value]
none
[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.
Only one VLAN access map for each direction can be registered for incoming frames (in) and for outgoing frames (out) on the
same interface.
Note that VLAN access maps for which the following access list is set cannot be applied to outgoing frames (out).
MAC access list
As a restriction, an IPv4 access list for which the port number range (range X Y) is specified cannot be applied to
transmitted frames (out).
[Example]
Creates a VLAN access map named VAM001, specifies an access list that denies packets beginning from 192.168.0.1, and then
applies VAM001 to incoming frames of VLAN #1000.
SWP2(config)#vlan database
SWP2(config-vlan)#vlan 1000
SWP2(config-vlan)#exit
SWP2(config)#access-list 2 deny any 192.168.0.1/32 any
SWP2(config)#vlan access-map VAM001
SWP2(config-vlan-access-map)#match access-list 2
SWP2(config-vlan-access-map)#exit
SWP2(config)#vlan filter VAM001 1000 in
Command Reference | Traffic control | 255