<Huawei>und ter mo
Info: Current terminal monitor is off.
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys
[Huawei]sysname LSW1
[LSW1]vlan bat
[LSW1]vlan batch 1020
Info: This operation may take a few seconds. Please waitfor a moment...done.
[LSW1]int Eth-Trunk 1[LSW1-Eth-Trunk1]trunkport GigabitEthernet 0/0/23 to 0/0/24
Info: This operation may take a few seconds. Please waitfor a moment...done.
[LSW1-Eth-Trunk1]port link-type trunk
[LSW1-Eth-Trunk1]port trunk allow-pass vlan 1020[LSW1-Eth-Trunk1]undo port trunk pvid vlan
[LSW1-Eth-Trunk1]load-balance src-dst-mac
[LSW1-Eth-Trunk1]q
[LSW1]int Eth-Trunk 2[LSW1-Eth-Trunk2]trunkport GigabitEthernet 0/0/21 to 0/0/22
Info: This operation may take a few seconds. Please waitfor a moment...done.
[LSW1-Eth-Trunk2]port link-type trunk
[LSW1-Eth-Trunk2]port trunk allow-pass vlan 1020[LSW1-Eth-Trunk2]undo port trunk pvid vlan
[LSW1-Eth-Trunk2]load-balance src-dst-mac
[LSW1-Eth-Trunk2]q
[LSW1]int vlanif 10[LSW1-Vlanif10]ip address 192.14.10.1 24[LSW1-Vlanif10]int vlanif 20[LSW1-Vlanif20]ip address 192.14.20.1 24[LSW1-Vlanif20]q
[LSW1]q
<LSW1>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip )[vrpcfg.zip]:
Now saving the current configuration to the slot 0.
Save the configuration successfully.
LWS2:
<Huawei><Huawei>undo terminal monitor
Info: Current terminal monitor is off.
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys LSW2
[LSW2]vlan batch 1020
Info: This operation may take a few seconds. Please waitfor a moment...done.
[LSW2]int Eth-Trunk 1[LSW2-Eth-Trunk1]trunkport GigabitEthernet 0/0/23 to 0/0/24
Info: This operation may take a few seconds. Please waitfor a moment...done.
[LSW2-Eth-Trunk1]port link-type trunk
[LSW2-Eth-Trunk1]port trunk allow-pass vlan 1020[LSW2-Eth-Trunk1]undo port trunk pvid vlan
[LSW2-Eth-Trunk1]load-balance src-dst-mac
[LSW2-Eth-Trunk1]q
[LSW2]int g0/0/1
[LSW2-GigabitEthernet0/0/1]port link-type access
[LSW2-GigabitEthernet0/0/1]port def vlan 10[LSW2-GigabitEthernet0/0/1]q
[LSW2]int g0/0/2
[LSW2-GigabitEthernet0/0/2]port link-type access
[LSW2-GigabitEthernet0/0/2]port def vlan 20[LSW2-GigabitEthernet0/0/2]q
[LSW2]q
<LSW2>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip )[vrpcfg.zip]:
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<LSW2> User interface con0 is available
LWS3:
The device is running!<Huawei>undo terminal monitor
Info: Current terminal monitor is off.
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys LSW3
[LSW3]vlan batch 1020
Info: This operation may take a few seconds. Please waitfor a moment...done.
[LSW3]int Eth-Trunk 2[LSW3-Eth-Trunk2]trunkport GigabitEthernet 0/0/21 to 0/0/22
Info: This operation may take a few seconds. Please waitfor a moment...done.
[LSW3-Eth-Trunk2]port link-type trunk
[LSW3-Eth-Trunk2]port trunk allow-pass vlan 1020[LSW3-Eth-Trunk2]undo port trunk pvid vlan
[LSW3-Eth-Trunk2]load-balance src-dst-mac
[LSW3-Eth-Trunk2]q
[LSW3]int g0/0/1
[LSW3-GigabitEthernet0/0/1]port link-type access
[LSW3-GigabitEthernet0/0/1]port def vlan 10[LSW3-GigabitEthernet0/0/1]q
[LSW3]int g0/0/2
[LSW3-GigabitEthernet0/0/2]port link-type access
[LSW3-GigabitEthernet0/0/2]port def vlan 20[LSW3-GigabitEthernet0/0/2]q
[LSW3]q
<LSW3>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip )[vrpcfg.zip]:
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<LSW3>