Experiment: Huawei mux vlan configuration and management, Huawei mux

Source: Internet
Author: User

Experiment: Huawei mux vlan configuration and management, Huawei mux

The following experiment is an experimental video teaching course designed by the author for "Huawei switch Learning Guide". Click here to view details: http://edu.51cto.com/course/course_id-2091.html

Huawei's mux vlan function enables different VLANs located in the same IP network segment.(All slave and master VLANs)Users can achieve layer-2 isolation between different slave VLANs, as well as layer-2 isolation between users in the same VLAN on the same switch. users in the same VLAN on different switches are not isolated.This technology can be used to isolate different user hosts in the same VLAN while sharing user servers in multiple VLANs..

The following is a specific experiment solution.


Lab environment: PC1 ~ 6. The Server and the Server are both in the same IP segment and are divided into the corresponding master or corresponding types of VLAN as shown in the figure.

Lab requirements: each slave VLAN host can directly access the Server, but each slave VLAN cannot directly access each other, and PC2 and PC3 in VLAN20 cannot communicate with each other, however, both of them can communicate with the PC4 of the same VLAN20.

Experiment Configuration:

• SW1 Configuration

<Huawei> sys

[Huawei] sysname SW1

[SW1] vlanbatch 10 2030 40

[SW1] vlan40

[SW1-VLAN40] mux-vlan

[SW1-VLAN40] subordinategroup10 30

[SW1-VLAN40] subordinateseparate20

[SW1-VLAN40] quit

[SW1] interface GigabitEthernet0/0/1

[SW1-GigabitEthernet0/0/1] port link-typetrunk

[SW1-GigabitEthernet0/0/1] porttrunk allow-pass vlan 10 2030 40

[SW1-GigabitEthernet0/0/1] quit

[SW1] interface GigabitEthernet0/0/2

[SW1-GigabitEthernet0/0/2] port link-typetrunk

[SW1-GigabitEthernet0/0/2] port trunkallow-pass vlan 10 2030 40

[SW1-GigabitEthernet0/0/2] quit

[SW1] interface GigabitEthernet0/0/3

[SW1-GigabitEthernet0/0/3] port link-typeaccess

[SW1-GigabitEthernet0/0/3] portdefault vlan 40

[SW1-GigabitEthernet0/0/3] port mux-vlanenable

[SW1-GigabitEthernet0/0/3] quit

• SW2 Configuration

<Huawei> sys

[Huawei] sysname SW2

[SW2] vlanbatch 10 20 30 40

[SW2] vlan 40

[SW2-VLAN40] mux-vlan

[SW2-VLAN40] subordinate group 10 30

[SW2-VLAN40] subordinate separate 20

[SW2-VLAN40] quit

[SW2] interface Ethernet0/0/1

[SW2-Ethernet0/0/1] port link-type trunk

[SW2-Ethernet0/0/1] port trunk allow-pass vlan 10 20 30 40

[SW2-Ethernet0/0/1] quit

[SW2] interface Ethernet0/0/2

[SW2-Ethernet0/0/2] port link-type access

[SW2-Ethernet0/0/2] port default vlan 10

[SW2-Ethernet0/0/2] port mux-vlanenable

[SW2-Ethernet0/0/2] quit

[SW2] interface Ethernet0/0/3

• SW3 Configuration

<Huawei> sys

[Huawei] sysname SW3

[SW3] vlanbatch 10 20 40

[SW3] vlan 40

[SW3-VLAN40] mux-vlan

[SW3-VLAN40] subordinate group 10

[SW3-VLAN40] subordinate separate 20

[SW3-VLAN40] quit

[SW3] interface Ethernet0/0/1

[SW3-Ethernet0/0/1] port link-type trunk

[SW3-Ethernet0/0/1] port trunk allow-pass vlan10 20 40

[SW3-Ethernet0/0/1] quit

[SW3] interface Ethernet0/0/2

[SW3-Ethernet0/0/2] port link-type access

[SW3-Ethernet0/0/2] port default vlan 10

[SW3-Ethernet0/0/2] port mux-vlanenable

[SW3-Ethernet0/0/2] quit

[SW3] interface Ethernet0/0/3

[SW3-Ethernet0/0/3]Port link-type access

[SW3-Ethernet0/0/3]Port defaultVlan20

[SW3-Ethernet0/0/3]Port mux-VlanEnable

[SW3-GigabitEthernet0/0/3]Quit


Verify the experiment results:

UseDisplay mux-VlanCommand to view mux vlan configuration information


Each PC in the VLAN can ping the Server in the active VLAN.



Different from VLAN cannot be pinged


Hosts in the same isolated VLAN on the same vswitch cannot be pinged.


Hosts in the same isolated VLAN on different vswitches can still be pinged.




VLAN configuration for Huawei 5700 vswitches

Vlan batch 2 10 20 30
#
Vlan 30
Mux-vlan
Subordinate group 20

Int vlan 2
Ip add 192.168.100.1 24
QUIT
Int vlan 10
IP add 192.168.1.1 24
Quit
Int vlan 20
Ip add 192.168.2.1 24
Quit
Int vlan 30
Ip add 192.168.3.1 24
#
Interface Ethernet0/0/1
Port link-type access
Port default vlan 10
Port mux-vlan enable
#
Interface Ethernet0/0/2
Port link-type access
Port default vlan 10
Port mux-vlan enable
#
Interface Ethernet0/0/9
Port link-type access
Port default vlan 20
Port mux-vlan enable
#
Interface Ethernet0/0/12
Port link-type access
Port default vlan 20
Port mux-vlan enable
#
Interface Ethernet0/0/13
Port link-type access
Port default vlan 30
Port mux-vlan enable
 
For Huawei switches to divide VLANs, I need four VLANs, and three of them cannot communicate with data. One Management vlan needs to be configured.

Vlan 2 to 5
Int vlan 2
Ip add 192.168.1.1 24
Qui
Aaa
Loc huawei pa s huawei
Loc huawei le 3
Loc huawei se tel
Then pass through the 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.