xStack
®
DGS-3120 Series Managed Switch CLI Reference Guide
462
Chapter 45
MAC-based VLAN Command
List
create mac_based_vlan mac_address
<macaddr> [vlan <vlan_name 32> | vlanid <vlanid 1-
4094>] {priority <value 0-7>}
delete mac_based_vlan
{mac_address <macaddr> [vlan <vlan_name 32> | vlanid <vlanid 1-
4094>]}
show mac_based_vlan
{mac_address <macaddr> | [vlan <vlan_name 32> | vlanid <vlanid 1-
4094>]}
45-1
create mac_based_vlan mac_address
Description
This command is used to create a static MAC-based VLAN entry.
This command only needs to be supported by the model which supports MAC-based VLAN.
There is a global limitation of the maximum entries supported for the static MAC-based entry.
Format
create mac_based_vlan mac_address <macaddr> [vlan <vlan_name 32> | vlanid <vlanid 1-
4094>]
Parameters
mac_address
- Specify the MAC address used.
<macaddr>
- Enter the MAC address here.
vlan
- The VLAN to be associated with the MAC address.
<vlan_name 32>
- Enter the VLAN name here. This name can be up to 32 characters long.
vlanid
- Specify the VLAN by VLAN ID.
<vlanid 1-4094>
- Enter the VLAN ID here. This value must be between 1 and 4094.
priority
- Specify the priority that is assigned to untagged packets. If not specified, the priority is
the default value 0.
<value 0-7>
- Enter the value between 0 and 7.
Restrictions
Only Administrator, Operator and Power-User level users can issue this command.
Example
To create a static MAC-based VLAN entry: