服务器: 00:0c:29:15:50:87 客户端: 00:0c:29:5c:83:02 ip link set dev s2p2 address a5a9-a6aa-5aa6 ip link set dev address 03:bf:26:50:21:0a ip link set dev address 03:bf:26:50:21:3a ip link set dev ens192 address 00:0c:29:15:50:92 00:90:0b:61:f7:df 00:90:0b:61:f7:e0 ip link set dev s2p2 address a5:a9:a6:aa:5a:a6 # 创建vlan,并接口绑定,绑定mac [HUAWEI]vlan 16 [HUAWEI]int xg 0/0/16 [HUAWEI-XGigabitEthernet0/0/16]port link-type access [HUAWEI-XGigabitEthernet0/0/16]port default vlan 16 [HUAWEI-XGigabitEthernet0/0/16]mac-address multicast a5a9-a6aa-5aa6 vlan 16 [HUAWEI-XGigabitEthernet0/0/16]qu [HUAWEI] # 创建接口ip地址, [HUAWEI]int vlanif 16 [HUAWEI-Vlanif16]ip address 2.2.2.1 255.255.255.0 [HUAWEI-Vlanif16]qu [HUAWEI]vlan 12 [HUAWEI-vlan12]qu [HUAWEI]int vlanif 12 [HUAWEI-Vlanif12]ip address 2.2.3.1 255.255.255.0 [HUAWEI-Vlanif12]qu [HUAWEI]int xg 0/0/12 [HUAWEI-XGigabitEthernet0/0/12]port default vlan 12 [HUAWEI-XGigabitEthernet0/0/12]qu [HUAWEI]int xg 0/0/15 [HUAWEI-XGigabitEthernet0/0/15]qu [HUAWEI]int xg 0/0/16 [HUAWEI-XGigabitEthernet0/0/16]port default vlan 16 [HUAWEI-XGigabitEthernet0/0/16]port default vlan 16 [HUAWEI-XGigabitEthernet0/0/16]qu [HUAWEI] # [HUAWEI]dhcp enable [HUAWEI]int vlan 12 [HUAWEI-Vlanif12]dhcp select global [HUAWEI-Vlanif12]qu [HUAWEI]ip pool 12 [HUAWEI-ip-pool-12]gateway-list 2.2.3.10 [HUAWEI-ip-pool-12]network 2.2.3.0 mask 255.255.255.0 [HUAWEI-ip-pool-12]qu [HUAWEI]int vlanif 16 [HUAWEI-Vlanif16]dhcp select global [HUAWEI-Vlanif16]qu [HUAWEI]DHCP snooping enable [HUAWEI]int xg 0/0/12 [HUAWEI-XGigabitEthernet0/0/12]user-bind ip sticky-mac [HUAWEI-XGigabitEthernet0/0/12]undo user-bind ip sticky-mac # 接口绑定mac地址 [HUAWEI-XGigabitEthernet0/0/16]mac-address multicast 0100-5A1A-1A1A vlan 16 [HUAWEI-XGigabitEthernet0/0/16]mac-address multicast 0101-5A1A-1A1A vlan 12 [HUAWEI-XGigabitEthernet0/0/16]undo mac-address multicast 0100-5A1A-1A1A vlan 16 [HUAWEI-XGigabitEthernet0/0/16]undo mac-address multicast 0101-5A1A-1A1A vlan 12 [HUAWEI-XGigabitEthernet0/0/16]qu [HUAWEI]mac-address multicast a5a9-a6aa-5aa6 int xg0/0/16 vlan 16 [HUAWEI]mac-address multicast 01a9-a6aa-5aa6 int xg0/0/12 vlan 12 [HUAWEI]mac-address static a5a9-a6aa-5aa6 XGigabitEthernet 0/0/16 vlan 16 Error: Multicast or broadcast does not support the configuration of the MAC address. [HUAWEI] #开启组播报文: [HUAWEI]dis vlan [HUAWEI]interface Vlanif 12 [HUAWEI-Vlanif12]dis th [HUAWEI-Vlanif12]multicast boundary ? [HUAWEI-Vlanif12]pim ? [HUAWEI-Vlanif12]pim dm [HUAWEI-Vlanif12]multicast ? [HUAWEI-Vlanif12]igmp ? [HUAWEI-Vlanif12]igmp enable [HUAWEI-Vlanif12]multicast boundary 224.0.0.4 32 [HUAWEI-Vlanif12]dis th #虚拟化: zebra ospf