Experiment six using three-layer switch to implement inter-VLAN routing

Source: Internet
Author: User

experiment six using three-layer switch to implement inter-VLAN routing

First, the experimental target

    1. Mastering the configuration of the switch tag VLAN
    2. Master three layer switch basic configuration method;
    3. Master three-layer switch VLAN routing configuration method;
    4. Inter-VLAN communication through three layer switch;

Second, the experimental background

An enterprise has two major departments, technical department and sales department, divided into different offices, in order to secure and easy to manage the two departments of the Host VLAN division, the technical department and the sales section in different VLANs, first because the business needs of the sales department and the technical Department of the host can access each other, access to the corresponding resources, The switches in both departments are connected through a three-layer switch.

Three, the principle of technology

Layer three switch has the function of network layer, realize VLAN mutual access principle is: Using the routing function of three layer switch, by identifying the IP address of the packet, finding the route table for routing and forwarding, the three layer switch can realize mutual access between different VLANs by using the Direct connect route. The layer three switch configures the IP address for the interface. The use of SVI (Exchange Virtual Interface) to achieve inter-VLAN interconnection. SVI refers to creating a virtual interface for the VLAN in the switch and configuring the IP address.

Iv. Steps of the experiment

(1) New Packet tracer topology diagram

(2) in the two-layer switch configuration VLAN2, VLAN3, respectively, Port 2, Port 3 is divided into VLAN2, VLAN3.

(3) The Port FA 0/1 connected to the two-layer switch and the three-layer switch is defined as the Tag VLAN mode.

(4) Configure the VLAN2, VLAN3 on the three-layer switch to verify that the two-layer switch VLAN2, the host under VLAN3, cannot communicate with each other.

(5) Set up the communication between the three layer switch VLAN, create the virtual interface of VLAN2,VLAN3, and configure the IP address of virtual interface VLAN2, VLAN3.

(6) View the three Layer switch routing table.

(7) Set the two layer switch VLAN2, the host default gateway under VLAN3 to the IP address of the corresponding virtual interface respectively.

(8) Verify that the hosts under Layer Two switch vlan2,valn3 can communicate with each other.

Five, the experimental equipment

switch_2960 1 units, swithc_3560 1 units, PC 3, direct connection

Six, the experimental topological diagram

Vii. command of the experiment

PC1

ip:192.168.1.2

submark:255.255.255.0

gateway:192.168.1.1

PC2

ip:192.168.2.2

submark:255.255.255.0

gateway:192.168.2.1

PC3

ip:192.168.1.3

submark:255.255.255.0

gateway:192.168.1.1

S2960

En

Conf t

VLAN 2

Exit

VLAN 3

Exit

int FA 0/2

Switchport Access VLAN 2

int FA 0/3

Switchport Access VLAN 3

int FA 0/1

Switchport mode Trunk

Exit

Show VLAN

S3560

En

Conf t

VLAN 2

Exit

VLAN 3

Exit

int FA 0/1

Switchport Trunk Encapsulation dot1q//This sentence can save

Switchport mode Trunk

Exit

int FA 0/2

Switchport Access VLAN 2

Exit

Interface VLAN 2

IP address 192.168.1.1 255.255.255.0

No shutdown

Exit

Interface VLAN 3

IP address 192.168.2.1 255.255.255.0

No shutdown

Exit

Show IP route

Show VLAN

PC3 Ping PC1

Ping 192.168.1.2

PC3 Ping PC2

Ping 192.168.1.3

Viii. Experimental Results

1. Configure IP addresses for PC0, PC1, PC2

2. Configure VLAN2, VLAN3 on Layer Two switch, divide Port 2, Port 3 to VLAN2, VLAN3 respectively. The Port FA 0/1, which connects the two-layer switch to the three-layer switch, is defined as the Tag VLAN mode.

3.s3560, configure VLAN2, VLAN3 on the three-layer switch to verify that the two-layer switch VLAN2, the hosts under VLAN3, cannot communicate with each other. Set up communication between the three-layer switch VLAN, create a virtual interface for VLAN2,VLAN3, and configure the IP address of the virtual interface VLAN2, VLAN3.

4. Verify that the hosts under the switch can communicate with each other

Experiment six using three-layer switch to implement inter-VLAN routing

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.