Packet tracer 5.0 Experiment (9) vrorip rip Dynamic Route Configuration

Source: Internet
Author: User

I. Lab Objectives

  • Master the configuration of the RIP Protocol;
  • View the Routes learned through the dynamic routing protocol rip;
  • Familiar with Wan cable connection methods;

Ii. Lab background

Assume that the campus network is connected to the egress router of the campus network through a layer-3 switch, and the router is connected to another router outside the campus network. Now, we need to make proper configuration to implement communication between hosts inside the campus network and external hosts on the campus network. To simplify the management and maintenance of network management, the school decided to use the rip v2 protocol for intercommunication.

Iii. Technical Principles

Rip (routing information protocols), routing information protocol, is an earlier and more common IGP internal gateway protocol, applicable to small similar networks, distance vector protocol;

The rip protocol uses the number of hops to measure the path overhead. the maximum number of hops defined in the RIP Protocol is 15;

The RIP Protocol has two versions: r00001 and r00002. r00001 belong to the classless routing protocol and do not support vlsm. Route information is updated in broadcast mode. The update period is 30 seconds; r12002 is a classless routing protocol that supports vlsm and route updates in the form of multicast.

Iv. Experiment steps

Lab Topology

1. vlan10 and vlan20 are divided on layer-3 switches. vlan10 is used to connect to the campus network host and vlan20 is used to connect to R1;

2. The vrouters are connected through a serial port through the V.35 cable. the DCE end is connected to R1 and the time frequency is configured to 64000;

3. The host and switch are connected through a direct connection, and the host and router are connected through a crossover line;

4. Configure the r12002 routing protocol on s3560;

5. Configure the r12002 routing protocol on routers R1 and R2;

6. Set the default gateways of the pC1 and PC2 hosts to the IP addresses of the interfaces with the directly connected network devices;

7. Verify that the pC1 and PC2 hosts can communicate with each other;

S3560:

Switch> switch> enswitch # conf tenter configuration commands, one per line. end with cntl/Z. switch (config) # hostname s3560s3560 (config) # VLAN 10s3560 (config-VLAN) # exits3560 (config) # VLAN 20s3560 (config-VLAN) # exits3560 (config) # interface fa0/10s3560 (config-If) # switchport access VLAN 10s3560 (config-If) # exits3560 (config) # interface fa0/20s3560 (config-If) # switchport access VLAN 20s3560 (config-If) # exits3560 (config) # interface VLAN 10% link-5-changed: interface vlan10, state changed to up % LINEPROTO-5-UPDOWN: line protocol on interface vlan10, changed state to ups3560 (config-If) # IP address 192.168.1.1 255.255.0s3560 (config-If) # exits3560 (config) # interface VLAN 20
% Link-5-changed: interface vlan20, changed state to ups3560 (config-If) # IP address 192.168.3.1 255.255.255.0s3560 (config-If) # exits3560 (config) # router rip s3560 (config-router) # network 192.168.1.0s3560 (config-router) # network 192.168.3.0s3560 (config-router) # version 2s3560 (config-router) # % link-5-changed: interface fastethernet0/20, changed state to up % LINEPROTO-5-UPDOWN: Line protocol on interface fastethernet0/20, changed state to up % LINEPROTO-5-UPDOWN: line protocol on interface vlan20, changed state to ups3560 (config-router) # ends3560 # % SYS-5-CONFIG_ I: configured from console by lesles3560 # Show IP Route codes: C-connected, S-static, i-IGRP, R-rip, M-mobile, B-BGP D-VPN, 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 routegateway of last resort is not SETC 192.168.1.0/24 is directly connected, vlan10c 192.168.3.0/24 is directly connected, vlan20s3560 # Show IP Route // After configuring all r00002, check the route information codes: C-connected, S-static, I-IGRP, R-rip, M-mobile, b-BGP D-OSPF, ex-OSPF 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 routegateway of last resort is not SETC 192.168.1.0/24 is directly connected, vlan10r 192.168.2.0/24 [120/2] via 192.168.3.2, 00:00:01, vlan20c 192.168.3.0/24 is directly connected, vlan20r 192.168.4.0/24 [120/1] via 192.168.3.2, 00:00:01, vlan20s3560 #

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) # IP address 192.168.3.2 255.255.255.0r1 (config-If) # exitr1 (config) # interface Serial 2/0r1 (config-If) # No shutdown % link-5-changed: interface serial/0, changed state to downr1 (config-If) # clock rate 64000r1 (config-If) # IP address 192.168.4.1 255.255.255.0r1 (config-If) # exitr1 (config) # router ripr1 (config-router) # network 192.168.3.0r1 (config-router) # network 192.168.4.0r1 (config-router) # version 2r1 (config-router) # End % SYS-5-CONFIG_ I: configured from console by consoler1 # Show IP Route codes: C-connected, S-static, i-IGRP, R-rip, M-mobile, B-BGP D-VPN, 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 routegateway of last resort is not setr 192.168.1.0/24 [120/1] via 192.168.3.1, 00:00:15, fastethernet0/0C 192.168.3.0/24 is directly connected, fastethernet0/0r1 # % link-5-changed: interface serial/0, state changed to up % LINEPROTO-5-UPDOWN: line protocol on interface serial/0, changed state to upr1 # Show IP Route // After configuring all ripv2, check the route information codes: C-connected, S-static, i-IGRP, R-rip, M-mobile, B-BGP D-VPN, 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 routegateway of last resort is not setr 192.168.1.0/24 [120/1] via 192.168.3.1, 00:00:19, fastethernet0/0r 192.168.2.0/24 [120/1] via 192.168.4.2, 00:00:11, serial/0C 192.168.3.0/24 is directly connected, fastethernet0/0C 192.168.4.0/24 is directly connected, serial/0r1 #

R2:

Router>enRouter#conf tEnter configuration commands, one per line.  End with CNTL/Z.Router(config)#hostname R2R2(config)#interface fa0/0R2(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 upR2(config-if)#ip address 192.168.2.1 255.255.255.0R2(config-if)#exitR2(config)#interface serial 2/0R2(config-if)#no shutdown %LINK-5-CHANGED: Interface Serial2/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up    R2(config-if)#ip address 192.168.4.2 255.255.255.0R2(config-if)#exitR2(config)#end%SYS-5-CONFIG_I: Configured from console by consoleR2#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP       D - EIGRP, EX - EIGRP 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-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area       * - candidate default, U - per-user static route, o - ODR       P - periodic downloaded static routeGateway of last resort is not setC    192.168.2.0/24 is directly connected, FastEthernet0/0C    192.168.4.0/24 is directly connected, Serial2/0R2#conf tEnter configuration commands, one per line.  End with CNTL/Z.R2(config)#router ripR2(config-router)#network 192.168.2.0R2(config-router)#network 192.168.4.0R2(config-router)#version 2R2(config-router)#end%SYS-5-CONFIG_I: Configured from console by consoleR2#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP       D - EIGRP, EX - EIGRP 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-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area       * - candidate default, U - per-user static route, o - ODR       P - periodic downloaded static routeGateway of last resort is not setR    192.168.1.0/24 [120/2] via 192.168.4.1, 00:00:00, Serial2/0C    192.168.2.0/24 is directly connected, FastEthernet0/0R    192.168.3.0/24 [120/1] via 192.168.4.1, 00:00:00, Serial2/0C    192.168.4.0/24 is directly connected, Serial2/0R2#

V. Test

Packet Tracer PC Command Line 1.0PC>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.Request timed out.Reply from 192.168.1.2: bytes=32 time=16ms TTL=125Reply from 192.168.1.2: bytes=32 time=17ms TTL=125Ping statistics for 192.168.1.2:    Packets: Sent = 4, Received = 2, Lost = 2 (50% loss),Approximate round trip times in milli-seconds:    Minimum = 16ms, Maximum = 17ms, Average = 16msPC>ping 192.168.1.2Pinging 192.168.1.2 with 32 bytes of data:Reply from 192.168.1.2: bytes=32 time=19ms TTL=125Reply from 192.168.1.2: bytes=32 time=16ms TTL=125Reply from 192.168.1.2: bytes=32 time=13ms TTL=125Reply from 192.168.1.2: bytes=32 time=15ms TTL=125Ping statistics for 192.168.1.2:    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:    Minimum = 13ms, Maximum = 19ms, Average = 15msPC>

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.