Cross-VLAN communication link via Trunk

Experiment Environment: GNS3-1.3.10 Wireshark-win64-1.12.4
Purpose: cross-VLAN communications link via Trunk.
1. Open GNS3, dragging two routers into the work area.
Cross-VLAN communication link via Trunk
2, organic icon to open the tab to rename and replace the device icon.
Cross-VLAN communication link via Trunk
3, the device icon is replaced with a switch icon, the name changed to R1 SW1, R2 name replaced SW2.
Cross-VLAN communication link via Trunk
4, right click and select to enter the configuration options.
Cross-VLAN communication link via Trunk
5, in the settings first set of disk space.
Cross-VLAN communication link via Trunk
6, continue to set the type of business card.
Cross-VLAN communication link via Trunk
7, four hosts drag into the workspace of FIG.
Cross-VLAN communication link via Trunk
8, using the cable to connect the PC to the switch.
Cross-VLAN communication link via Trunk
9, connected to the topology of Fig.
Cross-VLAN communication link via Trunk
10, click to see all open devices.
Cross-VLAN communication link via Trunk
11, VLAN planning about the scope of the PC and the IP address.
Cross-VLAN communication link via Trunk
12, switches SW1 and SW2 double-click the icon to open the tab.
Cross-VLAN communication link via Trunk
13, first enters the global mode in the conf SW1 is input option card (space) T, and enter no (space) IP (space) routing (ENTER) routing function off.
Cross-VLAN communication link via Trunk
14, enter the vlan (space) 10, 20 (Enter) to create a vlan, and then enter the exit (Enter) return to global mode, and then input do (blank) show (space) vlan-switch (space) brief (carriage return) to view xlan information.
Cross-VLAN communication link via Trunk
15, input int (space) f1 / 0 (Enter) into an open mode, and enter switch (space) MODE (spaces) access (Enter) into the access link, an input switch (space) access (spaces) VLAN (space) 10 (ENTER) the link is set to vlan10.
Cross-VLAN communication link via Trunk
16, the same into f1 / 1 port access link set vlan20.
Cross-VLAN communication link via Trunk
17, input do (blank) show (space) vlan-sw (space) b cross-vlan mode to view the information.
Cross-VLAN communication link via Trunk
18, according to the above steps to continue to set the switch SW2.
Cross-VLAN communication link via Trunk
19, and then back to the input of SW1 tab int (space) f1 / 2 into the port mode, and enter sw (space) NO (spaces) trunk to f1 / 2 port of the trunk link link set.
Cross-VLAN communication link via Trunk
20 to continue setting vlan identifier trunk link, the input switchport (space) trunk (space) encapsulation (space) set dot1q vlan 802.1q package identification, and inputs (space) Show (space) int (space) port No. (space) switchport view port identification information.
Cross-VLAN communication link via Trunk
21, based on the same set of SW2 vlan ID.
Cross-VLAN communication link via Trunk
22, double-click to open the PC using the tab, and enter the ip (space) IP address (space) one by one to set the IP address subnet mask for each one.
Cross-VLAN communication link via Trunk
Cross-VLAN communication link via Trunk
Cross-VLAN communication link via Trunk
Cross-VLAN communication link via Trunk
23, the PC1 input option card in the same ip address vlan discovery of PC3 get feedback, however, try to connect PC2 and PC4 lack nothing in response.
Cross-VLAN communication link via Trunk
24, open the packet capture function on the trunk look.
Cross-VLAN communication link via Trunk
25, can be seen vlan logo appears on the link.
Cross-VLAN communication link via Trunk
26, the same access link to capture PC3 contrast, found missing front teeth vlan identifier over an access link.
Cross-VLAN communication link via Trunk
So you want to transfer data on the trunk will need to play vlan identified by the switch. The access link is not visible vlan identity, because identity through vlan switch is off, or else is not recognized by the computer.

Guess you like

Origin blog.51cto.com/14449521/2427803