The Journey of a Network Engineer

Oct 7 2011   1:39AM GMT

How to change metrics in RIP?

Sulaiman Syed Profile: Sulaiman Syed

RIP is really undesired protocol. It has a slow convergence by default, and generates lot of traffic. On the positive side, it is one of the easiest routing protocols to configure. One network statement command, and you are done.

Generally, using RIP is not recommended. There are better alternative, from OSPF to EIGRP. These are more robust, and faster routing protocols. But in case someone used RIP, then how to change metrics in RIP?

The metric is calculated based on the number of hops. Maximum hop count is 16 (which means infinity). We can change the hop count (metric) by using the “Offset-list”. First, lets examine the syntax of this command.

“R3(config-router)#offset-list number in|out offset,” number is the access list number, 0 means all routes. in/out are the direction of route to change, and lastly offset is value between 0-16.

Here is an example, before and after the changes.

R5(config)#do show ip route rip

155.1.0.0/16 is variably subnetted, 11 subnets, 2 masks

R        155.1.13.0/24 [120/1] via 155.1.0.3, 00:00:27, Serial1/0

R        155.1.23.0/24 [120/1] via 155.1.0.3, 00:00:27, Serial1/0

R        155.1.37.0/24 [120/1] via 155.1.0.3, 00:00:27, Serial1/0

R5(config)#access-list 5 permit 155.1.37.0 0.0.0.255

R5(config-router)#offset-list 5 in 5

R5(config-router)#do show ip route rip

155.1.0.0/16 is variably subnetted, 11 subnets, 2 masks

R        155.1.13.0/24 [120/1] via 155.1.0.3, 00:00:18, Serial1/0

R        155.1.23.0/24 [120/1] via 155.1.0.3, 00:00:18, Serial1/0

R        155.1.37.0/24 [120/6] via 155.1.0.3, 00:00:18, Serial1/0

Well, that was very simple and straight forward. we have increased the hop count by 5. Thus, we can manipulate the routing table. of course, there is the possibility of using route-filtering as well.

 Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: