SW1:
<Huawei>un t m
Info: Current terminal monitor is off.
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname SW1
[SW1]user-interface console 0
[SW1-ui-console0]idle-timeout 0 0
[SW1-ui-console0]qu
[SW1]vlan bat 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1]int Eth-Trunk 1
[SW1-Eth-Trunk1]port link-type trunk
[SW1-Eth-Trunk1]port trunk allow-pass vlan all
[SW1-Eth-Trunk1]qu
[SW1]int e0/0/20
[SW1-Ethernet0/0/20]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Ethernet0/0/20]int e0/0/21
[SW1-Ethernet0/0/21]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Ethernet0/0/21]int e0/0/22
[SW1-Ethernet0/0/22]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Ethernet0/0/22]int e0/0/1
[SW1-Ethernet0/0/1]port hybrid pvid vlan 10
[SW1-Ethernet0/0/1]port hybrid untagged vlan 10
[SW1-Ethernet0/0/1]int e0/0/2
[SW1-Ethernet0/0/2]port hybrid pvid vlan 20
[SW1-Ethernet0/0/2]port hybrid untagged vlan 20
[SW1-Ethernet0/0/2]
SW2:
<Huawei>
<Huawei>un t m
Info: Current terminal monitor is off.
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname SW2
[SW2]user-interface console 0
[SW2-ui-console0]idle-timeout 0 0
[SW2-ui-console0]qu
[SW2]vlan bat 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2]int Eth-Trunk 1
[SW2-Eth-Trunk1]port link-type trunk
[SW2-Eth-Trunk1]port trunk allow-pass vlan all
[SW2-Eth-Trunk1]int e0/0/20
[SW2-Ethernet0/0/20]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Ethernet0/0/20]int e0/0/21
[SW2-Ethernet0/0/21]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Ethernet0/0/21]int e0/0/22
[SW2-Ethernet0/0/22]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Ethernet0/0/22]qu
[SW2]int e0/0/1
[SW2-Ethernet0/0/1]port hybrid pvid vlan 10
[SW2-Ethernet0/0/1]port hybrid untagged vlan 10
[SW2-Ethernet0/0/1]qu
[SW2]int e0/0/2
[SW2-Ethernet0/0/2]port hybrid pvid vlan 20
[SW2-Ethernet0/0/2]port hybrid untagged vlan 20
[SW2-Ethernet0/0/2]