XGS-5240-Series User Manual

Table Of Contents
Configuration Guide of XGS-5240-Series
187
1. Configure the MAC-based VLAN function on the port
2. Set the VLAN to MAC VLAN
3. Configure the correspondence between the MAC address and the VLAN
4. Configure the IP-subnet-based VLAN function on the port
5. Configure the correspondence between the IP subnet and the VLAN
Command
Explanation
Port Mode
switchport mac-vlan enable
no switchport mac-vlan enable
Enable/disable the MAC-
based VLAN
function on the port.
Command
Explanation
Global Mode
mac-vlan vlan <vlan-id>
no mac-vlan
Configure the specified VLAN to MAC
VLAN; the “no mac-vlan command
cancels the MAC VLAN configuration of
this VLAN.
Command
Explanation
Global Mode
mac-vlan mac <mac-addrss> <mac-mas
k> vlan <vlan-id> priority <priority-id>
no mac-vlan {mac <mac-addrss> <mac-
mask>|all}
Add/delete the correspondence between
the MAC address and the VLAN, it
means to make the s
pecified MAC
address join/leave the specified VLAN.
Command
Explanation
Port Mode
switchport subnet-vlan enable
no switchport subnet-vlan enable
Enable/disable the port IP-subnet-base
VLAN function on the port.
Command
Explanation
Global Mode
subnet-vlan ip-address <ipv4-addrss> m
ask <subnet-mask> vlan <vlan-id> priori
ty <priority-id>
no subnet-vlan {ip-address <ipv4-addrs
s> mask <subnet-mask>|all}
Add/delete the correspondence between
the IP subnet and the VLAN, namely
specified IP subnet joins/leaves specified
VLAN.