
C613-50186-01 Rev B
Command Reference for AR2050V
458
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
B
RIDGING
C
OMMANDS
RULE
(MAC F
ILTER
)
rule (MAC Filter)
Syntax
This command adds a filter rule to a mac-filter. You can also add further rules to
rules that you have already specified.
Use the
no
variant of this command to remove a rule.
Syntax
rule <
rule-name
> {deny|permit} [dmac {
<MAC>
|any}] [smac
{
<MAC>
|any}] [proto {
<rule-name
>|any}] [{after|before} rule
<
rule-name
>]
no rule <
rule-name
>
Default
No rule
Mode
MAC Filter Mode
Examples
To add a rule called PC1 to a mac-filter-group called ATL-router1,use the following
commands:
awplus#
configure terminal
awplus(config)#
mac-filter ATL-router1
awplus(config-macfilter)#
rule PC1 permit dmac any smac
00c4.6d20.c0f4 proto any
To reset a mac-filter back to its default, use the following commands:
awplus#
configure terminal
awplus(config)#
mac-filter ATL-router1
awplus(config-macfilter)#
no rule PC1
Parameter
Description
<
rule-name
>
The name of the rule (maximum 16 characters).
deny
Drop the matched frame.
permit
Allow the matched frame.
dmac
Destination MAC address.
<MAC>
MAC address in HHHH.HHHH.HHHH format.
any
any MAC address.
smac
Source MAC address.
proto
Ethernet protocol type.
after
Insert a rule before an existing rule.
before
Insert a rule after an existing rule.
rule
MAC filter rule.