(Huawei) Special case in trunk pc1:access Pc2:trunk only one example to achieve interoperability

Source: Internet
Author: User


1. Experiment Name: Special case in trunk only this one!
2. Configuration environment: 2 pcs 2 switches
3. Configure IP Address: pc1:192.168.1.1/24 pc2:192.168.1.2/24
4. Connect PC1 switch port configure access mode; Connect PC2 switch port Configure trunk mode
5. Configure the command as follows:

<Huawei>system-view    [SW1]int Eth0/0/1     [SW1-Ethernet0/0/1]port link-type access      [SW1]interface Eth0/0/2    [SW1-Ethernet0/0/2]port link-type trunk     [SW1-Ethernet0/0/2]port trunk allow-pass vlan all <Huawei>system-view     [SW2]interface Eth0/0/2    [SW2-Ethernet0/0/2]port link-type trunk     [SW2-Ethernet0/0/2]port trunk allow-pass vlan all     下面配置连接PC2的端口:    [SW2-Ethernet0/0/1]port link-type trunk     [SW2-Ethernet0/0/1]port trunk allow-pass vlan all     验证、测试:

can also pass-ii.
Why is it? Try to change pvid.
In the switch SW2
[Sw2-ethernet0/0/1]undo Port trunk allow-pass VLAN All
[Sw2-ethernet0/0/1]port trunk Pvid VLAN 2
Test:

    • It's not through.

Cause: Because all ports on the switch belong to VLAN1 by default, when the packet that identifies PC1 is detected to be VLAN1, the default VLAN1 port is found directly in the MAC Address table, and the switch itself strips out the label to all the ports that belong to VLAN1. While the trunk is allowed by all VLANs through;

(Huawei) Special case in trunk pc1:access Pc2:trunk only one example to achieve interoperability

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.