Cisco Route Protocol RIP v2 (1)

Source: Internet
Author: User

Cisco Route Protocol RIP v2 (1)

This is not repeated. The one I made is RIP Version1. This is RIP Version2. If it is written into an article that is too long, it will be written separately.
 
* Note: This article is intended for the majority of users to learn. Some of them will mention some professional Internet terms or abbreviations. If you do not understand the network, you can learn and explore it together. If you have any questions, you can add QQ or YY. (QQ: 914560310, YY: 283755973) "//" is not a command output or description.
 
* Here, we can correct a problem mentioned in "RIP v1 (1,

When talking about the difference between RIP v1 and RIP v2, the multicast address of RIP v2 is 222.0.0.9.Actually it should be 224.0.0.9When I wrote this RIP v2, I read it. It may be a nervous mistake. I hope you will forgive me and remember it wrong,
 
Here, we will briefly introduce RIP v2:
 
-When a route update is sent, it carries a subnet mask, which is a classless routing protocol.
-When a route update is sent, the target address is the multicast address: 224.0.0.9.
-Supports VLSM (variable-length subnet mask) and CIDR (classless Inter-Domain Routing)
 
* We use a small experiment to better learn RIP v2 (basic configuration ):


First, configure the IP address and loopback port, and then enter the experiment:
 
R1 (config) # router rip // start the RIP route protocol.
R1 (config-router) # version 2 // start RIP version 2.
R1 (config-router) # no auto-summary // disable manual summary (enabled by default ).
R1 (config-router) # network 1.0.0.0
R1 (config-router) # network 192.168.12.0
R1 (config-router )#
 
Here, we will use R1 as an example to configure other routers in this way. When the loopback port on R4 is notified of the RIP Protocol, we will then conduct experimental debugging.
 
R1 # show ip route // view the route table.
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
 
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
4.0.0.0/24 is subnetted, 1 subnets
R 4.4.4.0 [120/3] via 192.168.12.2, 00:00:01, Serial0/3/0
C 192.168.12.0/24 is directly connected, Serial0/3/0
R 192.168.23.0/24 [120/1] via 192.168.12.2, 00:00:01, Serial0/3/0
R 192.168.34.0/24 [120/2] via 192.168.12.2, 00:00:01, Serial0/3/0
R1 #
 
Pass:R4.4.4.0 [1, 120/3]Via 192.168.12.2, 00:00:01, Serial0/3/0
 
It can be seen that RIP Version2 carries subnet information when notifying the network,
--------------------------------------
R1 # show ip protocols
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 18 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Redistributing: rip
Default version control: send version 2, receive 2
// R00002By default, only version 2 is received and sent..
* You can run the "ip rip send version" and "ip rip receive version" commands to control the versions that are received and sent on the router interface. For example, the s0/3/0 interface receives route updates for Version 1 and Version 2, but only sends route updates for version 2. The configuration is as follows:
// R1 (config) # interface s0/3/0
R1 (config-if) # ip rip send version 2
R1 (config-if) # ip rip receive version 1 2 //
 
Interface Send Recv Triggered RIP Key-chain
Loopback0 2 2
Serial0/3/0 2 2
Automatic network summarization is not in effect
Maximum path: 4
Routing for Networks:
1.0.0.0
192.168.12.0
Passive Interface (s ):
Routing Information Sources:
Gateway Distance Last Update
192.168.12.2 120 00:00:16
Distance: (default is 120)
R1 #
------------------------------------
* The following describes how to manually summarize r1_2:


The configurations of R1, R2, and R3 are the same as those in the experiment above. This time, we mainly use R4 for manual summarization. The R4 configuration is as follows:
* (Because some commands cannot be implemented in Cisco Packet software, I used "fan simulator 2.83" in this experiment. In fact, there is no difference, and the port may look at it. it's a little different. This is written in s0/3/0. We don't need to worry about s0/0. Here, I 'd like to remind you about the module issues ,)
 
R4 # configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R4 (config) # router rip
R4 (config-router) # version 2
R4 (config-router) # no auto-summary
R4 (config-router) # network 192.168.34.0
R4 (config-router) # network 4.0.0.0 // notify all loopback ports
R4 (config-router) # exit
 
In this step, we did not manually summarize the data, and then we went to R1 to view the route table:
 
R1 # show ip route
Codes: C-connected, S-static, 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
I-IS, su-IS summary, 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.12.0/24 is directly connected, Serial0/0
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
4.0.0.0/24 is subnetted, 4 subnets
R 4.4.0.0 [120/3] via 192.168.12.2, 00:00:18, Serial0/0
R 4.4.1.0 [120/3] via 192.168.12.2, 00:00:18, Serial0/0
R 4.4.2.0 [120/3] via 192.168.12.2, 00:00:18, Serial0/0
R 4.4.3.0 [120/3] via 192.168.12.2, 00:00:18, Serial0/0
R 192.168.23.0/24 [120/1] via 192.168.12.2, 00:00:18, Serial0/0
R 192.168.34.0/24 [120/2] via 192.168.12.2, 00:00:18, Serial0/0
R1 #
 
At this time, the four loopback ports on R4 appear in the routing table, and then we summarize the routes to view the status of the route table,
 
R4 (config) # interface s0/0
R4 (config-if) # ip summary-address rip 4.4.0.0 255.255.252.0 // Manual summary.
R4 (config-if )#
 
*(If you want to cancel the route summary, add "no" before the command"Example: no ip summary-address rip 4.4.0.0 255.255.252.0Similarly, if we want to cancel the command re-configuration in the configuration, add "no" before the command.)
 
Then we can view the route table on R1:
 
R1 # show ip route
Codes: C-connected, S-static, 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
I-IS, su-IS summary, 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.12.0/24 is directly connected, Serial0/0
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
4.0.0.0/22 is subnetted, 1 subnets
R 4.4.0.0 [120/3] via 192.168.12.2, 00:00:08, Serial0/0
R 192.168.23.0/24 [120/1] via 192.168.12.2, 00:00:08, Serial0/0
R 192.168.34.0/24 [120/2] via 192.168.12.2, 00:00:08, Serial0/0
R1 #
The preceding output indicates that R1 receives the route summary, and R2 and R3 also receive the route summary.
--------------------------------------
 
** Now, Lo0 ~ The LO3 address is changed to 192.168.96.4/24,192.168 .97.4/24,192.168 .98.4/24 and 192.168.99.4/24 respectively. Can route aggregation be implemented on the s0/0/0 interface?
In fact, it cannot,
 
Under my configuration, verify that the R4 configuration is as follows:
R4 # config terminal
Enter configuration commands, one per line. End with CNTL/Z.
R4 (config) # router rip
R4 (config-router) # version 2
R4 (config-router) # no auto-summary
R4 (config-router) # net 192.168.96.0 // notify loopback Port
R4 (config-router) # net 192.168.97.0
R4 (config-router) # net 192.168.98.0
R4 (config-router) # net 192.168.99.0
R4 (config-router) # exit
R4 (config) # inter s0/0
R4 (config-if) # ip summary-address rip 192.168.96.0 255.255.252.0
 Summary mask must be greater or equal to major neT
R4 (config-if )#
The above output router prompts a summary failure:"Summary mask must be greater or equal to major neT
"The prompt information displayed in this statement indicates that the summary of the mask in ascending order must be greater than or equal to the Mask Length of the main class network. Because" 22 <24 ", it cannot be summarized.
*Therefore, r00002CIDR not supportedSummary, but CIDR can be passedSummary.
The solution is as follows:
R4 (config) # ip route 192.168.96.0 255.255.252.0 null 0// Use a static route to publish a name of the summarized route "0". If necessary, you can write 1, 2, 3, and so on.
R4 (config) # router rip
R4 (config-router) # version 2
R4 (config-router) # redistribute static// Redistributes static routes to the RIP network.
R4 (config-router) # no net 192.168.96.0 // cancel the loopback port network announcement.
R4 (config-router) # no net 192.168.97.0
R4 (config-router) # no net 192.168.98.0
R4 (config-router) # no net 192.168.99.0
R4 (config-router )#
 
Then go to R1 to view the route table:
R1 # show ip route
Codes: C-connected, S-static, 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
I-IS, su-IS summary, 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.12.0/24 is directly connected, Serial0/0
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
R 192.168.23.0/24 [120/1] via 192.168.12.2, 00:00:00, Serial0/0
R 192.168.34.0/24 [120/2] via 192.168.12.2, 00:00:00, Serial0/0
R 192.168.96.0/22 [120/3] via 192.168.12.2, 00:00:00, Serial0/0
R1 #
The above output of this experiment indicates that RIP Version2 can transmit the CIDR summary information.


New Year2013.I hope you will receive new gains from the Internet. Bring your computer level to the next level ~
Wish you a happy New Year ~
Red/Black alliance Up ~

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.