CISCO PT Simulation Experiment (4) VLAN partitioning and configuration of switches

Source: Internet
Author: User
Tags switches ccna study guide

CISCO PT Simulation Experiment (4) VLAN partitioning and configuration of switches


Experimental Purpose :

Master The basic configuration of virtual LANs (VLANs);

Master the configuration method of switch port VLAN and tag VLAN;

Master the configuration method for VLAN trunking (VLAN trunk) and its Protocol (VTP).

Experimental background : The company's finance department, sales department of the PC are placed in two offices , and through the indoor switch interconnection to achieve communication; for data security purposes, communication isolation between the two departments is required, The switch is now configured appropriately to achieve this goal.

Technical Principle :

  • VLAN technology: Refers to a physically connected network segment logically divided into a number of virtual local area networks. VLAN features are not constrained by physical locations and can be flexibly partitioned. Each VLAN has the characteristics of a physical network segment, which corresponds to a broadcast domain . Hosts within the same VLAN can communicate with each other directly, and each other between hosts in different VLANs must be forwarded by a routed device.

  • port VLAN is one of the ways to implement VLANs, it is based on the port of the Switch VLAN partition, a port can only belong to one VLAN.

  • < Span style= "FONT-SIZE:10.5PT;LINE-HEIGHT:19.5PT;" >

    • tag A VLAN is a type of switch-based port (that is, an access port) that is used primarily for direct access between hosts within the same VLAN across switches, while isolating hosts in different VLANs.

  • vlan trunk (Vlan trunk), refers to the switch with the switch or router, in the case of the interconnection port configuration relay mode, so that the data frame belonging to different VLANs can be transmitted through this trunk link.

  • (default) , client mode, transparent mode.

    • vlan Sub-mode             Switch (VLAN) #

    • vlan configuration mode                 Switch (Config-vlan) #

    • vlan interface (SVI) mode         Switch (config-if) #

Experimental Equipment : switch_2960 2 units, PC 4, straight line, crossover line.

Experimental topology :

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/9C/2B/wKiom1ls50qxEF5aAABOzivF0Kg889.png-wh_500x0-wm_ 3-wmp_4-s_2597313364.png "title=" 4.1.PNG "width=" 482 "height=" 280 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width : 482px;height:280px; "alt=" Wkiom1ls50qxef5aaabozivf0kg889.png-wh_50 "/>

Experimental steps:

VLAN 2 and VLAN 3 are created, the Finance department corresponds to VLAN 2, and the sales department corresponds to VLAN 3

Partition the departmental PC corresponding port into the appropriate VLAN

Configure VTP mode and VTP domain name for the switch

Configure ports for inter-switch interconnect to trunk type


PC Settings 192.168.1.2//pc0192.168.1.3//pc1192.168.1.4//pc2192.168.1.5//pc3//Subnet mask and gateway 255.255.255.0 192.168.1.1
Switch0 configuration Switch>enswitch#conf tswitch (config) #vlan  2                   //Create Vlan 2switch (Config-vlan) #name  finance_dept         //Name the VLAN finance_deptswitch ( Config-vlan) Creating VLANs #vlan  3             //  2switch (Config-vlan) #name  sales_dept          // Name the VLAN sales_deptswitch (config-vlan) #exitSwitch (config) #inter  f0/1switch (config-if) #switchport   access vlan 2        //divide the port into Vlan 2switch (config-if) # Exitswitch (config) #inter  f0/2switch (config-if) #switchport  access vlan 3         //divides the port into Vlan 3switch (config-if) #exitSwitch (config) #inter  f0/24switch ( CONFIG-IF) #switch  mode  trunk               // Configure the port as Trunk mode switch (config-if) #endSwitch #show vlan brief                 //Display VLAN configuration information switch#vlan database                   //into VLAN sub-mode switch ( VLAN) #vtp  server                       //setting VTP mode to Serverswitch (VLAN) #vtp  domain vtp0                  // Set the VTP domain name to Vtp0switch (VLAN) #vtp  pruning                      //Enable VTP pruning feature switch (VLAN) #exitSwitch #show vtp  status                       //Viewing VTP configuration information 
SWITCH1 Configuration switch>enswitch#vlan database                 //into VLAN sub-mode switch (VLAN) #vtp  client                      // Set VTP mode to Clientswitch (VLAN) #vtp  domain vtp0                 //set the VTP domain name to vtp0, which is not filled out as a switch (VLAN) #exitSwitch #show vtp  status             //viewing VTP configuration information switch#show  vlan brief             // Display VLAN configuration information switch#conf tswitch (config) #inter  f0/1switch (config-if) #switchport  access vlan The  2        //divides the port into Vlan 2switch (config-if) #exitSwitch (config ) #inter  f0/2switch (config-if) #switchport &NBSP;ACCess vlan 3        //divide the port into Vlan 3switch (config-if) # Exitswitch (config) #inter  f0/24switch (config-if) #switch  mode trunk                //Configure the port as Trunk mode switch (config-if) #endSwitch #show  r
PC0 (Command prompt cmd) ping 192.168.1.2//link ping 192.168.1.3//link is not through
PC1 (Command prompt cmd) ping 192.168.1.3//link ping 192.168.1.4//link is not through


Lab Environment: Windows 7, Cisco PT 6.3

Reference: CCNA Study Guide (7th edition)


CISCO PT Simulation Experiment (4) VLAN partitioning and configuration of switches

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.