CISCO PT Simulation Experiment (11) router single-arm routing configuration

Source: Internet
Author: User
Tags ccna study guide

CISCO PT Simulation Experiment (11) router single-arm routing configuration

Experimental Purpose :

Master The configuration method of single-arm routing

Implementing different VLANs to communicate with each other

In-depth understanding of VLAN communication Principles and routing sub-interfaces

Experimental Background :

the company's technical and sales departments in different offices, technical department and sales Department of the PC in different VLAN, now because the business needs of the sales department and the technical Department of the host can access each other, to obtain the corresponding resources, the two departments of the switch through a router to connect.

Technical Principle :

  • VLAN can effectively partition LAN, and realize the access control between each network region. But in reality, it is often necessary to configure the interconnection between certain VLANs. There are generally two ways to achieve communication between different VLANs: three-layer switching and one-arm routing.

  • Refers to the way in which a sub-interface (a "logical Interface") is configured on an interface of a router, Interconnection between different VLANs (virtual local area networks) that were originally isolated from each other.

      • When a physical interface is used as more than one logical interface, the implements the physical port with multiple functions through a logical sub-interface. You must have two sub-interfaces corresponding to two VLANs, and also require that the port mode of the switch connected to the router be trunk.

Experimental Equipment :router-pt 1 units, switch_2960 1 units, PC 2, straight line.

Experimental topology :

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/9E/00/wKiom1mJxr6D11P4AAArs4JbS9U272.png-wh_500x0-wm_ 3-wmp_4-s_4128826275.png "title=" 11.1.PNG "width=" 272 "height=" "" border= "0" hspace= "0" vspace= "0" style= "width : 272px;height:320px; "alt=" Wkiom1mjxr6d11p4aaars4jbs9u272.png-wh_50 "/>

Experimental steps:

New Cisco PT topology diagram

Set IP and gateway addresses for each PC, where the gateway address is the IP address of the router's sub-interface, respectively

On the two-layer switch, the ports PC0 and PC1 are respectively crossed into VLAN 2, VLAN 3

When the switch sets two VLANs, it logically becomes two networks, and the broadcast is quarantined. Two VLAN network to communicate, must pass through the router, if access to a physical port of the router, then there must be two sub-interfaces corresponding to two VLANs, but also requires the port mode of the switch connected to the router is trunk

The gateway of the computer points to the sub-interface of the router, respectively

Check the type, module number, and port number of the port connected to the PC and router, and configure the IP address and subnet mask for the port

Ensure that the IP address of the PC is on the same subnet and that the router port is turned on (default off)


Configure sub-interfaces to turn on the physical interface of the router

Default Encapsulation DOTLQ protocol

Configure Router subinterface IP address


PC Settings 192.168.1.2//pc0192.168.1.3//pc1//subnet mask and gateway 255.255.255.0192.168.1.1
Switch0 configuration Switch>enswitch#config tswitch (config) #vlan  2                  //Create Vlan 2switch (Config-vlan) #vlan  3             //creating Vlan 3switch (Config-vlan) # Exitswitch (config) #inter  f0/2switch (config-if) #switchport  access vlan 2         //set the port mode to Accessswitch (config-if) #exitSwitch (config) #inter  f0/3switch ( CONFIG-IF) #sw  ac vlan 3                     //set the port mode to Accessswitch (config-if) #exitSwitch (config) #inter  f0/1switch (config-if) #sw  mode trunk       // Set the port mode to Trunkswitch (config-if) #endSwitch #show vlan                        //View VLAN configuration information 
Router0 configuration router>enablerouter#conf trouter (config) #inter  f0/0                 //Enter Router No. 0 module No. 0 Port router (config-if) #no  shutdown             //Open Port Router (config-if) #exitRouter ( Config) #inter  f0/0.1                 //Enter Router No. 0 Module No. 0 Port 1th Sub-interface Router (config-subif) #encapsulation  dot1Q 2     The     //Encapsulation Protocol is 2Router (CONFIG-SUBIF) for the VLAN allowed through the dot1q #ip  address  192.168.1.1  255.255.255.0    router (config-subif) # #exitRouter (config) #inter  f0/0.2                 // Enter Router No. 0 Module No. 0 Port 1th Sub-interface Router (config-subif) #encapsulation  dot1Q 3       The   //encapsulation protocol for dot1q allows the VLAN to pass 3Router (confiG-SUBIF) #ip  address  192.168.2.1 255.255.255.0    router (config-subif) #^zrouter#show ip route        //Viewing routing table information
# Link Test PC0 (Command prompt cmd) ping 192.168.1.1//link ping 192.168.2.1//link ping 192.168.2.2 Link through PC1 (Command prompt cmd) ping 192.168.1.2//Link Pass

Lab environment: Windows 7,cisco PT 6.3

Reference: CCNA Study Guide (7th edition)


CISCO PT Simulation Experiment (11) router single-arm routing 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.