how to configure ripv2 on your router or layer 3 switch

RIPV2 (Routing Information Protocol Version 2) is an interior gateway protocol which has greater capabilities than its preceding RIP and is backward compatible. It is a distance-vector routing protocol. RIP V2 uses UDP protocol to exchange routing information every 30 seconds and determines the best route by doing hop count or number of routers to the destination with maximum allowable hop count of 15 by default. The administrative distance of RIP is 120.

RIP Version 2 is updated version of RIP that supports plain text and Message Digest 5 (MD5) authentication, route summarization, classless interdomain routing (CIDR), and variable-length subnet masks (VLSMs).

To Enable RIP basically turn on the protocol with router rip command and network command.

Example of Enable RIP on a router or layer 3 switch

Router#conf t
Router(config)#no ip route 0.0.0.0 0.0.0.0
Router(config)#router rip
Router(config-router)#vers 2
Router(config-router)#network 10.20.0.0
Router(config-router)#network 10.30.0.0
Router(config-router)#network 10.40.0.0
Router(config-router)#no auto-summary

In the example above, we simply removed any static routing and enabled RIP with three remote networks configured. If not removed, static routing will override RIP because of its administrative distance of 1 but there is no default gateway for unknown networks in this configuration.

Use the command show ip route to see the routing table and parameters used to advertise remote networks.

Publisher: abdirahman isse

Share this post