Switch VLAN basic configuration

1. Purpose of the experiment

  (1) Master the basic configuration of switches and routers.

  (2) Master the basic configuration of VLAN.

2. Experimental environment

(1) A group of 4 people, each group has 4 PCs running Windows 2008 Server/Windows XP/Windows 7/Windows 10 operating system, installed with PacketTracer version 5.2.1 provided by CISCO.

(2) One set of Layer 2 and Layer 3 switches for each group, 2 configuration lines and several twisted pairs.

(3) Just use the PacketTracer simulator.

3. Experimental steps

(1) Vlan division of a single switch

① Realize the topology map. Connect PC0, PC1, and ports 1 and 2 of Switch0 with straight-through cables.

②Set the IP address of PC0 to 192.168.1.10, and the IP address of PC1 to 192.168.1.20.

③Create 2 VLANs and view the information of the VLANs created.

 ④ Put ports F0/1 and F0/2 into VLAN 10 and VLAN 20 respectively

⑤Display VLAN configuration

 (2) Cross-switch Vlan division configuration

① Realize the topology map. Connect PC0, PC1 to port 5 and port 15 of SwitchA with a straight-through cable, and connect PC2 to port 5 of SwitchB with a straight-through cable. Connect the No. 24 ports of the two switches with a crossover cable. The topology diagram is as follows:

 ② and (1) are similar to configure the IP address of PC0 as 192.168.1.10, the IP address of PC1 as 192.168.1.20, and the IP address of PC2 as 192.168.1.30.

 ③ Establish 2 VLANs on (SwitchA): VLAN 10 and VLAN 20, and put ports 0/5 and 0/15 into VLAN 10 and VLAN 20 respectively.

 ④ Make the 0/24 interface connecting SwitchA and SwitchB into trunk mode, and show the VLAN configuration and trunk configuration after this configuration.

 

 

 ⑤ Create VLAN 10 on Switch B, and put port 0/5 into VLAN 10.

 ⑥Make the 0/24 interface connecting SwitchA and SwitchB into trunk mode, and show the VLAN configuration and trunk configuration after this configuration.

 4. Experimental results

(1) Verification of the results after the Vlan division of a single switch

Before dividing the VLAN, PC0 and PC1 conduct a ping test. As shown in the figure below, it can be seen that the two hosts can be connected.

 After the VLAN is divided, PC0 and PC1 conduct a ping test. As shown in the figure below, it can be seen that the two hosts cannot be connected. From this, it can be seen that PCs belonging to different VLANs cannot communicate directly.

(2) Verification of the results after the cross-switch Vlan division configuration

As shown in the figure below, after VLANs are divided across switches, PC0 and PC2 belong to the same VLAN (VLAN10) and can communicate directly. But PC0 or PC2 and PC1 belong to different VLANs and cannot communicate directly

 

 

 

 

Guess you like

Origin blog.csdn.net/weixin_44059619/article/details/129791564