From CCIE Study Wiki
RIP is an older distance-vector routing protocol suitable for use in small, homogeneous networks.
Theory
Routing Information Protocol or RIP is the classic distance-vector routing protocol. It was documented in RFC 1058. The CCIE exams test on version 2 of this protocol. When enabled with default settings, RIP only sends v1 messages but listens to both v1 and v2 messages.
RIPv2 sends multicast updates (v1 used broadcast packets) on UDP port 520 to 224.0.0.9. Unlike more dynamic routing protocols such as OSPF or EIGRP, RIP forms no formal neighbor relationships and uses no hello packets. RIP sends all of it's routes with each update (full updates).
RIP uses hop count as it's routing metric. The hop count is the number of routers that can be transversed in a route, up to a maximum of 15. When advertising hop counts for routes to its peers, an RIP router will add 1 for each route. Connected routes have a hop count of 0, and a hop count of 16 indicates an unreachable route.
RIP utilizes a number of basic timers for its operation:
- Update - Cisco IOS RIP sends updates of it's routing information every 30 seconds out RIP-enabled interfaces.
- Invalid - Amount of time after which RIP will mark a route as invalid if no updates for it are heard. 180 seconds by default. When this expires, RIP will mark the route as infinite (hop count 16) and advertise it as unreachable; but the route will still be used to forward packets on.
- Flush - This timer starts after the invalid timer expires. When the flush timer expires for a route, the route will be removed from the routing table.
- Holddown - Cisco-proprietary timer. A 180 second timer that starts when a route's metric changes. RIP will not accept new sources of updates for this route until the timer expires.
The network command (always used in classful form) is used to advertise locally connected routes. When receiving a RIP update, a route must be in the routing table as a RIP route in order to be processed. If the route is listed as another protocol it will not be considered locally or passed along to other peers.
Commands
- router rip (global) - Enables the RIP protocol on the router and enters the CLI into router configuration mode.
- network ip-address (router) - Associates a network with the RIP process
- timers basic update invalid holddown flush [sleeptime] (router) - Command to adjust the default RIP timers. The sleeptime timer allows you to delay the RIP regular updates after receiving a triggered update.
Default Settings
- RIP will send messages in v1 format and listen to both v1 and v2 messages by default.
- 30 second update timer
- 180 second invalid timer
- 240 second flush timer
- 180 second holddown timer
Verification
Troubleshooting, Tips, and Tricks
Online Resources
Synjunkie].
Have something to contribute? See a mistake on this page? Have a hint or a link to share?
The CCIE Study Wiki is open to everyone to edit! All you need to do is to create an account to start contributing.
Please be sure to follow our posting guidelines when editing the wiki.
Maybe you have just have some thoughts or suggestions for this entry?
Use the Discussion link on the top or bottom menu to create or join the CCIE forum post on this topic.
You can also go straight to the CCIE Forums and start a new discussion in the forum of your choice.
If you'd rather just contact us with your thoughts, we'd love to hear what you have to say.