Chapter 2 use a layer-3 Switch to configure a lan for inter-VLAN Routing

Source: Internet
Author: User

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"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.