xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
339
44
MAC-BASED VLAN COMMANDS
The MAC-based VLAN commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the
following table.
Command Parameters
create mac_based_vlan
mac_address
<macaddr> vlan <vlan_name 32>
delete mac_based_vlan {mac_address <macaddr> vlan <vlan_name 32>}
show mac_based_vlan {mac_address <macaddr> | vlan <vlan_name 32>}
Each command is listed, in detail, in the following sections.
create mac_based_vlan
Purpose Used to create a static MAC–based VLAN entry.
Syntax
create mac_based_vlan mac_address <macaddr> vlan <vlan_name 32>
Description This command is used to create a static MAC-based VLAN entry.There is a global
limitation of the maximum entries supported for the static MAC-based entry.
Parameters mac_address – The MAC addess to be created.
vlan – The VLAN to be associated with the MAC address.
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To create a static MAC–based VLAN entry .
DGS–3426:5#create mac_based_vlan mac_address 00–00–00–00–00–01 vlan default
Command: create mac_based_vlan mac_address 00–00–00–00–00–01 vlan default
Success.
DGS–3426:5#
delete mac_based_vlan
Purpose Used to delete the static MAC–based VLAN entry.
Syntax
delete mac_based_vlan {mac_address <macaddr> vlan <vlan_name 32>}
Description This command is used to delete a database entry. If the MAC address and VLAN are not
specified, all static MAC-based VLAN entries will be removed.
Parameters mac_address – The MAC address to be deleted.
vlan – The VLAN to be associated with the MAC address.
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To delete a static MAC–based VLAN entry.