Packet Analysis 3
I. Tutorial Purpose
SW1's G0/1 G0/2 interfaces are all hybrid ports. G0/1 belongs to VLAN 2, while G0/2 belongs to VLAN 3. What configurations do you need to add to connect two PCs?
Ii. Experiment Topology
650) This. width = 650; "src =" http://home.51cto.com/thumb.php? W = 600 & H = 600 & t = F & url = http://s3.51cto.com/wyfs02/M02/4D/22/wKioL1RMgoqCHl7zAAC0TaysHnE901.jpg "width =" 454 "Height =" 305 "alt =" wkiol1rmgoqchl7zaac0w.shne901.jpg "/>
Analysis
PC1 sends a packet. the destination address is PC2, And the G0/1 interface of SW1 is the hybrid port. It tags the pC1 packet with VLAN 2 and receives the packet. G0/2 belongs to VLAN 3, all pC1 and PC2 cannot communicate with each other. Now, add a configuration in the G0/1 interface of SW1, allowing VLAN 3 to pass through without tags, add a packet that allows VLAN 2 to pass the test without a tag.
PC1 sends a data packet with the target address PC2 and SW1's G0/1 interface as the hybrid port, and receives the data packet with the label of VLAN 2, the G0/2 interface allows packets of VLAN 2 to pass through without tags. Therefore, packets of pC1 are sent without tags on the G0/2 interface of sw2, and PC2 receives
Back package:
PC2 replies to a data packet. the destination address is pC1, and SW1's G0/2 interface is the hybrid port, which is tagged with VLAN 3 for receiving data packets, the G0/1 interface allows packets of VLAN 3 to pass through without tags. Therefore, packets of Pc2 are sent without tags on the G0/1 interface of sw2, and pC1 receives
Therefore, pC1 can communicate with pc2.
Packet Analysis 3