Configure the MAC address of the fixed upstream device or trusted user host connected to the switch as the static MAC address to ensure secure communication.
<HUAWEI> system-view [HUAWEI] vlan 10 //Create VLAN 10. [HUAWEI-vlan10] quit [HUAWEI] interface GigabitEthernet0/0/1 [HUAWEI-GigabitEthernet0/0/1] port link-type access [HUAWEI-GigabitEthernet0/0/1] port default vlan 10 //Add an interface to VLAN 10. [HUAWEI-GigabitEthernet0/0/1] quit [HUAWEI] mac-address static 0000-0012-0034 GigabitEthernet0/0/1 vlan 10 //Create a static MAC address and bind the MAC address of 0000-0012-0034 to the GigabitEthernet0/0/1.

The interface bound to the MAC address must belong to the specified VLAN and the VLAN must have been created.
More Information: S Series Switches Common Operation Guide