Policy-based VLAN assignment on S series switch

Example of configuring policy-based VLAN assignment for S series switches (except S1700 switches):
1. Create a VLAN.
[HUAWEI] vlan batch 10
2. Configure a policy for the VLAN.
[HUAWEI] vlan 10
[HUAWEI-vlan10] policy-vlan mac-address 0-1-1 ip priority 7 //Bind MAC address 0-1-1 and IP address to VLAN 10, and set the 802.1p priority of VLAN 10 to 7.
[HUAWEI-vlan10] quit
3. Configure the interface to allow packets of VLAN 10 to pass through.
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type hybrid
[HUAWEI-GigabitEthernet0/0/1] port hybrid untagged vlan 10
[HUAWEI-GigabitEthernet0/0/1] quit

Scroll to top