PVLAN configuration instructions for Huawei 3COM vswitches

Source: Internet
Author: User
1. The introduction of PVLAN has such a requirement in practical applications. The networking diagram is shown in. 3026 cascade 2016 and require that each port under 2016 be isolated from each other, that is, each port is divided into a VLAN. At the same time, due to the limited number of VLANs of the Upper-layer device (3026, the underlying device (2016) is not allowed to pass through the VLAN.

1. The introduction of PVLAN has such a requirement in practical applications. The networking diagram is shown in. 3026 cascade 2016 and require that each port under 2016 be isolated from each other, that is, each port is divided into a VLAN. At the same time, due to the limited number of VLANs of the Upper-layer device (3026, the underlying device (2016) is not allowed to pass through the VLAN.

1.

Introduction of PVLAN






There is such a requirement in practical applications, as shown in the networking diagram.

3026 cascade 2016 and require that each port under 2016 be isolated from each other, that is, each port is divided into a VLAN. At the same time, due to the limited number of VLANs of the Upper-layer device (3026, the underlying device (2016) is not allowed to pass through the VLAN, that is, the upstream port of 2016 must be set to access. However, an access port on port 2016 cannot belong to multiple VLANs. How can we send data packets with different VLAN IDs to the same access port?

At this time, we need Use2016 PVLAN function. Pass UseBy using the PVLAN function, we can route all ports under 2016 to different VLANs and send them through the upstream Access port.

Currently, Huawei2008/2016/3026 developed by 3Com all support the PVLAN function.

2.

PVLANConfigurationProcedure


ConfigurationThe procedure of PVLAN is as follows:

1. Create a VLAN,

The command is as follows:

[2016] vlan-id

2. Set the VLAN type to primary.

The command is as follows:

[2016-vlan100] isolate-user-vlan enable

3. Add a port to a VLAN (both the primary vlan and the secondary vlan are the same)

The command is as follows:

[2016-vlan100] port ethernet port-list

4. Set the ing between the primary vlan and the secondary vlan.

The command is as follows:

[2, 2016] isolate-user-vlan primary_vlan_num secondary secondary_vlan_list

3.

PVLANConfigurationExample


1. Networking requirements

Quidway S3526 Ethernet VswitchConnect two Quidway S2008 Ethernet servers through ports Ethernet 0/7 and Ethernet 0/8 Vswitch. VLAN5 on S2008 A is the primary VLAN, which includes the uplink port Ethernet 0/9 and two secondary VLANs: VLAN1 and VLAN2. VLAN1 includes the port Ethernet 0/1 and VLAN2 includes the port Ethernet 0/2; VLAN6 on S2008 B is the primary VLAN, which includes the uplink port Ethernet 0/9 and two secondary VLANs: VLAN3 and VLAN4. VLAN3 includes the port Ethernet 0/3 and VLAN4 includes the port Ethernet 0/4. From the S3526 perspective, each of the following S2008 has only one VLAN, S2008 A's VLAN5, and S2008 B's VLAN6.

2. Networking Diagram



PVLAN ConfigurationNetworking Diagram

3, ConfigurationProcedure

Only the S2008 ConfigurationProcess.

ConfigurationS2008

! ConfigurationPrimary vlan.

[S2008A] vlan 5

[S2008A-vlan5] isolate-user-vlan enable

[S2008A-vlan5] port ethernet0/9

! ConfigurationSecondary VLAN.

[S2008A] vlan 1

[S2008A-vlan1] port ethernet0/1

[S2008A] vlan 2

[S2008A-vlan2] port ethernet0/2

! ConfigurationIng between primary VLAN and secondary VLAN

[S2008A] isolate-user-vlan primary 5 secondary 1-2

ConfigurationS2008 B.

! ConfigurationPrimary vlan.

[S2008B] vlan 6

[S2008B-vlan6] isolate-user-vlan enable

[S2008B-vlan6] port ethernet0/9

! ConfigurationSecondary VLAN.

[S2008B] vlan 3

[S2008B-vlan3] port ethernet0/3

[S2008B] vlan 4

[S2008B-vlan4] switchport ethernet0/4

! ConfigurationIng between primary VLAN and secondary VLAN

[S2008B] isolate-user-vlan primary 6 secondary 3-4

4.

PVLANUseNotes


1. Currently Huawei3Com: S3026V100R002B01D009, 2403FV200R003B01D003 (S2008/S2016) and other versions support one Ethernet VswitchOnly one primary vlan is allowed. multiple ports can be specified for the primary vlan. One secondry VLAN can only contain one port. S3026V100R002B01D013, 2403FV200R003B01D006 (S2008/S2016) and other versions support one port. VswitchThere can be multiple primary VLANs, and one secondry vlan can also contain multiple ports.

2. Before executing the priing command between the primary vlan and the secondary vlan, the primary vlan and the secondary vlan must already contain ports, execute this command to complete the ing between the primary VLAN and the secondary VLAN. Specific operations include adding the uplink ports in the primary VLAN to each secondary VLAN, add the ports in the secondary VLAN to the primary VLAN.

3. Before establishing a ing relationship: when you set the priing relationship between the primary VLAN and the secondary VLAN in the PVLAN, the specified VLAN cannot be a VLAN that does not contain any port. After establishing a VLAN ing relationship, you cannot add or delete ports to or from the primary VLAN or the secondary vlan. It can only be executed after the ing is removed.

4. All ports in the primary vlan are not 802.1Q trunk ports, including VswitchUplink port. The PVID of each port is the ID of the secondary vlan to which it belongs. The PVID of the uplink port is the ID of the primary vlan.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.