1.配置vlan [LSW1]vlan10 [LSW1-GigabitEthernet0/0/1]port link-type access [LSW1-GigabitEthernet0/0/1]port defaultvlan 10 [LSW1-GigabitEthernet0/0/2]portlink-type access [LSW1-GigabitEthernet0/0/2]portdefault vlan 10 2.配置静态mac地址表项 [LSW1]mac-addressstatic 5489-9818-0687 g0/0/1 vlan 10 [LSW1]mac-addressstatic 5489-9825-0C81 g0/0/2 vlan 10 3.验证