Lab objectives:
1. Master the configuration of the switch Tag VLAN;
2. master the basic configuration methods of layer-3 switches;
3. Master how to configure VLAN routing for layer-3 switches;
4. layer-3 switches are used to implement VLAN visibility and mutual communication;
Technical Principles:
A layer-3 Switch has the network layer function. The principle of implementing VLAN mutual access is to use the routing function of a layer-3 switch. By identifying the IP address of the data packet and finding the route table for Route Selection and forwarding, the layer-3 Switch uses the direct connection route to achieve mutual access between different VLANs. The layer-3 Switch configures the IP address for the interface and uses SVI (switching Virtual Interface) to achieve interconnection between VLANs. SVI refers to creating virtual interfaces for VLANs in a vswitch and configuring IP addresses.
Tutorial steps:
The topology is as follows:
1. Configure VLAN 2 and VLAN 3 on a L2 Switch. L2 switches Fa0/2 and Fa0/3 are divided into VLAN 2 and VLAN 3 respectively;
2. Define the port Fa0/3 connected to the L2 Switch and the L3 switch as the Tag VLAN mode;
3. Create VLAN 2 and VLAN 3 on a layer-3 Switch. Verify that the host PC1 and PC2 under VLAN 2 and VLAN 3 cannot communicate with each other;
4. configure Layer-3 Switch VLAN communication, create VLAN 2 and VLAN 3 Virtual interfaces, and configure the IP addresses of VLAN 2 and VLAN 3;
Divide layer-3 Switch Fa0/2 into VLAN 2
5. view the route table of a layer-3 Switch
6. Set the default gateway of the host under the L2 Switch VLAN 2 and VLAN 3 as the IP address of the corresponding virtual interface;
PC1:
PC2:
7. Verify that hosts under VLAN 2 and VLAN 3 of L2 switches can communicate with each other;
PC2 ping PC3:
This article is from "potato space"