Applicable Environment
You can use VLANs to isolate interfaces that process different services. For example, if interface
1 and interface 2 connect to broadband access users and interface 3 connects to users of video
services, you can add interface 1 and interface 2 to a VLAN and add interface 3 to another VLAN.
NOTE
Before changing the interface type, delete the VLAN configuration for the previous interface type to restore
the default VLAN configuration of the interface. That is, make the interface belong to only VLAN 1.
Pre-configuration Tasks
Before adding interfaces to a VLAN, complete the following task:
l
Creating a VLAN
Data Preparation
To add interfaces to a VLAN, you need the following data.
No.
Data
1
Types and numbers of the interfaces to be added to a VLAN
2
VLAN ID
3.4.2 Adding an Access Interface to a VLAN
Context
Use either of the following methods to add an access interface to a VLAN.
Procedure
l
Adding an access interface to a VLAN in the VLAN view
1.
Run:
system-view
The system view is displayed.
2.
Run:
interface
interface-type
interface-number
The interface view is displayed.
3.
Run:
port link-type access
The link type of the interface is set to access.
By default, the link type of an interface is hybrid.
4.
Run:
quit
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.
84