xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
409
DGS-3450:admin# clear mac_based_access_control auth_state mac_addr 00-00-00-47-04-65
Command: clear mac_based_access_control auth_state mac_addr 00-00-00-47-04-65
Success.
DGS-3450:admin#
create mac_based_access_control_local
Purpose
Used to create a MAC-based Access Control local database entry that will be used for
authentication. This command can also specify the VLAN that an authorized host will be
assigned to.
Syntax
create mac_based_access_control_local mac <macaddr> {[vlan <vlan_name 32> |
vlanid < vlanid 1-4094>]}
Description
This command is used to create a database entry. The user also has the option of specifying
a target VLAN for this entry.
Parameters
mac
- Specify the MAC address that can pass local authentication.
vlan
- Specify the target VLAN by using the VLAN name. When this host is authorized, it will
be assigned to this VLAN.
vlanid
- Specify the target VLAN by using the VID. When this host is authorized, it will be
assigned to this VLAN if the target VLAN exists.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To create one MAC-based Access Control local database entry for MAC address 00-00-00-00-00-01 and specify that the
host will be assigned to the “default” VLAN after the host has been authorized:
DGS-3450:admin# create mac_based_access_control_local mac 00-00-00-00-00-01 vlan default
Command: create mac_based_access_control_local mac 00-00-00-00-00-01 vlan default
Success.
DGS-3450:admin#
config mac_based_access_control_local
Purpose
Used to configure a MAC-based Access Control local database entry.
Syntax
config mac_based_access_control_local mac <macaddr> [vlan <vlan_name 32> |
vlanid < vlanid 1-4094> | clear_vlan]
Description
This command is used to configure a MAC-based Access Control local database entry.
Parameters
mac
- Specify the authenticated host’s MAC address.
vlan
- Specify the target VLAN by VLAN name. When this host is authorized, the host will be
assigned to this VLAN.
vlanid
- Specify the target VLAN by VID. When this host is authorized, the host will be
assigned to this VLAN if the target VLAN exists.
clear_vlan
- Clear target VLAN information for specific hosts from the local database.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure the target VLAN “default” for the MAC-based Access Control local database entry 00-00-00-00-00-01: