Cisco Packet Tracert Three-tier switch VLAN configuration

Source: Internet
Author: User

Lab Environment:

650) this.width=650; "alt=" Cisco Packet Tracert three-tier switch VLAN configuration-Ibm.chick-mingkang.zhou "src=" Http://img2.ph.126.net/2N Qfixjyba1gdiqtbuknhq==/6630601572768576164.png "style=" border:0px;height:auto;margin:0px 10px 0px 0px; "/>

Experimental Purpose:

1, the three layer switch divides three VLANs, is Vlan2\vnal3\vlan4, and the VLAN IP is set to: 192.168.2.1, 192.168.3.1, 192.168.4.1 respectively.

2, the FA0/1 port is set to trunk port, Fa0/4 joined VLAN4.

3, enable the routing function, to achieve interoperability between the VLANs.

4, set the two-layer switch, the FA0/1 port is set to trunk, and add FA0/2 join VLAN2,FA0/3 added VLAN3.

5, test the VLAN is connected.

Experimental steps:

1, the three layer switch divides three VLANs, is Vlan2\vnal3\vlan4, and the VLAN IP is set to: 192.168.2.1, 192.168.3.1, 192.168.4.1 respectively.

Switch>enable

Switch#conf T

Enter configuration commands, one per line. End with cntl/z.

Switch (config) #hostname coresw

Coresw (config) #vlan 2

CORESW (Config-vlan) #exit

Coresw (config) #vlan 3

CORESW (Config-vlan) #vlan 4

CORESW (Config-vlan) #

Coresw (config) #int VLAN 2

CORESW (config-if) #

%link-5-changed:interface Vlan2, CHANGED state-to-up

CORESW (config-if) #ip add 192.168.2.1 255.255.255.0

CORESW (config-if) #no shutdown

CORESW (config-if) #exit

Coresw (config) #int VLAN 3

CORESW (config-if) #

%link-5-changed:interface Vlan3, CHANGED state-to-up

CORESW (config-if) #ip add 192.168.3.1 255.255.255.0

CORESW (config-if) #no shutdown

CORESW (config-if) #exit

Coresw (config) #int VLAN 4

CORESW (config-if) #exit

%link-5-changed:interface Vlan4, CHANGED state-to-up

CORESW (config-if) #ip add 192.168.4.1 255.255.255.0

CORESW (config-if) #no shutdown

2, the FA0/1 port is set to trunk port, Fa0/4 joined VLAN4.

Coresw (config) #int FA0/1

CORESW (config-if) #switchport trunk Encapsulation dot1q

CORESW (config-if) #switchport mode trunk

Coresw (config) #int FA0/4

CORESW (config-if) #switchport mode access

CORESW (config-if) #switchport Access VLAN 4

3, enable the routing function, to achieve interoperability between the VLANs.

Coresw#conf T

Enter configuration commands, one per line. End with cntl/z.

Coresw (config) #ip routing

Coresw (config) #router rip

CORESW (config-router) #ver 2

CORESW (config-router) #no au

CORESW (config-router) #net 192.168.2.0

CORESW (config-router) #net 192.168.3.0

CORESW (config-router) #net 192.168.4.0

4, set the two-layer switch partition VLAN2/VLAN3, the FA0/1 port is set to trunk, and FA0/2 added VLAN2,FA0/3 added VLAN3.

Switch>enable

Switch#conf T

Enter configuration commands, one per line. End with cntl/z.

Switch (config) #vlan 2

Switch (Config-vlan) #exit

Switch (config) #vlan 3

Switch (Config-vlan) #exit

Switch (config) #

Switch (config) #int FA0/1

Switch (config-if) #switchport mode trunk

5, test the VLAN is connected.

650) this.width=650; "alt=" Cisco Packet Tracert three-tier switch VLAN configuration-Ibm.chick-mingkang.zhou "src=" Http://img2.ph.126.net/LP Rsjuool21jadaugxblpw==/3355181722493036123.jpg "style=" border:0px;height:auto;margin:0px 10px 0px 0px; "/>


This article is from the "Learning Journey" blog, so be sure to keep this source http://mingkang.blog.51cto.com/9678221/1617702

Cisco Packet Tracert Three-tier switch VLAN configuration

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.