Packet tracer 5.0 Experiment (7) router single-arm routing configuration

Source: Internet
Author: User

I. Lab Objectives

    • Master the single-arm route configuration method;
    • Communication between different VLANs is achieved through single-arm routing;

Ii. Lab background

An enterprise has two main departments: the technical department and the sales department, which are located in different offices. To ensure security and ease of management, the two Departments are divided into VLANs, the technical department and sales department are in different VLANs. Due to business needs, the sales department and the Technical Department hosts need to access each other to obtain the corresponding resources. The Switches of the two Departments are connected through a router.

Iii. Technical Principles

Single-arm routing: a three-layer network device router that implements inter-VLAN communication. It only needs an Ethernet interface. By creating a sub-interface, it can assume the gateways of all VLANs, data is forwarded between different VLANs.

Iv. Experiment steps

Lab Topology

1. When the vswitch is set to two VLANs, the two networks are logically isolated. Two VLANs must communicate with each other through a vro. If only one physical port is connected to the vrovlan, two subinterfaces must correspond to the two VLANs respectively, at the same time, it is required that the port F0/1 of the vswitch connected to the vro be set to trunk, because this port uses packets of two VLANs.

2. Check the settings and view the VLAN and trunk information correctly.

3. The computer gateway points to the sub-interfaces of the router respectively.

4. Configure the sub-interface to enable the physical interface of the router.

5. The dot1q protocol is encapsulated by default.

6. Configure the IP address of the vro subinterface.

Switch:

Switch> switch> enswitch # conf tenter configuration commands, one per line. end with cntl/Z. switch (config) # VLAN 2 switch (config-VLAN) # exitswitch (config) # VLAN 3 Switch (config-VLAN) # exitswitch (config) # interface fa0/2 switch (config-If) # switchport access VLAN 2 switch (config-If) # exitswitch (config) # interface fa0/3 Switch (config-If) # switchport access VLAN 3 Switch (config-If) # exitswitch (config) # interface fa0/1 switch (config-If) # switchport mode trunk switch (config-If )#

R1:

Router> enrouter # conf tenter configuration commands, one per line. end with cntl/Z. router (config) # hostname r1r1 (config) # interface fa0/0r1 (config-If) # No shutdown % link-5-changed: interface fastethernet0/0, changed state to up % LINEPROTO-5-UPDOWN: Line protocol on interface fastethernet0/0, changed state to upr1 (config-If) # exitr1 (config) # interface fa0/0.1% link-5-changed: interface fastethernet0/0.1, changed state to up % LINEPROTO-5-UPDOWN: Line protocol on interface fastethernet0/0.1, changed state to upr1 (config-subif) # encapsulation dot1q 2r1 (config-subif) # IP address 192.168.1.1 255.255.255.0r1 (config-subif) # exitr1 (config) # interface fa0/0.2% link-5-changed: interface fastethernet0/0.2, changed state to up % LINEPROTO-5-UPDOWN: line protocol on interface fastethernet0/0.2, changed state to upr1 (config-subif) # encapsulation dot1q 3r1 (config-subif) # IP address 192.168.2.1 255.255.0r1 (config-subif) # R1 # % SYS-5-CONFIG_ I: configured from console by Console
R1 # Show IP Route
Codes: C-connected, S-static, I-IGRP, R-rip, M-mobile, B-BGP
D-OSPF, ex-VPN external, o-OSPF, Ia-OSPF Inter Area
N1-ospf nssa external type 1, n2-ospf nssa external type 2
E1-OSPF external type 1, E2-OSPF external type 2, E-EGP
I-Is, L1-is level-1, L2-is level-2, Ia-Is Inter Area
*-Candidate default, U-per-user static route, o-ODR
P-periodic downloaded static route

Gateway of last resort is not set

C 192.168.1.0/24 is directly connected, fastethernet0/0.1
C 192.168.2.0/24 is directly connected, fastethernet0/0.2
R1

V. Test

PC2:

  packet tracer PC command line 1.0 Pc> ipconfigip address ......................: 192.168.2.2subnet mask .....................: 255.255.255.0default gateway .................: 192.168.2.1pc> Ping 192.168.1.2pinging 192.168.1.2 with 32 bytes of data: Request timed out. reply from 192.168.1.2: bytes = 32 time = 8 ms TTL = 127 reply from 192.168.1.2: bytes = 32 time = 8 ms TTL = 127 reply from 192.168.1.2: bytes = 32 time = 17 Ms TTL = 127 Ping statistics for 192.168.1.2: Packets: Sent = 4, stored ED = 3, lost = 1 (25% loss ), approximate round trip times in Milli-seconds: Minimum = 8 ms, maximum = 17 ms, average = 11 mspc>  

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.