Hi User,
onfiguring VLAN is a prerequisite for configuring a service. Hence, before configuring a service, make sure that the VLAN configuration based on planning is complete.
Prerequisites
The VLAN to be added does not exist in the system.
Application Context
VLAN application is specific to user types. For details on the VLAN application, see Table 1-3.
Table 1-3 VLAN application and planningUser Type | Application Scenario | VLAN Planning |
|---|
| N:1 scenario, that is, the scenario of upstream transmission through a single VLAN, where the services of multiple subscribers are converged to the same VLAN. | VLAN type: smart VLAN attribute: common |
1:1 scenario, that is, the scenario of upstream transmission through double VLANs, where the outer VLAN tag identifies a service and the inner VLAN tag identifies a user. The service of each user is indicated by a unique S+C. | VLAN type: smart Attribute: stacking |
Commercial user of the transparent transmission service | Applicable only to the transparent transmission service of a commercial user. | VLAN type: smart VLAN attribute: QinQ |
Default Configuration
Table 1-4 lists the default parameter settings of VLAN.
Table 1-4 Default parameter settings of VLANParameter | Default Setting | Remarks |
|---|
Default VLAN of the system | VLAN ID: 1 Type: MUX VLAN | You can run the defaultvlan modify command to modify the VLAN type but cannot delete the VLAN. |
Reserved VLAN of the system | VLAN ID range: 4079-4093 | You can run the vlan reserve command to modify the VLAN reserved by the system. |
Default attribute of a new VLAN | Common | - |
Procedure
Create a VLAN.
Run the vlan to create a VLAN. VLANs of different types are applicable to different scenarios.
Table 1-5 VLAN types and application scenariosVLAN Type | Configuration Command | VLAN Description | Application Scenario |
|---|
Standard VLAN | To add a standard VLAN, run the vlan vlanid standard command. | Standard VLAN. Ethernet ports in a standard VLAN are interconnected with each other but Ethernet ports in different standard VLANs are isolated from each other. | Only available to Ethernet ports and specifically to network management and subtending. |
Smart VLAN | To add a smart VLAN, run the vlan vlanid smart command. | One smart VLAN may contain multiple xDSL service ports. The traffic streams of the service ports are isolated from each other and the traffic streams in different VLANs are isolated from each other. One smart VLAN provides access for multiple users and thus saves VLAN resources. | Smart VLANs are applied in residential communities to provide xDSL access. |
MUX VLAN | To add a MUX VLAN, run the vlan vlanid mux command. | One MUX VLAN contains only one xDSL service port. The traffic streams in different VLANs are isolated from each other. One-to-one mapping can be set up between a MUX VLAN and an access user. Hence, a MUX VLAN can identify an access user. | MUX VLANs are applicable to xDSL service access. For example, MUX VLANs can be used to distinguish users. |
Super VLAN | To add a super VLAN, run the vlan vlanid super command. | The super VLAN is based on layer 3. One super VLAN contains multiple sub-VLANs. Through an ARP proxy, the sub-VLANs in a super VLAN can be interconnected at layer 3. | Super VLANs can be used for the L3 intercommunication and are applicable to the scenario where saving IP addresses and improving the usage of IP addresses are required. For a super VLAN, sub-VLANs must be configured. You can run the supervlan command to add a sub-VLAN to a specified super VLAN. A sub-VLAN must be a smart VLAN or a MUX VLAN. |
NOTE:
To add VLANs with consecutive IDs in batches, run the vlan vlanid to end-vlanid command.
To add VLANs with inconsecutive IDs in batches, run the vlan vlan-list command.
(Optional) Configure the VLAN attribute.
The default attribute for a new VLAN is "common". You can run the vlan attrib command to configure the attribute of the VLAN.
Configure the attribute according to VLAN planning.
Table 1-6 VLAN attributes and application scenariosVLAN Attribute | Configuration Command | VLAN Type | VLAN Description | Application Scenario |
|---|
Common | The default attribute for a new VLAN is "common". | The VLAN with this attribute can be a standard VLAN, smart VLAN, MUX VLAN, or super VLAN. | A VLAN with the common attribute can function as a common layer 2 VLAN or function for creating a layer 3 interface. | Applicable to the N:1 access scenario. |
QinQ VLAN | To configure QinQ as the attribute of a VLAN, run the vlan attrib vlanid q-in-q command. | The VLAN with this attribute can only be a smart VLAN or MUX VLAN. The attribute of a sub VLAN, the VLAN with an L3 interface, and the default VLAN of the system cannot be set to QinQ VLAN. | The packets from a QinQ VLAN contain two VLAN tags, that is, inner VLAN tag from the private network and outer VLAN tag from the MA5600. Through the outer VLAN, an L2 VPN tunnel can be set up to transparently transmit the services between private networks. | Applicable to the enterprise private line scenario. |
VLAN Stacking | To configure stacking as the attribute of a VLAN, run the vlan attrib vlanid stacking command. | The VLAN with this attribute can only be a smart VLAN or MUX VLAN. The attribute of a sub VLAN, the VLAN with an L3 interface, and the default VLAN of the system cannot be set to VLAN Stacking. | The packets from a stacking VLAN contain two VLAN tags, that is, inner VLAN tag and outer VLAN tag from the MA5600. The upper-layer BRAS authenticates the access users according to the two VLAN tags. In this manner, the number of access users is increased. On the upper-layer network in the L2 working mode, a packet can be forwarded directly by the outer VLAN tag and MAC address mode to provide the wholesale service for ISPs. | Applicable to the 1:1 access scenario for the wholesale service or extension of VLAN IDs. In the case of a stacking VLAN, to configure the inner tag of the service port, run the stacking label command. |
NOTE:
To configure attributes for the VLANs with consecutive IDs in batches, run the vlan attrib vlanid to end-vlanid command.
To configure attributes for the VLANs with inconsecutive IDs in batches, run the vlan attrib vlan-list command.
(Optional) Configure VLAN description.
To configure VLAN description, run the vlan desc command. You can configure VLAN description to facilitate maintenance. The general VLAN description includes the usage and service information of the VLAN.
Example
Assume that a stacking VLAN with ID of 50 is to be configured for extension of the VLAN. A service port is added to VLAN 50. The outer VLAN tag 50 of the stacking VLAN identifies the access device and the inner VLAN tag 10 identifies the user with access to the device. For the VLAN, description needs to be configured for easy maintenance. To configure such a VLAN, do as follows:
huawei(config)#vlan 50 smarthuawei(config)#vlan attrib 50 stackinghuawei(config)#service-port vlan 50 adsl 0/2/0 vpi 0 vci 39 rx-cttr 2 tx-cttr 2huawei(config)#stacking label vlan 50 baselabel 10 huawei(config)#vlan desc 50 description stackingvlan/label10
https://support.huawei.com/enterprise/en/doc/EDOC1000038793?section=j004