MAC-based VLAN Command List. D-Link DGS-3000-24TC, DGS-3000 series
Oglas
Oglas
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Chapter 45 MAC-based VLAN Command
List
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>]}
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 - Specifies 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 - Specifies the VLAN by VLAN ID.
<vlanid 1-4094> - Enter the VLAN ID here. This value must be between 1 and 4094.
Restrictions
Only Administrators, Operators and Power-Users can issue this command.
Example
To create a static MAC-based VLAN entry:
DGS-3000-26TC:admin#create mac_based_vlan mac_address 00-11-22-33-44-55 vlanid
100
Command: create mac_based_vlan mac_address 00-11-22-33-44-55 vlanid 100
Success.
DGS-3000-26TC:admin#
420
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
45-2 delete mac_based_vlan
Description
This command is used to delete the static MAC-based VLAN entry.
Format delete mac_based_vlan {mac_address <macaddr> [vlan <vlan_name 32> | vlanid <vlanid 1-
4094>]}
Parameters
mac_address - (Optional) Specifies the MAC address used.
<macaddr> - Enter the MAC address used here.
vlan - (Optional) 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 - (Optional) Specifies the VLAN by VLAN ID.
<vlanid 1-4094> - Enter the VLAN ID here. This value must be between 1 and 4094.
If no parameter is specified, ALL static configured entries will be removed.
Restrictions
Only Administrators, Operators and Power-Users can issue this command.
Example
To delete a static MAC-based VLAN entry:
DGS-3000-26TC:admin#delete mac_based_vlan mac_address 00-11-22-33-44-55 vlanid
100
Command: delete mac_based_vlan mac_address 00-11-22-33-44-55 vlanid 100
Success.
DGS-3000-26TC:admin#
45-3 show mac_based_vlan
Description
This command is used to display the static or dynamic MAC-Based VLAN entry. If the MAC address and VLAN is not specified, all static and dynamic entries will be displayed.
Format show mac_based_vlan {mac_address <macaddr> | [vlan <vlan_name 32> | vlanid <vlanid 1-
4094>]}
Parameters
mac_address - (Optional) Specifies the entry that you would like to display.
<macaddr> - Enter the MAC address used here.
421
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
vlan - (Optional) Specifies the VLAN that you would like to display.
<vlan_name 32> - Enter the VLAN name here. This name can be up to 32 characters long.
vlanid - (Optional) Specifies the VLAN by VLAN ID.
<vlanid 1-4094> - Enter the VLAN ID here. This value must be between 1 and 4094.
Restrictions
None.
Example
In the following example, MAC address “00-80-c2-33-c3-45” is assigned to VLAN 300 by manual config. It is assigned to VLAN 400 by Voice VLAN. Since Voice VLAN has higher priority than manual configuration, the manual configured entry will become inactive. To display the MACbased VLAN entry:
DGS-3000-26TC:admin#show mac_based_vlan
MAC Address VLAN ID Status Type
----------------- ------- -------- -------------------
00-80-e0-14-a7-57 200 Active Static
00-80-c2-33-c3-45 300 Inactive Static
00-80-c2-33-c3-45 400 Active Voice VLAN
Total Entries : 3
DGS-3000-26TC:admin#
422
Prenesi
Oglas