Switch interface mode hybrid application

Switch interface mode hybrid application

pvid: tag
untagged: remove the vlan tag from the data sent from the port by the sender of the port
tagged: pass the specified vlan tag data through the switch to unconditionally release a table

Hybrid labeling and labeling

实例vlan2 99 互通,vlan3 99互通
Insert picture description here
undo terminal monitor
sys
[Huawei]sysname sw1
[sw1]user-interface console 0
[sw1-ui-console0]idle-timeout 0 0
[sw1]vlan bat 2 3 99
[sw1]int e0/0/1
[sw1-Ethernet0/0/1]port hybrid pvid vlan 2
[sw1-Ethernet0/0/1]port hybrid untagged vlan 2 99
[sw1-Ethernet0/0/1]int e0/0/2
[sw1-Ethernet0/0/2]port hybrid pvid vlan 3
[sw1-Ethernet0/0/2]port hybrid untagged vlan 3 99
[sw1-Ethernet0/0/2]int e0/0/3
[sw1-Ethernet0/0/3]port hybrid pvid vlan 99
[sw1-Ethernet0/0/3]port hybrid untagged vlan 2 3 99
[sw1-Ethernet0/0/3]

hybrid whitelist

Example: The same vlan can communicate and each PC can access the server
Insert picture description here
undo terminal monitor
sys
[Huawei]sysname sw1
[sw1]user-interface console 0
[sw1-ui-console0]idle-timeout 0 0
[sw1-ui-console0] q
[sw1]vlan bat 10 20 100
[sw1]int e0/0/1
[sw1-Ethernet0/0/1]port hy pvid vlan 10
[sw1-Ethernet0/0/1]port hy untagged vlan 10 100
[sw1- Ethernet0/0/1]q
[sw1]int e0/0/2
[sw1-Ethernet0/0/2]port hy pvid vlan 20
[sw1-Ethernet0/0/2]port hy untagged vlan 20
[sw1-Ethernet0/0 /2]port hy untagged vlan 20 100
[sw1-Ethernet0/0/2]int e0/0/3
[sw1-GigabitEthernet0/0/1]port hy tagged vlan 10 20 100
[sw1-GigabitEthernet0/0/1]a
Explanation: port hy tagged vlan 10 20 100 put vlan10 20 100 into the whitelist for unconditional release and delivered to the switch sw2
hybrid is Huawei's unique hybrid mode, which can be connected to the switch or computer, and can also realize the communication
hybrid properties of different VLANs. The middle
tag is for the port recipient and the exporter to allow the port configuration to allow the tags to pass through is to allow these data with tags to pass the
untag to the port sender and the data sent from the port to remove the corresponding tag
pvid does not have the port recipient data The label is marked with the corresponding configuration label

Guess you like

Origin blog.csdn.net/weixin_53567573/article/details/111873501