Packet Tracer 5.0 Experiment (ix) router RIP dynamic routing configuration
First, the experimental target
Master the configuration method of RIP protocol;
Master to view the routes generated by RIP learning through dynamic routing protocols;
Familiar with the connection mode of WAN cable;
Second, the experimental background
Suppose that the campus network is connected to the campus network egress router through a three-layer switch, and the router connects to another router outside the campus. Now to do appropriate configuration, to achieve campus network internal host and campus network between the external host communication. In order to simplify management and maintenance work, the school decided to use RIP V2 protocol to realize interoperability.
Three, the principle of technology
RIP (Routing information protocols), Routing Information Protocol, is an early application, the use of the more common IGP internal Gateway protocol, suitable for small-scale similar networks, is a distance vector protocol;
The RIP protocol measures the path overhead in hops, and the maximum hop count in the RIP protocol is 15;
The RIP protocol has two versions: RIPv1 and RIPV2,RIPV1 belong to the class routing protocol, do not support VLSM, update routing information in broadcast form, update period is 30 seconds, RIPv2 belongs to the class-free routing protocol, supports VLSM, and routes updates in multicast form.
Iv. Steps of the experiment
Experimental topology
650) this.width=650; "src=" http://pic002.cnblogs.com/images/2012/370046/2012071815300837.jpg "/>
1, in the three-layer switch division VLAN10 and VLAN20, wherein VLAN10 used to connect the campus network host, VLAN20 used to connect R1;
2, the router through the v.35 cable through the serial port connection, the DCE end connects on the R1, the configuration its time frequency is 64000;
3, the host and the switch through the direct connection, the host and the router through the cross-line connection;
4, configure the RIPV2 routing protocol on S3560;
5, configure the RIPV2 routing protocol on Router R1, R2;
6, the PC1, PC2 host default gateway is set to connect with the direct network device interface IP address;
7, verify PC1, PC2 host can communicate with each other;
S3560:
650) this.width=650; "src=" Http://common.cnblogs.com/images/copycode.gif "alt=" Copy Code "/>
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, CHANGED State to Up%lineproto-5-updown:line protocol on interface Vla N10, changed state to upS3560 (config-if) #ip address 192.168.1.1 255.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 in 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 b Y consoles3560#show IP Route codes: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 &N Bsp P-periodic downloaded static routegateway of last resort isn't setc  192.168.1.0/24 is directly connected, VLAN10C  192.168.3.0/24 is directly connected, vlan20s3560#show IP route &N Bsp , &NB Sp //when all RIPV2 are configured, then view routing information codes: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 Ty PE 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 isn't setc  192.168.1.0/24 is directly connected, vlan10r  192.168.2.0/24 [120/2] VI A 192.168.3.2, 00:00:01, vlan20c  192.168.3.0/24 is directly connected, vlan20r  192.168.4.0/24 [1 20/1] via 192.168.3.2, 00:00:01, vlan20s3560#
650) this.width=650; "src=" Http://common.cnblogs.com/images/copycode.gif "alt=" Copy Code "/>
R1:
650) this.width=650; "src=" Http://common.cnblogs.com/images/copycode.gif "alt=" Copy Code "/>
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  SERIAL2/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 - 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/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 serial2/0, changed state to up%lineproto-5-updown: line protocol on Interface Serial2/0, changed state to upR1#show ip route // When all RIPV2 are configured, then view the routing information Codes: 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&Nbsp; * - 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, Serial2/0C 192.168.3.0/24 is directly connected, fastethernet0/0c 192.168.4.0/24 is directly connected, serial2/0r1#
650) this.width=650; "src=" Http://common.cnblogs.com/images/copycode.gif "alt=" Copy Code "/>
R2:
650) this.width=650; "src=" Http://common.cnblogs.com/images/copycode.gif "alt=" Copy Code "/>
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 &nbSp; 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#
650) this.width=650; "src=" Http://common.cnblogs.com/images/copycode.gif "alt=" Copy Code "/>
V. Testing
650) this.width=650; "src=" Http://common.cnblogs.com/images/copycode.gif "alt=" Copy Code "/>
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>
Packet Tracer 5.0 Experiment (ix) router RIP dynamic routing configuration