主机 PCA 的 IP 地址为 40.1.1.1,MAC 地址为 0011.1111.1111, 连接在交换机 SWA 的 GigabitEthernet1/0/1 端口 上,在交换机 SWA 上配置了如下命令: [SWA]vlan 10 [SWA-vlan10]quit [SWA]vlan 20 [SWA-vlan20]protocol-vlan ipv4 [SWA-vlan20]quit [SWA]vlan 30 [SWA-vlan30]quit [SWA]mac-vlan mac-address 0011-1111-1111 vlan 30 [SWA]vlan 40 [SWA-vlan40]ip-subnet-vlan ip 50.1.1.0 255.255.255.0 [SWA-vlan40]quit [SWA]interface GigabitEthernet 1/0/1 [SWA-GigabitEthernet1/0/1]port link-type hybrid [SWA-GigabitEthernet1/0/1]port hybrid pvid vlan 10 [SWA-GigabitEthernet1/0/1]port hybrid vlan 10 20 30 40 untagged [SWA-GigabitEthernet1/0/1]port hybrid protocol-vlan vlan 20 0 [SWA-GigabitEthernet1/0/1]port hybrid ip-subnet-vlan vlan 40 [SWA-GigabitEthernet1/0/1]mac-vlan enable [SWA-GigabitEthernet1/0/1]vlan precedence ip-subnet-vlan 配置完成后,可以判断 PCA 会加入