RIPV1 Basic Configuration
Topology structure:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/56/A6/wKiom1SKXNuR6kIbAADfDJf-tc8853.jpg "title=" 1.png " alt= "Wkiom1skxnur6kibaadfdjf-tc8853.jpg"/>
Lab Step 1: Router basic IP configuration
R1 Basic configuration:
R1 (config) #int Lo0
R1 (config-if) #ip Add 1.1.1.1 255.255.255.0
R1 (config-if) #int s1/0
R1 (config-if) #ip add 192.168.12.1255.255.255.0
R1 (config-if) #no shut
R2 Basic configuration:
R2 (config) #int s1/0
R2 (config-if) #ip add 192.168.12.2255.255.255.0
R2 (config-if) #no shut
R2 (config-if) #int S1/1
R2 (config-if) #ip add 192.168.23.2255.255.255.0
R2 (config-if) #no sh
R3 Basic configuration:
R3 (config) #int s1/0
R3 (config-if) #ip add 192.168.23.3255.255.255.0
R3 (config-if) #no sh
R3 (config-if) #int S1/1
R3 (config-if) #ip add 192.168.34.3255.255.255.0
R3 (config-if) #no sh
R4 Basic configuration:
R4 (config) #int s1/0
R4 (config-if) #ip add 192.168.34.4255.255.255.0
R4 (config-if) #no sh
R4 (config-if) #int Lo0
R4 (config-if) #ip add 4.4.4.4 255.255.255.0
Lab Step 2:RIP Routing advertisement
R1 Configuration:
R1 (config) #router rip// start rip process
R1 (config-router) #network 1.1.1.1 //network command advertises each interface route, note RIPv1 is classfull< /c10> Protocol
R1 (config-router) # network 192.168.12.0
R2 Configuration:
R2 (config-if) #router RIP
R2 (config-router) #network 192.168.12.0
R2 (config-router) #network 192.168.23.0
R3 Configuration:
R3 (config) #router rip
R3 (config-router) #network 192.168.23.0
R3 (config-router) #network 192.168.34.0
R4 Configuration:
R4 (config-if) #router RIP
R4 (config-router) #network 192.168.34.0
R4 (config-router) #netwo 4.4.4.4
Experimental commissioning:
R1#showip rout// View R1 routing Table
C 192.168.12.0/24 is directly connected, serial1/0//r1 Direct-connect route via s1/0 interface
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0// ring-back direct-Connect routing
R 4.0.0.0/8 [120/1] via 192.168.12.2,00:00:21, serial1/0 // learn from RIP to class A Routing
R 192.168.23.0/24 [120/1] via 192.168.12.2, 00:00:21, serial1/0// Learn class C routing through RIP
R 192.168.34.0/24 [120/1] via 192.168.12.2, 00:00:21, serial1/0// Learn class C routing through RIP
The meaning of the routing entry "4.0.0.0/8 [120/1] via 192.168.12.2, 00:00:21, serial1/0" is as follows:
① R: Routing entries are learned through RIP routing protocols;
② 4.0.0.0/8: Destination network;
③ : The default administrative distance of RIP routing protocol;
④1: measure value, 1 hops from router R1 to network 4.0.0.0/8 ;// The problem comes, how can only 1 jump?
⑤ 192.168.12.2: Next hop address;//IP address of neighboring router interface
⑥ 00:00:03: The next update also has a (30-3) seconds;
⑦ serial1/0: The interface ofthis router R1 that receives the route entry .
r1#show IP Protocols // view R1 Routing Protocol
Routing Protocol is "RIP"// router is running on the routing protocol is RIP
Outgoing update filter list for all interfaces are not set// No filter lists in out direction
Incoming Update filter list for all interfaces are not set// No filter lists in direction
Sending updates every seconds, next due in the seconds// update period is a second, and the next update has a nanosecond
Invalid after-seconds, hold-down, flushed after// invalidation, suppression and refresh time
Redistributing:rip// only runs rip Protocol, no other protocol redistribution comes in
Default version Control:send version 1, receive any version// send route update for Release 1 , and receive routing updates for this version 1
Interface Send Recv triggered RIP key-chain
serial1/0 1 1 2
Loopback0 1 1 2
The above three lines show the interfaces that run the RIP protocol, and the version of RIP routing updates that can be received and sent
Automatic network summarization is in effect//rip routing protocol turns on auto-summarization by default
Maximum path:4//rip Routing protocol can support 4 equivalent paths, maximum 6
Routing for Networks:
1.0.0.0
192.168.12.0
The above three lines indicate the network that RIP advertises
Routing Information Sources:
Gateway Distance Last Update
192.168.12.2 120 00:00:13
Distance: (default is 120)
the above three lines indicate the routing information source, where:
Gateway: The interface address of the router that learns the routing information, that is, the next hop address
Distance: Managing Distances
Last update: How long before the update occurred
Distance: (default is 120)
default administrative distance is 120
"Note" To prevent updates from synchronizing , RIP sends updates with 15% errors, that is, the range of cycles that actually send updates is
25.5-30 seconds. // The teacher mentioned the point of attention during the class.
r1#debug IP Rip // This command can view the dynamic update process for RIP routing protocols.
DEC12 11:08:00.615:rip:sending v1 update to 255.255.255.255 via serial1/0 (192.168.12.1)
*DEC12 11:08:00.615:rip:build Update Entries
*DEC12 11:08:00.615:network 1.0.0.0 Metric1
r1#
*DEC12 11:08:09.095:rip:received v1 update from 192.168.12.2 on serial1/0
*DEC12 11:08:09.095:4.0.0.0 in 1 hops
*DEC12 11:08:09.099:192.168.23.0 in 1hops
*DEC12 11:08:09.099:192.168.34.0 in 1hops
R1#DEBUGIP RIP
*DEC12 11:08:18.631:rip:sending v1 update to 255.255.255.255 via Loopback0 (1.1.1.1)
*DEC12 11:08:18.631:rip:build Update Entries
*DEC12 11:08:18.631:network 4.0.0.0 Metric1
*DEC12 11:08:18.635:network 192.168.12.0metric 1
*DEC12 11:08:18.635:network 192.168.23.0metric 1
*DEC12 11:08:18.635:network 192.168.34.0metric 1//can seeRIPv1with broadcast updates (255.255.255.255),respectively toLoopback0and thes0/0/0Send routing updates, whiles0/0/0receive three route updates, respectively4.0.0.0, the measure value is1Jump;192.168.34.0,The measure value is1Jump;192.168.23.0, the measure value is1Jump. There's a problem here?
" Flash Update " Flash Update (flash update) means that when a measure of a path on the network changes, the router immediately issues updates, regardless of whether the cycle of regular routing information updates is reached.
Learning experience:
How the routing protocol initiates the process;
Router RIP, network *.*.*.* Operation command and its function;
The meaning of the routing table;
Debug commands: show IP route, show IP protocols, debug IP RIP, these commands I often forget.
This article is from the "Batman" blog, make sure to keep this source http://5740675.blog.51cto.com/5730675/1589149
RIPV1 Basic Configuration