Specifications
5-10 VLAN Commands
set security l2-restrict
RestrictsLayer2forwardingbetween clientsinthesameVLAN.WhenyourestrictLayer2
forwardinginaVLAN,MSSallowsLayer2forwardingonlybetweenaclientandasetofMAC
addresses,generallytheVLAN’sdefaultrouters.ClientswithintheVLANarenotpermittedto
communicateamongthemselvesdirectly.
Tocommunicatewithanotherclient,theclientmustuse
oneofthespecifieddefaultrouters.
Syntax
setsecurityl2‐restrictvlanvlan‐id[mode{enable|disable}][permit-macmac‐addr[mac‐addr]]
Parameters
Defaults
Layer2restrictionisdisabledbydefault.
Mode
Enabled.
Usage
Youcanspecifymultipleaddressesbylistingthemonthesamecommandlineorbyentering
multiplecommands.TochangeaMACaddress,usetheclearsecurityl2‐restrictcommandto
removeit,thenusethesetsecurityl2‐restrictcommandtoaddthecorrectaddress.
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.
vlan‐id VLANnameornumber.
mode
{enable|disable}
EnablesordisablesrestrictionofLayer2forwarding.
permit-macmac‐addr
[mac‐addr]
MACaddressestowhichclientsareallowedtoforwarddataatLayer
2.Youcanspecifyuptofouraddresses.