VLANIt is a protocol proposed to solve Ethernet broadcast problems and security. It adds VLAN headers Based on Ethernet frames and divides users into smaller working groups using VLAN IDs, restrict mutual access between users in different working groups. Each working group is a virtual LAN. Let's implement the configuration through practice.
I. Networking requirements:
PC1 and PC2 connect to the vswitch ports E1/0/1 and E1/0/2 respectively. The ports are VLAN10 and VLAN20 respectively.
Ii. Networking diagram:
3. configuration steps:
Method 1
1. Create and enter) VLAN10, Add E1/0/1 to VLAN10
[SwitchA] vlan 10
A [SwitchA-vlan10] port Ethernet 1/0/1
2. Create and enter) VLAN20, Add E1/0/2 To VLAN20
[SwitchA] vlan 20
[SwitchA-vlan20] port Ethernet 1/0/2
Method 2
1. Go to the configuration view of Ethernet port E1/0/1
[SwitchA] API Ethernet 1/0/1
2. Configure PVID for port E1/0/1 to 10 [SwitchA-Ethernet1/0/1] port access vlan 10
3. Go to the configuration view of Ethernet port E1/0/1 [SwitchA] interface Ethernet 0/2
4. Configure PVID for port E1/0/2 to 20 [SwitchA-Ethernet1/0/2] port access vlan 20
Summary
The above VLAN configuration process is just a simple instance. It only implements the most basic VLAN division, but this is indeed the basis of configuration, we will continue to introduce relevant knowledge in the future Switch configuration.