<Huawei>sys
[Huawei]sysname SW1
[SW1]vlan batch 10203040
Info: This operation may take a few seconds. Please wait for a moment...done.[SW1]int vlanif10
[SW1-Vlanif10]ip add 192.168.10.124[SW1-Vlanif10]int vlanif20
[SW1-Vlanif20]ip add 192.168.20.124[SW1-Vlanif20]int vlanif30
[SW1-Vlanif30]ip add 192.168.30.124[SW1-Vlanif30]int vlanif40
[SW1-Vlanif40]ip add 11.0.0.224[SW1-Vlanif40]q
[SW1]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interfacethat is UP in Physical is 2
The number of interfacethat is DOWN in Physical is 5
The number of interfacethat is UP in Protocol is 1
The number of interfacethat is DOWN in Protocol is 6
Interface IP Address/Mask Physical Protocol
MEth0/0/1 unassigned down down
NULL0 unassigned up up(s)
Vlanif1 unassigned up down
Vlanif10 192.168.10.1/24 down down
Vlanif20 192.168.20.1/24 down down
Vlanif30 192.168.30.1/24 down down
Vlanif40 11.0.0.2/24 down down
[SW1]int g0/0/1[SW1-GigabitEthernet0/0/1]port link-type access
[SW1-GigabitEthernet0/0/1]port default vlan 10[SW1-GigabitEthernet0/0/1]int g0/0/2[SW1-GigabitEthernet0/0/2]port link-type access
[SW1-GigabitEthernet0/0/2]port default vlan 20[SW1-GigabitEthernet0/0/2]int g0/0/3[SW1-GigabitEthernet0/0/3]port link-type access
[SW1-GigabitEthernet0/0/3]port default vlan 30[SW1-GigabitEthernet0/0/3]int g0/0/4[SW1-GigabitEthernet0/0/4]port link-type access
[SW1-GigabitEthernet0/0/4]port default vlan 20[SW1-GigabitEthernet0/0/4]int g0/0/5[SW1-GigabitEthernet0/0/5]port link-type access
[SW1-GigabitEthernet0/0/5]port default vlan 40[SW1-GigabitEthernet0/0/5]dis vlan
The total number of vlans is :5--------------------------------------------------------------------------------
U: Up; D: Down; TG: Tagged
Demo1:静态NAT地址转换eNSP中拓扑:SW1:<Huawei>sys [Huawei]sysname SW1[SW1]vlan batch 10 20 30 40Info: This operation may take a few seconds. Please wait for a moment...done.[SW1]int vlanif10[SW1-V...