[Huawei]inter
[Huawei]interface e0/0/2
[Huawei-Ethernet0/0/2]po
[Huawei-Ethernet0/0/2]port lin
[Huawei-Ethernet0/0/2]port link-
[Huawei-Ethernet0/0/2]port link-flap
[Huawei-Ethernet0/0/2]port link-type ac
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/2]po
[Huawei-Ethernet0/0/2]port de
[Huawei-Ethernet0/0/2]port default vl
Nov 23 2022 14:48:08-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 5, th
e change loop count is 0, and the maximum number of rport link-type access
[Huawei-Ethernet0/0/2]port de
[Huawei-Ethernet0/0/2]port default vl
[Huawei-Ethernet0/0/2]port default vlan 2
[Huawei-Ethernet0/0/2]qu
[Huawei]inter
[Huawei]interface e0/0/
Nov 23 2022 14:48:28-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 6, th
e change loop count is 0, and the maximum number of records is 4095.
^
Error: Wrong parameter found at '^' position.
[Huawei]interface e0/0/3
[Huawei-Ethernet0/0/3]po
[Huawei-Ethernet0/0/3]port li
[Huawei-Ethernet0/0/3]port link-
[Huawei-Ethernet0/0/3]port link-flap
[Huawei-Ethernet0/0/3]port link-type ac
[Huawei-Ethernet0/0/3]port link-type access
[Huawei-Ethernet0/0/3]po
[Huawei-Ethernet0/0/3]port de
[Huawei-Ethernet0/0/3]port default vl
[Huawei-Ethernet0/0/3]port default vlan 3
Nov 23 2022 14:48:48-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 7, th
e change loop count is 0, and the maximum number of records is 4095.
[Huawei-Ethernet0/0/3]qu
[Huawei]inter
[Huawei]interface e0/0/
Nov 23 2022 14:48:58-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 8, th
e change loop count is 0, and the maximum number of records is 4095.4
[Huawei-Ethernet0/0/4]po
[Huawei-Ethernet0/0/4]port lin
[Huawei-Ethernet0/0/4]port link-
[Huawei-Ethernet0/0/4]port link-flap
[Huawei-Ethernet0/0/4]port link-type ac
[Huawei-Ethernet0/0/4]port link-type access
[Huawei-Ethernet0/0/4]po
[Huawei-Ethernet0/0/4]port de
[Huawei-Ethernet0/0/4]port default vl
Nov 23 2022 14:49:18-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 9, th
e change loop count is 0, and the maximum number of records is 4095.
[Huawei-Ethernet0/0/4]port default vlan 4
[Huawei-Ethernet0/0/4]qu
[Huawei]inter
Nov 23 2022 14:49:28-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 10, t
he change loop count is 0, and the maximum number of records is 4095.
[Huawei]interface e0/0/1
[Huawei-Ethernet0/0/1]po
[Huawei-Ethernet0/0/1]port li
[Huawei-Ethernet0/0/1]port link-
[Huawei-Ethernet0/0/1]port link-flap
[Huawei-Ethernet0/0/1]port link-typetr
[Huawei-Ethernet0/0/1]port link-type tr
[Huawei-Ethernet0/0/1]port link-type trunk
[Huawei-Ethernet0/0/1]po
Nov 23 2022 14:49:48-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 11, t
he change loop count is 0, and the maximum number of records is 4095.
[Huawei-Ethernet0/0/1]port tr
[Huawei-Ethernet0/0/1]port trunk al
[Huawei-Ethernet0/0/1]port trunk allow-pass vl
[Huawei-Ethernet0/0/1]port trunk allow-pass vlan all
[Huawei-Ethernet0/0/1]
[Huawei-Ethernet0/0/1]
[Huawei]interface g0/0/0.1
[Huawei-GigabitEthernet0/0/0.1]do
[Huawei-GigabitEthernet0/0/0.1]dot1q ter
[Huawei-GigabitEthernet0/0/0.1]dot1q termination vi
[Huawei-GigabitEthernet0/0/0.1]dot1q termination vid 2
[Huawei-GigabitEthernet0/0/0.1]ip ad
[Huawei-GigabitEthernet0/0/0.1]ip address 12.1.1.1 24
[Huawei-GigabitEthernet0/0/0.1]
Nov 23 2022 14:51:12-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
IP on the interface GigabitEthernet0/0/0.1 has entered the UP state.
[Huawei-GigabitEthernet0/0/0.1]qu
[Huawei]inter
[Huawei]interface g0/0/0.2
[Huawei-GigabitEthernet0/0/0.2]do
[Huawei-GigabitEthernet0/0/0.2]dot1q ter
[Huawei-GigabitEthernet0/0/0.2]dot1q termination vl
[Huawei-GigabitEthernet0/0/0.2]dot1q termination v
[Huawei-GigabitEthernet0/0/0.2]dot1q termination vid 3
[Huawei-GigabitEthernet0/0/0.2]ip ad
[Huawei-GigabitEthernet0/0/0.2]ip address 23.1.1.1 24
Nov 23 2022 14:51:43-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[2]:The line protocol
IP on the interface GigabitEthernet0/0/0.2 has entered the UP state.
[Huawei-GigabitEthernet0/0/0.2]qu
[Huawei]intyer
[Huawei]inter
[Huawei]interface g0/0/0.3
[Huawei-GigabitEthernet0/0/0.3]do
[Huawei-GigabitEthernet0/0/0.3]dot1q ter
[Huawei-GigabitEthernet0/0/0.3]dot1q termination v
[Huawei-GigabitEthernet0/0/0.3]dot1q termination vid 4
[Huawei-GigabitEthernet0/0/0.3]ip ad
[Huawei-GigabitEthernet0/0/0.3]ip address 34.1.1.1 24
Nov 23 2022 14:52:13-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[3]:The line protocol
IP on the interface GigabitEthernet0/0/0.3 has entered the UP state.
[Huawei-GigabitEthernet0/0/0.3]qu
[Huawei]dhcp
[Huawei]dhcp en
[Huawei]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[Huawei]ip po
^
Error:Ambiguous command found at '^' position.
[Huawei]ip po
[Huawei]ip policy-based-route
[Huawei]ip pool 1
Info: It's successful to create an IP address pool.
[Huawei-ip-pool-1]net
[Huawei-ip-pool-1]netbios-type
[Huawei-ip-pool-1]network 12.1.1.0 mas
[Huawei-ip-pool-1]network 12.1.1.0 mask 24
[Huawei-ip-pool-1]ga
[Huawei-ip-pool-1]gateway-list 12.1.1.1
[Huawei-ip-pool-1]dns
[Huawei-ip-pool-1]dns-list 8.8.8.8
[Huawei-ip-pool-1]qu
[Huawei]ip po
[Huawei]ip policy-based-route
[Huawei]ip pool 2
Info: It's successful to create an IP address pool.
[Huawei-ip-pool-2]net
[Huawei-ip-pool-2]netbios-type
[Huawei-ip-pool-2]network 23.1.1.0 ma
[Huawei-ip-pool-2]network 23.1.1.0 mask 24
[Huawei-ip-pool-2]ga
[Huawei-ip-pool-2]gateway-list 23.1.1.1
[Huawei-ip-pool-2]dns
[Huawei-ip-pool-2]dns-list 8.8.8.8
[Huawei-ip-pool-2]qu
[Huawei]inter
[Huawei]ip po
[Huawei]ip policy-based-route
[Huawei]ip pool 3
Info: It's successful to create an IP address pool.
[Huawei-ip-pool-3]net
[Huawei-ip-pool-3]netbios-type
[Huawei-ip-pool-3]network 34.1.1.0 ma
[Huawei-ip-pool-3]network 34.1.1.0 mask 24
[Huawei-ip-pool-3]ga
[Huawei-ip-pool-3]gateway-list 34.1.1.1
[Huawei-ip-pool-3]dns
[Huawei-ip-pool-3]dns-list 8.8.8.8
[Huawei-ip-pool-3]qu
[Huawei]inter
[Huawei]interface g0/0/0.1
[Huawei-GigabitEthernet0/0/0.1]dhcp
[Huawei-GigabitEthernet0/0/0.1]dhcp se
[Huawei-GigabitEthernet0/0/0.1]dhcp select gl
[Huawei-GigabitEthernet0/0/0.1]dhcp select global
[Huawei-GigabitEthernet0/0/0.1]qu
[Huawei]inter
[Huawei]interface g0/0/0.2
[Huawei-GigabitEthernet0/0/0.2]dh
[Huawei-GigabitEthernet0/0/0.2]dhcp se
[Huawei-GigabitEthernet0/0/0.2]dhcp selectgl
[Huawei-GigabitEthernet0/0/0.2]dhcp selectgl
^
Error: Unrecognized command found at '^' position.
[Huawei-GigabitEthernet0/0/0.2]dhcp select gl
[Huawei-GigabitEthernet0/0/0.2]dhcp select gl
[Huawei-GigabitEthernet0/0/0.2]dhcp select global
[Huawei-GigabitEthernet0/0/0.2]qu
[Huawei]inter
[Huawei]interface g0/0/0.3
[Huawei-GigabitEthernet0/0/0.3]dh
[Huawei-GigabitEthernet0/0/0.3]dhcp se
[Huawei-GigabitEthernet0/0/0.3]dhcp select gl
[Huawei-GigabitEthernet0/0/0.3]dhcp select global
先创建vlan234 把他分给接口 ,再把连接路由器的接口改成all ,路由器上创建虚拟接口因为只有一个物理接口所以要创建虚拟接口。在虚拟接口上创建ip并且把ip分给各个pc