- lab environment:
- OS : Windows7
- CPU:AMD Ryzen 3700U
1. The purpose of the experiment
- Master the use of Cisco Simulator
- Familiar with the technical background and principles of VLAN
- Familiar with the basic configuration methods and configuration commands of VLAN
- Realize VLAN division on the switch
2. Experimental significance
By setting up a VLAN experiment environment in the Cisco simulator, using switches for VLAN configuration, and mastering the VLAN division method
Three, experimental equipment
- Cisco Simulator
Four, experimental topology
Five, experimental steps and detailed configuration
-
Use the Cisco simulator to add 2 switches and 4 PCs according to the network diagram to connect each device. In order not to affect the results, it is recommended to delete all configurations of the switch and restart the switch. Connect the devices according to the requirements in the figure, and set the ip addresses of pc(0,1,2,3) to 192.168.1.1, 192.168.1.2, 192.168.1.3, 192.168.1.4 in order to test the interoperability
-
The configuration commands are as follows:
-
Configure switch switch0:
-
Switch>en Switch#config t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 10 Switch(config-vlan)#vlan 20 Switch(config-vlan)#int f0/2 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10 Switch(config-if)#int f0/3 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 20 Switch(config-if)#int f0/1 Switch(config-if)#switchport mode trunk
-
Configure switch switch1:
-
Switch>en Switch#config t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 10 Switch(config-vlan)#vlan 20 Switch(config-vlan)#int f0/2 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10 Switch(config-if)#int f0/3 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 20 Switch(config-if)#int f0/1 Switch(config-if)#switchport mode trunk
-
After completing the above configuration, test the connectivity between each pc
-
6. Experimental results and screenshots
After configuring the four PCs and switch0 and switch1 according to the experimental requirements, the PCs can be connected between PC0 and PC2, PC1 and PC3 can be connected, and PC0, PC1 and PC2, PC3 cannot be connected
Screenshot:
The network environment is set up:
Configure Switch0:
Configure Switch1:
Connect between PC0 and PC2:
There is no communication between PC0 and PC1:
There is no communication between PC0 and PC3:
There is no communication between PC2 and PC1:
There is no communication between PC2 and PC3:
Connection between PC1 and PC3: