# Configure Ethernet 2/0/1 as an access interface.
<Huawei>
system-view
[Huawei]
interface ethernet 2/0/1
[Huawei-Ethernet2/0/1]
port link-type access
[Huawei-Ethernet2/0/1]
quit
# Configure Ethernet 2/0/2 as an access interface.
<Huawei>
system-view
[Huawei]
interface ethernet 2/0/2
[Huawei-Ethernet2/0/2]
port link-type access
[Huawei-Ethernet2/0/2]
quit
# Configure Ethernet 2/0/3 as an access interface.
<Huawei>
system-view
[Huawei]
interface ethernet 2/0/3
[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 100.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.
Huawei AR3200 Series Enterprise Routers
Configuration Guide - LAN
3 VLAN Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
110