set arpinspection filter
17-24 DHCP Snooping and Dynamic ARP Inspection
set arpinspection filter
UsethiscommandtocreateanARPACLandthentoassignanACLtoaVLAN,optionallyasa
staticmapping.
Syntax
set arpinspection filter name {permit ip host sender-ipaddr mac host
sender-macaddr | vlan vlan-range [static]}
Parameters
Defaults
None.
Mode
Switchcommand,read‐write.
Usage
ARPACLsareusedtodefinestaticmappingsforDAI.ARPACLsarecompletelyindependentof
ACLsusedforQoS.Amaximumof100ARPACLscanbeconfigured.WithinanACL,a
maximumof20rulescanbeconfigured.
AstaticmappingassociatesanIPaddresstoaMACaddress
onaVLAN.DAIconsultsitsstatic
mappingsbeforeitconsultstheDHCP snoopingbindingsdatabase—thus,staticmappingshave
precedenceoverDHCPsnoopingbindings.
Example
ThisexamplecreatesanACLnamedstaticARPand createsapermitruleforIPaddress
192.168.1.10.Then,theACLisassignedtoaVLANasastaticmapping.
B5(su)->set arpinspection filter staticARP permit ip host 192.168.1.10 mac host
00:01:22:33:44:55
B5(su)->set arpinspection filter staticARP vlan 10 static
show arpinspection access-list
UsethiscommandtodisplayARPaccesslistconfigurationinformation.
Syntax
show arpinspection access-list [acl-name]
name SpecifiesthenameoftheARPACL.
permit Specifiesthatapermitruleisbeingcreated.
iphostsender‐ipaddr SpecifiestheIPaddressintherulebeingcreated.
machost
sender‐macaddr
SpecifiestheMACaddressintherulebeingcreated.
vlanvlan‐range SpecifiestheVLANorVLANstowhichthisARP
ACLisassigned.
static (Optional)SpecifiesthatthisARPACLconfiguresstaticmappingsfor
theVLANorVLANs.