DGS-3700 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Page | 293
S
TATIC
MAC-B
ASED
VLAN
C
OMMANDS
Back to Section Header
The Static MAC-Based VLAN commands in the Command Line Interface (CLI) are listed (along with the
appropriate parameters) in the following table.
C
OMMAND
P
ARAMETERS
create mac_based_vlan mac_address
<macaddr> [vlan <vlan_name 32> | vlanid <vlanid 1-
4094>]
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>]}
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> | vlanid
<vlanid 1-4094>]
Description
This command only needs to be supported by the model which supports mac-based
VLAN.
The user can use this command to create a static mac-based VLAN entry.
When a static mac_based_vlan entry is created for a user, the traffic from this user
will be able to be serviced under the specified VLAN regardless of the
authentiucation function operated on this port.
There is a global limitation of the maximum entries supported for the static mac-
based entry.
Parameters
mac_address
−
The MAC address.
vlan
−
The VLAN to be associated with the MAC address.
vlanid -
Specify the VLAN ID to be associated with the MAC address.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To create mab_local:
DGS-3700-12: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-3700-12: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>| vlanid
<vlanid 1-4094>] }
Description
This command is used to delete a database entry. If the mac_address and vlan is not
specified, all static entries associated with the port will be removed.