Current location - Quotes Website - Collection of slogans - As shown in the figure below, I divided PC 1 and PC3 into a VLAN, and PC2 and PC4 into a VLAN. How to set them up so that they can communicate with each other?
As shown in the figure below, I divided PC 1 and PC3 into a VLAN, and PC2 and PC4 into a VLAN. How to set them up so that they can communicate with each other?
1. First, the first step is to configure switch interface trunking and divide vlan. Objective: To understand the configuration of switch interface trunking and vlan division test environment: Pay attention to the topology diagram shown below. We need to realize that pc 1 and pc3 are on the same vla.

2. Next, you need to enter the first switch and configure the switch as follows >; EnSwitch#config tSwitch (configuration) #vla

Define vlan number switch (configuration -VLAN) # Name VLAN 2 VLAN name switch (configuration -VLAN) # Exit switch (configuration) # VLAN 3.

3. Switch(config-if)# switch mode accwss? Change the port mode of the switch to access mode.

4. Finally, this port is used to connect the computer trunk switch (config-if) # switchaccess VLAN 2 switch (config) # intfa0.

At this time, four people can communicate successfully.