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.
2, organic icon to open the tab to rename and replace the device icon.
3, the device icon is replaced with a switch icon, the name changed to R1 SW1, R2 name replaced SW2.
4, right click and select to enter the configuration options.
5, in the settings first set of disk space.
6, continue to set the type of business card.
7, four hosts drag into the workspace of FIG.
8, using the cable to connect the PC to the switch.
9, connected to the topology of Fig.
10, click to see all open devices.
11, VLAN planning about the scope of the PC and the IP address.
12, switches SW1 and SW2 double-click the icon to open the tab.
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.
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.
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.
16, the same into f1 / 1 port access link set vlan20.
17, input do (blank) show (space) vlan-sw (space) b cross-vlan mode to view the information.
18, according to the above steps to continue to set the switch SW2.
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.
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.
21, based on the same set of SW2 vlan ID.
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.
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.
24, open the packet capture function on the trunk look.
25, can be seen vlan logo appears on the link.
26, the same access link to capture PC3 contrast, found missing front teeth vlan identifier over an access link.
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.
Cross-VLAN communication link via Trunk
Guess you like
Origin blog.51cto.com/14449521/2427803
Recommended
Ranking