Huawei tagged and untagged configuration experiment
Secret not to be told: the default bridging port in Huawei products is labeled with vlan and the secret of not playing.
Import inspection: check for labels
(1) if there is a label, check the tag table; if it is open,
(2) No tag. After tagging with PVID, let it go.
Export inspection: check the untag table first
(1) to have or lose the bid.
(2) if there is no standard, check the tag table, open it if you have it, and discard it if you don't.
I. configuration experiment
II. Configuration process
1. Configure LSW3
Vlan batch 10 20int e 0/0/1port link-type accessport default vlan 10int e 0/0/2port link-type accessport default vlan 20int g 0/0/1port link-type trunkport trunk allow-pass vlan 10 20undo shutdown
2. Configure LSW4
Vlan batch 10 20int e 0/0/1port link-type accessport default vlan 10int e 0/0/2port link-type accessport default vlan 20int g 0/0/2port link-type trunkport trunk allow-pass vlan 10 20undo shutdown
3. If you want to interconnect pc7 and pc8 (two hosts on the same network segment in two different Vlan domains), initialize the ports 001 and 002 and become the default Huawei hybrid port.
Undo port default vlanport link-type hubrid
4. Configure the untagged table in 001 and 002 and label it with PVID.
Int e0/0/1port hybrid pvid vlan 10port hybrid untagged vlan 10 20un shint e0/0/2port hybrid pvid vlan 20port hybrid untagged vlan 10 20un sh
5. In other words, two hosts in the same network segment in two different VLAN domains of pc7 and pc8 can be interconnected.
6. Repeat the above procedures 3 and 4 on LSW3 to change the IP of four hosts to the same network segment. The interconnection of four PCs can be realized.