[Huawei-Ethernet2/0/3]
port link-type access
[Huawei-Ethernet2/0/3]
quit
# Configure Ethernet 2/0/4 as an access interface.
<Huawei>
system-view
[Huawei]
interface ethernet 2/0/4
[Huawei-Ethernet2/0/4]
port link-type access
[Huawei-Ethernet2/0/4]
quit
Step 2
Configure VLAN 2.
# Create VLAN 2.
[Huawei]
vlan 2
# Add Ethernet 2/0/1 and Ethernet 2/0/2 to VLAN 2.
[Huawei-vlan2]
port ethernet 2/0/1 2/0/2
[Huawei-vlan2]
quit
Step 3
Configure VLAN 3.
# Create VLAN 3.
[Huawei]
vlan 3
# Add Ethernet 2/0/3 and Ethernet 2/0/4 to VLAN 3.
[Huawei-vlan3]
port ethernet 2/0/3 2/0/4
[Huawei-vlan3]
quit
Step 4
Configure VLAN 4.
# Configure the super-VLAN.
[Huawei]
vlan 4
[Huawei-vlan4]
aggregate-vlan
[Huawei-vlan4]
access-vlan 2 to 3
# Configure the VLANIF interface.
[Huawei]
interface vlanif 4
[Huawei-Vlanif4]
ip address 10.1.1.1 255.255.255.0
[Huawei-Vlanif4]
quit
Step 5
Configure the personal computers.
# Configure the IP address for each personal computer and ensure that they reside in the same
network segment as VLAN 4.
# After the preceding configuration is complete, the personal computers and the Router can ping
each other, but the computers in VLAN 2 and the computers in VLAN 3 cannot ping each other.
Step 6
Configure proxy ARP.
[Huawei]
interface vlanif 4
[Huawei-Vlanif4]
arp-proxy inter-sub-vlan-proxy enable
Step 7
Verify the configuration.
# After the preceding configuration is complete, the computers in VLAN 2 and the computers
in VLAN 3 can ping each other.
----End
Huawei AR530&AR550 Series Industrial Switch Routers
Configuration Guide - Ethernet Switching
3 VLAN Configuration
Issue 01 (2014-11-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
112