Vlan achieve different communication switcher

L Experimental requirements:
PC1 belonging VLAN10
PC2 belong vlan20
achieve interworking PC1 and pc2
lab topology:
Vlan achieve different communication switcher
l experiment:
 first implementation:
SW1:
VLAN 20 is 10 BATCH
interface the GigabitEthernet0 / 0 /. 1
Port-type Link Access
Port default VLAN 10
the GigabitEthernet0 interface / 0/2
Port Link-type Trunk
Port Trunk PVID VLAN 1 10 // default, in order to change the label 10
Port VLAN Trunk 2 to the allow-4094 Pass
SW2:
VLAN 20 is 10 BATCH
interface the GigabitEthernet0 / 0/1
Port Trunk-type Link
Port Trunk untagged PVID VLAN marked // 20 20 In order to be able to send VLAN20
Port VLAN Trunk Pass the allow-2 to 4094
interface the GigabitEthernet0 / 0/2
Port Link-type Trunk
Port Trunk untagged PVID VLAN marked // 10 to be able to send 10 vlan10
Pass the allow-VLAN Trunk Port 2 to 4094
SW3:
VLAN 20 is 10 BATCH
interface the GigabitEthernet0 / 0 /. 1
Port Link-type Trunk
Port Trunk PVID VLAN tag 20 is to go //
Port VLAN Trunk Pass the allow-2 to 4094
interface the GigabitEthernet0 / 0 / 2
Port-type link Access
Port 20 is default VLAN
results l:
Vlan achieve different communication switcher
l principle:
Access link
untagged pvid when receiving packets
to label contract
Trunk link
when the contract to the same label if pvid (default pvid = 1) can be modified , if the direct transmission does not change pvid different label
when the label is directly received packet if received, no forwarding tag to tag

 second implementation: link type to all Access
Sw1
interface the GigabitEthernet0 / 0 /. 1
Port-type Link Access
Port default VLAN 10
interface the GigabitEthernet0 / 0/2
Port-type Link Access
Port default VLAN 10
SW2
interface the GigabitEthernet0 / 0 /. 1
Port Link-type Access
Port default VLAN 20 is
interface the GigabitEthernet0 / 0/2
Port Link-type Access
Port default VLAN 20 is
SW3
interface the GigabitEthernet0 / 0 /. 1
Port Link-type Access
Port default VLAN 20 is
interface the GigabitEthernet0 / 0/2
Port Link Access -type
Port default VLAN 20 is
 third implementation: Hybrid type
Sw1
interface the GigabitEthernet0 / 0 /. 1
Port Hybrid PVID VLAN 10
Port Hybrid the untagged VLAN 10 20 is
interface the GigabitEthernet0 / 0/2
Port Hybrid Tagged VLAN 10 20 is
SW2
interface the GigabitEthernet0 / 0 /. 1
Port Hybrid Tagged VLAN 10 20 is
interface the GigabitEthernet0 / 0/2
Port Hybrid Tagged VLAN 10 20 is
SW3
interface the GigabitEthernet0 / 0 /. 1
Port VLAN Tagged Hybrid 20 is 10
interface the GigabitEthernet0 / 0/2
Port 20 is Hybrid PVID VLAN
Port Hybrid 20 is the untagged VLAN 10
experimental principle:
what kind of data is determined by the frame through the tag and untag

Guess you like

Origin blog.51cto.com/13415528/2425598