Communication with VLAN kubernetes
I. Tutorial Purpose
Through this experiment, we will understand how to build a network through VLAN, and how users in the same VLAN can communicate with different switches.
Ii. Experiment Topology
650) This. width = 650; "src =" http://home.51cto.com/thumb.php? W = 600 & H = 600 & t = F & url = http://s3.51cto.com/wyfs02/M02/4C/F7/wKioL1RIZsrAyAG6AAECjkPlneo888.jpg "width =" 567 "Height =" 302 "alt =" wkiol1rizsrayag6aaecjkplneo888.jpg "/>
Iii. Experiment description
1. Two PCs can be used in the experiment: one PC for PCA/PCB and one PC for PCC/PCD.
2. All interfaces connecting a vswitch to a PC are access interfaces.
3. The interfaces connecting vswitches are trunk ports, allowing multiple VLANs to pass through
4. PCA/PCC belongs to VLAN 10, and PCB/PCD belongs to VLAN 20
Iv. Experiment steps
1. Create two VLANs for each vswitch: VLAN 10/VLAN 20
2. Add VLAN 10 to E0/4/1, and Add VLAN 20 to E0/4/2
3. Configure the E0/4/0 as the trunk, and allow VLAN 10 and VLAN 20 to pass through
4. test which hosts can be pinged and which cannot
V. Experiment Process
SWA configurations:
Step 1: configure the interface connected to the user
[H3C] sysname SWA \ Name of the configuration Switch
[Zjswa] VLAN 10 \ creates a new VLAN
[ZJSWA-vlan10] port ethernet 0/4/1 \ add interface E0/4/1 to new VLAN
[ZJSWA-vlan10] VLAN 20
[ZJSWA-vlan20] port ethernet 0/4/2 \ add interface E0/4/2 to new VLAN
Step 2: Configure direct connection interfaces between vswitches
[SWA] interface Ethernet 0/4/0 \ enter the E0/4/0 configuration View
[SWA-Ethernet0/4/0] Port Link-type trunk \ configure the trunk Port
[SWA-Ethernet0/4/0] Port trunk permit VLAN all \ specifies the VLAN allowed by this interface
SWB configurations:
Step 1: configure the interface connected to the user
[H3C] sysname zjswb \ Name of the configuration Switch
[Zjswb] VLAN 10 \ create a new VLAN
[ZJSWB-vlan10] port ethernet 0/4/1 \ add interface E0/4/1 to new VLAN
[ZJSWB-vlan10] VLAN 20
[ZJSWB-vlan20] port ethernet 0/4/2 \ add interface E0/4/2 to new VLAN
Step 2: Configure direct connection interfaces between vswitches
[Zjswb] interface Ethernet 0/4/0 \ enter E1/0/1 configuration View
[ZJSWB-Ethernet0/4/0] Port Link-type trunk \ configure the trunk Port
[ZJSWB-Ethernet0/4/0] Port trunk permit VLAN all \ specifies the VLAN allowed by this interface
Vi. Test the experiment
1. Ping PC3/pc4 from pC1 and find that pC1/pc4 can communicate with each other, while pC1/PC3 cannot communicate with each other.
2. If PC2 is used for testing, the result is the opposite.
With this model, users of different VLANs cannot communicate with each other even if they connect to the same vswitch. Users of the same VLAN can communicate with each other even if they connect to multiple vswitches.
650) This. width = 650; "src =" http://home.51cto.com/thumb.php? W = 600 & H = 600 & t = F & url = http://s3.51cto.com/wyfs02/M02/4C/F6/wKiom1RIZnygd-tqAAEOqwNESgo728.jpg "width =" 393 "Height =" 211 "alt =" wKiom1RIZnygd-tqAAEOqwNESgo728.jpg "/>
Communication with VLAN kubernetes