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 is variably subnetted, 11 subnets, 2 masks

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

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

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

R5(config)#access-list 5 permit

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

R5(config-router)#do show ip route rip is variably subnetted, 11 subnets, 2 masks

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

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

R [120/6] via, 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.

2  Comments 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
  • ndeepak
    Its a good comment , thanks for teaching me. Do you know how to manipulate distance in RIP. I used distance command in RIP which is not working. please check and give the correct one.

    Thanks, Deepak.
    0 pointsBadges:
  • Sulaiman Syed
    Why it didnt work? it worked fine for me. R6#show run | sec rip router rip version 2 network network distance 80 ! R6#show ip route rip is variably subnetted, 13 subnets, 2 masks R [80/1] via, 00:00:22, Ethernet0/0.56 R [80/1] via, 00:00:22, Ethernet0/0.56
    130 pointsBadges:

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:

Share this item with your network: