Command Line Interface
7231553-KDU 137 365 Uen D 2006-06-16
Example
The following command creates a VLAN access-map called vlanMAP1, sets the
match criteria for an IP ACL called ipACL1 and a MAC ACL called macACL1,
sets the action for forward matching packets, and then binds the VLAN ACL to
VLANs 2 and 3.
Related Commands
vlan access-map (section 7.8.18 on page 720)
action (section 7.8.20 on page 723)
show vlan access map (section 7.8.21 on page 725)
vlan filter (section 7.8.25 on page 731)
7.8.20 action
This command sets the action for a VLAN access map entry to forward or drop
matching packets for a VLAN access map entry. Use the no form to restore the
default setting.
Syntax
action {drop | forward}
• drop – Drops the packet when the specified conditions are
matched.
• forward – Forwards the packet when the specified conditions are
matched.
Default Setting
Forward matching packets
Console(config)#vlan access-map vlanMAP1
Console(config-access-map)#match ip address ipACL1
Console(config-access-map)#match mac address macACL1
Console(config-access-map)#action forward
Console(config-access-map)#exit
Console(config)#vlan filter vlanMAP1 vlan-lists 2-3
Console(config)#