131the port trusts the 802.1p priority of incoming packets and your configuration takes effect. For moreinformation about the qos trust dot1p command, see ACL and QoS Command Reference.Configuration procedureTo configure static MAC-based VLAN assignment:Step Command Remarks1. Enter system view. system-view N/A2. Associate a specific MACaddress with a VLAN.mac-vlan mac-addressmac-address [ maskmac-mask ] vlan vlan-id[ priority priority ]N/A3. Enter interface view orport group view.• Enter Layer 2 Ethernetinterface view:interface interface-typeinterface-number• Enter port group view:port-group manualport-group-nameUse either command.• The configuration made in Ethernetinterface view applies only to the port.• The configuration made in port groupview applies to all ports in the port group.4. Configure the link type ofthe ports as hybrid. port link-type hybrid By default, all ports are access ports.5. Configure the hybridports to permit packetsfrom specific MAC-basedVLANs to pass through.port hybrid vlan vlan-list{ tagged | untagged }By default, a hybrid port only permits thepackets from VLAN 1 to pass through.6. Enable the MAC-basedVLAN feature. mac-vlan enable Disabled by default.7. Configure VLANmatching precedence.vlan precedence { mac-vlan |ip-subnet-vlan }Optional.By default, VLANs are preferably matchedbased on MAC addresses.To configure dynamic MAC-based VLAN assignment:Step Command Remarks1. Enter system view. system-view N/A2. Associate MACaddresses with a VLAN.mac-vlan mac-address mac-addressvlan vlan-id [ priority priority ]With dynamic MAC-based VLANassignment enabled, a port isautomatically assigned to the VLANin the MAC address-to-VLAN entrythat is exactly matched by the sourceMAC address of the packet receivedon the port.3. Enter Ethernet interfaceview.interface interface-typeinterface-number N/A4. Configure the link type ofthe port as hybrid. port link-type hybrid By default, all ports are access ports.5. Enable the MAC-basedVLAN feature. mac-vlan enable Disabled by default.