<Huawei>
<Huawei>sys
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]vl
[Huawei]vlan ba
[Huawei]vlan batch 2 3 4
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]
[Huawei]dis
[Huawei]display vl
[Huawei]display vlan
The total number of vlans is : 4
--------------------------------------------------------------------------------
U: Up; D: Down; TG: Tagged; UT: Untagged;
MP: Vlan-mapping; ST: Vlan-stacking;
#: ProtocolTransparent-vlan; *: Management-vlan;
--------------------------------------------------------------------------------
VID Type Ports
--------------------------------------------------------------------------------
1 common UT:Eth0/0/1(U) Eth0/0/2(U) Eth0/0/3(U) Eth0/0/4(U)
Eth0/0/5(D) Eth0/0/6(D) Eth0/0/7(D) Eth0/0/8(D)
Eth0/0/9(D) Eth0/0/10(D) Eth0/0/11(D) Eth0/0/12(D)
Eth0/0/13(D) Eth0/0/14(D) Eth0/0/15(D) Eth0/0/16(D)
Eth0/0/17(D) Eth0/0/18(D) Eth0/0/19(D) Eth0/0/20(D)
Eth0/0/21(D) Eth0/0/22(D) GE0/0/1(D) GE0/0/2(D)
2 common
3 common
4 common
VID Status Property MAC-LRN Statistics Description
--------------------------------------------------------------------------------
1 enable default enable disable VLAN 0001
2 enable default enable disable VLAN 0002
3 enable default enable disable VLAN 0003
4 enable default enable disable VLAN 0004
[Huawei]
[Huawei]int
[Huawei]interface e0/0/2
[Huawei-Ethernet0/0/2]po
[Huawei-Ethernet0/0/2]port li
[Huawei-Ethernet0/0/2]port link-
[Huawei-Ethernet0/0/2]port link-flap
[Huawei-Ethernet0/0/2]port link-type
[Huawei]interface e0/0/2
[Huawei-Ethernet0/0/2]po
[Huawei-Ethernet0/0/2]port li
[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]port de
[Huawei-Ethernet0/0/2]port default vl
[Huawei-Ethernet0/0/2]port default vlan 2
[Huawei-Ethernet0/0/2]quit
[Huawei]int
[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]portde
[Huawei-Ethernet0/0/3]port de
[Huawei-Ethernet0/0/3]port default vl
[Huawei-Ethernet0/0/3]port default vlan 3
[Huawei-Ethernet0/0/3]int e0/0/4
[Huawei-Ethernet0/0/4]port link-type access
[Huawei-Ethernet0/0/4]port link-type access
[Huawei-Ethernet0/0/4]port default vlan 4
[Huawei-Ethernet0/0/4]quit
[Huawei]interface e0/0/1
[Huawei-Ethernet0/0/1]port link-type trunk
[Huawei-Ethernet0/0/1]
[Huawei-Ethernet0/0/1]port trunk allow-pass vlan all
The device is running!
<Huawei>sys
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sy
[Huawei]sysname r1
[r1]int
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]quit
[r1]int
[r1]interface g0/0/0.1
[r1-GigabitEthernet0/0/0.1]ip ad
[r1-GigabitEthernet0/0/0.1]ip address 12.1.1.1 24
[r1-GigabitEthernet0/0/0.1]dot1q termination vid 2
Nov 23 2022 15:26:00-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0.1 has entered the UP state.
[r1-GigabitEthernet0/0/0.1]quit
[r1]int
[r1]interface g0/0/0.2
[r1-GigabitEthernet0/0/0.2]ip ad
[r1-GigabitEthernet0/0/0.2]ip address 34.1.1.1 24
[r1-GigabitEthernet0/0/0.2]dot1q termination vid 3
Nov 23 2022 15:26:57-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/0.2 has entered the UP state.
[r1-GigabitEthernet0/0/0.2]quit
[r1]int
[r1]interface g0/0/0.3
[r1-GigabitEthernet0/0/0.3]ip ad
[r1-GigabitEthernet0/0/0.3]ip address 23.1.1.1 24
[r1-GigabitEthernet0/0/0.3]dot1q termination vid 4
[r1-GigabitEthernet0/0/0.3]
Nov 23 2022 15:28:15-08:00 r1 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
on the interface GigabitEthernet0/0/0.3 has entered the UP state.
[r1-GigabitEthernet0/0/0.3]quit
[r1]dh
[r1]dhcp en
[r1]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[r1]ip po
[r1]ip policy-based-route
[r1]ip pool 1
Info: It's successful to create an IP address pool.
[r1-ip-pool-1]ne
[r1-ip-pool-1]netbios-type
[r1-ip-pool-1]network 12.1.1.0 24 ma
[r1-ip-pool-1]network 12.1.1.0 24 mask 24
^
Error:Too many parameters found at '^' position.
[r1-ip-pool-1]net
[r1-ip-pool-1]netbios-type
[r1-ip-pool-1]network 12.1.1.0 mas
[r1-ip-pool-1]network 12.1.1.0 mask 24
[r1-ip-pool-1]get
[r1-ip-pool-1]getw
[r1-ip-pool-1]gat
[r1-ip-pool-1]gateway-list 12.1.1.1
[r1-ip-pool-1]dns
[r1-ip-pool-1]dns-list 8.8.8.8
[r1-ip-pool-1]quit
[r1]ip po