1、华为s3026交换机配置:systemEnter system view, return to user view with Ctrl+Z.[Quidway]vlan 2[Quidway-vlan2]port e0/2[Quidway-vlan2]vlan 3[Quidway-vlan3]port e0/7[Quidway-vlan3]int vlan 2[Quidway-Vlan-interface2]quit[Quidway]int e0/1[Quidway-Ethernet0/1]port link-type trunk[Quidway-Ethernet0/1]port trunk permit vlan all[Quidway-Ethernet0/1]port trunk encap dot1q[Quidway]saveSave current configuration to flash memory successfully.[Quidway]华为r2621路由器配置:systemEnter system view, return to user view with Ctrl+Z.[Quidway]int e0[Quidway-Ethernet0]undo shut[Quidway-Ethernet0]int e0.1[Quidway-Ethernet0.1]ip add 10.65.1.2 255.255.255.0[Quidway-Ethernet0.1]encap dot1q 2[Quidway-Ethernet0.1]int e0.2[Quidway-Ethernet0.2]ip add 10.66.1.2 255.255.255.0[Quidway-Ethernet0.2]encap dot1q 3[Quidway-Ethernet0.2]undo shut[Quidway-Ethernet0.2]quit[Quidway]saveSave current configuration to flash memory successfully.[Quidway]ip routing[Quidway]saveSave current configuration to flash memory successfully.[Quidway]其中:10.65.1.2和10.66.1.2为pc1和pc2的网关地址华为交换机VLAN间通信配置。