xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
361
config mac_based_access_control_local mac
Purpose
Used to configure the local database entry.
Syntax
config mac_based_access_control_local mac <macaddr> [vlan <vlan_name 32>|
vlanid <vlanid 1–4094>]
Description This
command
is
used to modify a database entry.
Parameters
mac
– The MAC address that access accept by local mode
vlan
– If the MAC address is authorized, the port will be assigned to this VLAN.
vlanid
– If the MAC address is authorized, the port will be assigned to this VLAN.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure a local database entry:
D G S – 3 4 2 6 : 5 # c o n f i g m a c _ b a s e d _ a c c e s s _ c o n t r o l _ l o c a l m a c 0 0 – 0 0 – 0 0 – 0 0 – 0 0 – 0 1 v l a n
d e f a u l t
C o m m a n d : c o n f i g m a c _ b a s e d _ a c c e s s _ c o n t r o l _ l o c a l m a c 0 0 – 0 0 – 0 0 – 0 0 – 0 0 – 0 1 v l a n
d e f a u l t
S u c c e s s .
D G S – 3 4 2 6 : 5 #
delete mac_based_access_control_local
Purpose
Used to delete the local database entry.
Syntax
delete mac_based_access_control_local [mac <macaddr> | [vlan <vlan_name
32>|vlanid <vlanid 1–4094>]]
Description
This command is used to delete a database entry.
Parameters
mac
– Deletes the database by this MAC address.
vlan
– Deletes the database by this VLAN name.
vlanid
– Deletes the database by this VLAN ID.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete the local database entry by MAC address:
D G S – 3 4 2 6 : 5 # d e l e t e m a c _ b a s e d _ a c c e s s _ c o n t r o l _ l o c a l m a c 0 0 – 0 0 – 0 0 – 0 0 – 0 0 – 0 1
C o m m a n d : d e l e t e m a c _ b a s e d _ a c c e s s _ c o n t r o l _ l o c a l m a c 0 0 – 0 0 – 0 0 – 0 0 – 0 0 – 0 1
S u c c e s s .
D G S – 3 4 2 6 : 5 #
To delete the local database entry by VLAN name:
D G S – 3 4 2 6 : 5 # d e l e t e m a c _ b a s e d _ a c c e s s _ c o n t r o l _ l o c a l v l a n d e f a u l t
C o m m a n d : d e l e t e m a c _ b a s e d _ a c c e s s _ c o n t r o l _ l o c a l v l a n d e f a u l t
S u c c e s s .
D G S – 3 4 2 6 : 5 #