Table of Contents
3.2.1 dynamic-vlan mac-vlan prefer
Function: Set the MAC based preferred VLAN.
Parameters: None.
Command mode: Global Mode
Default: MAC-based VLAN is preferred.
Usage guide: Configure preference for dynamic-VLAN. The default priority sequence is MAC based VLAN, IP subnet based VLAN, and protocol-based VLAN. Use this command after the IP subnet based VLAN is set to preferred and the user wants to restore to the preferred MAC based VLAN.
Example: Set MAC based VLAN as preferred.
active500EM#config active500EM(config)#dynamic-vlan mac-vlan prefer
3.2.2 dynamic-vlan subnet-vlan prefer
Function: Set IP-subnet-based VLAN preferred.
Parameters: None.
Command mode: Global Mode
Default: MAC-based VLAN is preferred by default.
Usage guide: Configure a preference for dynamic-VLAN on the switch. The default priority sequence is MAC based VLAN, IP subnet based VLAN, and Protocol-based VLAN. This command sets the preference to IP subnet based VLAN.
Example: Set the IP subnet based to VLAN as preferred.
active500EM#config active500EM(config)#dynamic-vlan subnet-vlan prefer
3.2.3 mac-vlan
no mac-vlan {mac <mac-addrss>|all}
Function: Associate a MAC address to a VLAN. Specify the MAC address to be joined to a specified VLAN. The no command deletes the association.
Parameters:
-
<mac-addr>: the MAC address which is shown in the form of XX-XX-XX-XX-XX-XX.
-
<vlan-id>: the ID of the VLAN with a valid range of 1 to 4094
-
<priority-id>: the level of priority used in the VLAN tag. The valid range is 0 to 7.
-
all: refers to all the MAC addresses.
Command mode: Global Mode
Default: None.
Usage guide: This command allows the user to add a specified MAC address to a specified VLAN. If a VLAN with no label on the data packet enters from the switch port from the specified MAC address, a specified VLAN ID will be assigned. The VLAN associated with the data packet is the same regardless of the port of origin. The command does not update the VLAN label data packet.
Example: Add a MAC address of 00-03-0f-11-22-33 to VLAN 100.
active500EM#config active500EM(config)#mac-vlan mac 00-03-0f-11-22-33 vlan 100 priority 0
3.2.4 mac-vlan vlan
no mac-vlan vlan <vlan-id>
Function: Configure the specified VLAN to MAC VLAN. The no command cancels the MAC VLAN configuration of this VLAN.
Parameters:
-
<vlan-id>: the number of the specified VLAN
Command mode: Global Mode
Default: No MAC VLAN.
Usage guide: Set the specified VLAN for the MAC VLAN.
Example: Set VLAN100 for the MAC VLAN.
active500EM#config active500EM(config)#mac-vlan vlan 100
3.2.5 protocol-vlan
Function: Specify the protocol correspondence with a specified VLAN. The no command deletes all protocol correspondence with the VLAN.
Parameters:
-
mode: configuration options are ethernetii, llc, and snap. The encapsulate type of the ethernetii is EthernetII.
-
<etype-id>: the type of the packet protocol. The valid range is from 1536 to 65535.
-
<llc>: llc encapsulate format.
-
<dsap-id>: access point of the destination service. The valid range is from 0 to 255.
-
<ssap-id>: access point of the source service. The valid range is from 0 to 255.
-
snap: SNAP format.
-
<etype-id>: the type of the packet protocol. The valid range is from 1536 to 65535.
-
<vlan-id>: ID of the VLAN. The valid range is from 1 to 4094.
-
<priority-id>: Priority of VLAN. The valid range is from 0 to 7.
-
all: indicates all the encapsulated protocols.
Command mode: Global Mode
Default: No protocol is joined to the VLAN.
Usage guide: This command adds a specified protocol to a specified VLAN. Any packet from the specified protocol entering through the switch port will be assigned to the specified VLAN ID and enter the specified VLAN regardless of which port the packets enter. The command will not interfere with data packets that have a VLAN label. Configure ARP protocol in conjunction with the IP protocol to avoid affecting another application.
Example: Assign the IP protocol data packet encapsulated by EthernetII to VLAN200.
active500EM#config active500EM(config)#protocol-vlan mode ethernetii etype 2048 vlan 200.
3.2.6 show dynamic-vlan prefer
Function: Display the preference of the dynamic VLAN.
Parameters: None.
Command mode: Admin Mode and Configuration Mode
Default: None.
Usage guide: Display the dynamic VLAN preference.
Example: Display the current dynamic VLAN preference.
active500EM#show dynamic-vlan prefer MAC Vlan/Voice Vlan IP Subnet Vlan Protocol Vlan
3.2.7 show mac-vlan
Function: Display the configuration of the MAC based VLAN on the switch.
Parameters: None.
Command mode: Admin Mode and other Configuration Mode
Default: None.
Usage guide: Display the configuration of the MAC based VLAN on the switch.
Example: Display the configuration of the current MAC based VLAN.
active500EM#show mac-vlan MAC-Address VLAN-ID Priority ------------------ ----------- -------- 00-e0-4c-77-ab-9d 2 2 00-0a-eb-26-8d-f3 2 2 00-03-0f-11-22-33 5 5
3.2.8 show mac-vlan interface
Function: Display the ports for the MAC based VLAN.
Parameters: None.
Command mode: Admin Mode and other Configuration Mode
Default: None.
Usage guide: Displays the enabling MAC based VLAN ports. The character in the bracket indicates the port mode: A means Access port, T means Trunk port, and H means Hybrid port.
Example: Display the enabling MAC based VLAN ports.
active500EM#show mac-vlan interface Ethernet1/0/1(A) Ethernet1/0/2(A) Ethernet1/0/3(A) Ethernet1/0/4(A) Ethernet1/0/5(H) Ethernet1/0/6(T)
3.2.9 show protocol-vlan
Function: Display the protocol based VLAN configuration on the switch.
Parameters: None.
Command mode: Admin Mode and Configuration Mode
Default: None.
Usage guide: Display the protocol based VLAN configuration of the switch.
Example: Display the current protocol based VLAN configuration.
active500EM#show protocol-vlan Protocol-Type VLAN-ID Priority ----------------------------- --------- --------- mode ethernetii etype 0x800 200 4 mode ethernetii etype 0x860 200 4 mode snap etype 0xabc 100 5 mode llc dsap 0xac ssap 0xbd 100 5
3.2.10 show subnet-vlan
Function: Display the IP subnet based VLAN configuration of the switch.
Parameters: None.
Command mode: Admin Mode and other Configuration Mode
Default: None.
Usage guide: Display the IP subnet based VLAN configuration of the switch.
Example: Display the current IP subnet based VLAN configuration.
active500EM#show subnet-vlan IP-Address Mask VLAN-ID ------------------ --------------- ------- 192.168.1.165 255.255.255.0 2 202.200.121.21 255.255.0.0 2 10.0.0.1 255.248.0.0 5
3.2.11 show subnet-vlan interface
Function: Display the IP subnet based VLAN port.
Parameters: None.
Command mode: Admin Mode and other Configuration Mode
Default: None.
Usage guide: Display the IP subnet based VLAN port. The character in the bracket indicates the port mode: A means Access port, T means Trunk port, and H means Hybrid port.
Example: Display the current IP subnet based VLAN port.
active500EM#show subnet-vlan interface Ethernet1/0/1(A) Ethernet1/0/2(A) Ethernet1/0/3(A) Ethernet1/0/4(A) Ethernet1/0/5(H) Ethernet1/0/6(T)
3.2.12 subnet-vlan
no subnet-vlan {ip-address <ipv4-addrss> mask <subnet-mask> | all}
Function: Add an association between the IP subnet and the VLAN. Add a specified IP subnet into the specified VLAN. The no command deletes the association.
Parameters:
-
<ipv4-address>: the IPv4 address shown in dotted decimal notation (xx.xx.xx.xx). The valid range of each section is 0 to 255.
-
<subnet-mask>: the subnet mask code shown in dotted decimal notation. The valid range of each section is 0 to 255.
-
<vlan-id>: the VLAN ID with a valid range of 1 to 4094.
-
<priority-id>: the priority applied in the VLAN tag with a valid range of 0 to 7.
-
all: indicates all subnets.
Command mode: Global Mode
Default: No IP subnet is joined to the VLAN.
Usage guide: This command is used to add a specified IP subnet to a specified VLAN. When a packet without a VLAN label, and from the specified IP subnet, enters through the switch port, it will be matched with a specified VLAN ID. These packets will always come to the same VLAN regardless of their port of entry. This command will not interfere with VLAN labeled data packets.
Example: Add the network equipment with IP subnet of 192.168.1.0/24 to VLAN 300.
active500EM#config active500EM(config)#subnet-vlan ip-address 192.168.1.1 mask 255.255.255.0 vlan 300 priority 0
3.2.13 switchport mac-vlan enable
no switchport mac-vlan enable
Function: Enable the MAC based VLAN function on the port. The no command disables the MAC based VLAN function on the port.
Parameters: None.
Command mode: Port Mode
Default: The MAC based VLAN function is enabled.
Usage guide: After adding a MAC address to a specified VLAN, the MAC based VLAN function will be globally enabled. This command can also disable the MAC based VLAN function on a specified port to meet special user applications.
Example: Disable the MAC-based VLAN function on port1.
active500EM#config active500EM(config)#interface ethernet1/0/1 active500EM(config-if-ethernet1/0/1)#no switchport mac-vlan enable
3.2.14 switchport subnet-vlan enable
no switchport subnet-vlan enable
Function: Enable the IP subnet based VLAN on the port. The no command disables the IP subnet based VLAN function on the port.
Parameters: None.
Command mode: Port Mode
Default: The IP subnet based VLAN is enabled.
Usage guide: After adding the IP subnet to a specified VLAN, the IP subnet based VLAN function will be globally enabled. This command can also disable the IP subnet based VLAN function on a specified port to meet special user applications.
Example: Disable the IP subnet based VLAN function on port1.
active500EM#config active500EM(config)#interface ethernet 1/0/1 active500EM(config-if-ethernet1/0/1)#no switchport subnet-vlan enable
Return to Controller Wired CLI Table of Contents