3.3 understand the application of hybrid interface


Principle overview

The hybrid interface is very flexible. It allows multiple VLANs to pass through, and can strip off some VLAN tags in the direction of the outbound interface.

The access interface can only belong to one vlan, and can only receive and forward the frames of the corresponding vlan.
The trunk can allow all VLANs to pass.
Hybrid is very flexible between the two

The working principle
of the hybrid interface :
For receiving, if the hybrid interface receives a frame without a tag, the default pvid is added. If the vlan id is received in the list of allowed vlans, it will be discarded if it is not available. If the received vlan frame is tagged, it will be checked whether the vlan id is in the list of allowed vlans and it is being received. No longer discarded.

For sending: it will check whether the vlan id is in the vlan list that is allowed to pass, and it can be sent. The switch is determining whether the attribute of the vlan id on this interface is untagged or tagged.


1. Experiment purpose and addressing

Understand the application scenario of hybrid interface and understand the principle of communication

An enterprise uses two s3700 switches on different floors. 3 vlan rules.
Realize the communication with vlan vlan. vlan 30 can access any department. Use hybrid

Insert picture description here

2. Experimental topology

Insert picture description here

2. Experimental content

Configure duplex mode

1. Configure ip address for ping test

Success, the default interface mode is hybrid pvid is vlan1, so the data frames sent and received are all untagged data frames, and continue to send frames without tags to other interfaces that are vlan 1.

1. Mark the interface of the switch connected to the pc with the default pvid

s1 s2
进入到连接pc的接口
port link-type hybrid
port hybrid pvid vlan n

For pc and pc 2 in vlan 20

port hybrid untagged vlan 20 30 

For p3 and pc 4 in vlan 10

port hybrid untagged vlan 10  30 

For vlan 30

port hybrid untagged vlan 10 20  30 

Interactively set the interconnected interfaces to be tagged to send to implement filtering rules

port hybrid vlan tagged vlan 10 20 30 

Summary and reflection

After deletion, the default is vlan1, which can realize communication

Guess you like

Origin blog.csdn.net/weixin_45821358/article/details/115019776