Inter-Switch VLAN Routing

Purpose:

Use Layer 3 switches to implement inter-VLAN routing across switches.

Experimental topology:

 

Experimental basic configuration:

The ip configuration of the four PCs is as follows:

Because it is necessary to ensure that any two PCs can be pinged before deploying the VLAN, we set the subnet mask to 255.255.0.0. In this way, they are all in the same network segment. But in order to distinguish different VLANs, we set the last two digits of the IP addresses of the two PCs in VLAN20 to 20.

3 VLAN configuration:

 

We first divide it into two VLANs 10 and 20, and then enter the respective ports for setting. We set the ports leading to the two subnets as VLAN10 and VLAN20 respectively. Interface e/0/0/3 is the backbone interface leading to the switch , so we allow all VLANs to pass through when setting.

In the same way, we set up the second switch:

 

 

Here we configure the second switch, which is the same, but the interface changes.

Next, let's test, taking PC1 as an example:

When we ping the host number of the same VLAN interface, we can ping it, but when we ping different VLAN interfaces, we ping different, and the result prompts that the host is unreachable. Our experiment was a success!

When a PC in a VLAN accesses a PC without a VLAN, it is also inaccessible:

Here you can see that I can't access it when I haven't deployed it, but I can access it after deployment.

Guess you like

Origin blog.csdn.net/weixin_53665577/article/details/128892671