Specifications

5-10 VLAN Commands
set security l2-restrict
RestrictsLayer2forwardingbetween clientsinthesameVLAN.WhenyourestrictLayer2
forwardinginaVLAN,MSSallowsLayer2forwardingonlybetweenaclientandasetofMAC
addresses,generallytheVLAN’sdefaultrouters.ClientswithintheVLANarenotpermittedto
communicateamongthemselvesdirectly.
Tocommunicatewithanotherclient,theclientmustuse
oneofthespecifieddefaultrouters.
Syntax
setsecurityl2restrictvlanvlanid[mode{enable|disable}][permit-macmacaddr[macaddr]]
Parameters
Defaults
Layer2restrictionisdisabledbydefault.
Mode
Enabled.
Usage
Youcanspecifymultipleaddressesbylistingthemonthesamecommandlineorbyentering
multiplecommands.TochangeaMACaddress,usetheclearsecurityl2restrictcommandto
removeit,thenusethesetsecurityl2restrictcommandtoaddthecorrectaddress.
Restrictionofclienttrafficdoes
notbeginuntilyouenablethepermittedMAClist.Usethemode
enableoptionwiththiscommand.
Example
ThefollowingcommandrestrictsLayer2forwardingofclientdatainVLANabc_airtothedefault
routerswithMACaddressaa:bb:cc:dd:ee:ffand11:22:33:44:55:66:
RBT-8100# set security l2-restrict vlan abc_air mode enable permit-mac
aa:bb:cc:dd:ee:ff 11:22:33:44:55:66
success: change accepted.
vlanid VLANnameornumber.
mode
{enable|disable}
EnablesordisablesrestrictionofLayer2forwarding.
permit-macmacaddr
[macaddr]
MACaddressestowhichclientsareallowedtoforwarddataatLayer
2.Youcanspecifyuptofouraddresses.