D-Link dgs-3420 Work Light User Manual


 
xStack® DGS-3420 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide
790
Chapter 83
Static MAC-based
VLAN Commands
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>]}
83-1 create mac_based_vlan mac_address
Description
This command is used to create static MAC-based VLAN entries.
Format
create mac_based_vlan mac_address <macaddr> [vlan <vlan_name 32> | vlanid <vlanid 1-
4094>] {priority <value 0-7>}
Parameters
<macaddr> - Specify the MAC address.
vlan - Specify the VLAN to be associated with the MAC address. The name must be an existing
static VLAN name.
<vlan_name 32> - Specify the VLAN name. The maximum length is 32 characters.
vlanid - Specify the VLAN ID to be associated with the MAC address. The ID must be an existing
static VLAN ID.
<vlanid 1-4094> - Specify the VLAN ID between 1 and 4094.
priority(Optional) Specifies the priority that is assigned to untagged packets. If not specified,
the priority is the default value 0.
<value 0-7> - Enter the priority value used here. This value must be 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:
DGS-3420-28SC:admin#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-3420-28SC:admin#