Hybrid Advanced Application
Notes:
ACCESS interface inbound labeling, outbound label removal
Both the incoming and outgoing TRUNK interfaces are labeled. Unless special circumstances: the label of the data frame is the same as the PVID value of the trunk interface
Hybrid: to achieve flexible control of tags, you can add or delete tags
Experimental requirements:
PC1 and PC2 cannot communicate with each other, but both can communicate with PC3.
1. Build equipment
Create a topology diagram as shown, divide three vlan
2. Configuration of switch SW1:
[SW1] vlan batch 10 20 30 // Create three VLANs respectively VLAN 10 20 30
Info: This operation may take a few seconds. Please wait for a moment ... done.
[SW1] int g0 / 0/1 / / Enter the port of g0 /
0/1 [SW1-GigabitEthernet0 / 0/1] port hy
[SW1-GigabitEthernet0 / 0/1] port hybrid pvid vlan 10 Change the PVID to VLAN10
[SW1-GigabitEthernet0 / 0/1] port hy
[SW1-GigabitEthernet0 / 0/1] port hybrid un
[SW1-GigabitEthernet0 / 0/1] When port hybrid untagged vlan 10 outgoing interface, remove the VLAN10 tag
[SW1-GigabitEthernet0 / 0/1] int g0 / 0 / 2 // Enter the interface to g0 /
0/2 [ SW1-GigabitEthernet0 / 0/2] port hy
[SW1-GigabitEthernet0 / 0/2] port hybrid pvid vlan 20 Change the PVID to VLAN20
[SW1-GigabitEthernet0 / 0/2] port hy
[SW1-GigabitEthernet0 / 0/2] port hybrid un
[SW1-GigabitEthernet0 / 0/2] When port hybrid untagged vlan 20 is outgoing interface, remove the VLAN20 tag
[SW1- the GigabitEthernet0 / 0/2] int G0 / 0/10
[SWl-the GigabitEthernet0 / 0/10] Port HY
[SWl-the GigabitEthernet0 / 0/10] Port Hybrid TA
[SWl-the GigabitEthernet0 / 0/10] Port Hybrid Tagged VLAN All allows All VLANs in the trunk port pass
[SW1-GigabitEthernet0 / 0/10] int g0 /
0/1 [SW1-GigabitEthernet0 / 0/1] port hy
[SW1-GigabitEthernet0 / 0/1] port hybrid un
[SW1-GigabitEthernet0 / 0 / 1] When port out of untagged vlan 30 , remove VLAN 30 tag
[SW1-GigabitEthernet0 / 0/1] int g0 /
0/2 [SW1-GigabitEthernet0 / 0/2] port hy
[SW1-GigabitEthernet0 / 0/2] port hybrid un
[SW1-GigabitEthernet0 / 0/2] When port hybrid untagged vlan 30 outgoing interface, remove the VLAN 30 tag
[SW1-GigabitEthernet0 / 0/2]
2. Configuration of switch SW1:
[SW2] vlan batch 10 20 30 // Create three VLANs respectively VLAN 10 20 30
Info: This operation may take a few seconds. Please wait for a moment ... done.
[SW2] int g0 / 0/3
[ SW2-GigabitEthernet0 / 0/3] port hy
[SW2-GigabitEthernet0 / 0/3] port hybrid pvid vlan 30 change PVID to VLAN30 [SW2-GigabitEthernet0 / 0/3] port hy [SW2-GigabitEthernet0 / 0/3] port hybrid un [SW2-GigabitEthernet0 / 0/3] When port hybrid untagged vlan 30 outgoing interface, remove the tag of VLAN 30 [SW2-GigabitEthernet0 / 0/3] int g0 / 0/10 // enter to f0 / 0/10 Interface [SW2-GigabitEthernet0 / 0/10] port hy [SW2-GigabitEthernet0 / 0/10 ] port hybrid ta [SW2-GigabitEthernet0 / 0/10] port hybrid tagged vlan all allows all VLANs in the trunk port to pass
[SW2-GigabitEthernet0 / 0/10] int g0 /
0/3 [SW2-GigabitEthernet0 / 0/3] port hy
[SW2-GigabitEthernet0 / 0/3] port hybrid un
[SW2-GigabitEthernet0 / 0/3] port hybrid untagged When the outgoing interface of vlan 10 20 , remove the label of VLAN 10 20
[SW2-GigabitEthernet0 / 0/3]
<SW2>
interoperability:
P1 and P3 pass
P1 and P2 fail: