changing metric in RIP

Home Forums Networking Cisco Routers & Switches How-to changing metric in RIP

This topic contains 5 replies, has 3 voices, and was last updated by Avatar theterranaut 13 years, 5 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • Avatar
    ahmer_sahab
    Member
    #117038

    Hi all,
    I want to change metric value of certain networks. I have two routers directly connected via serial ports. One routerA is hoting 172.16.0.0 and 10.0.0.0 network and another routerB is hosting 192.168.0.0 and 172.18.0.0. I want to change metric value of network 172.16.0.0 from 1 to 3 on routerB. Any one know how to do that, plz let me know.
    Regards

    Avatar
    theterranaut
    Member
    #285804

    Re: changing metric in RIP

    Hello Ahmer;

    any chance you could post your configs and a ‘sh ip route’ from each device?

    If the routers are only one hop from each other then no, I don’t think you can do this. RIP’s only metric value is hop count, and as the routers are only one hop from each other then the metric will be calculated as 1.

    And also: what are you trying to achieve from this? Is it a lab environment with a goal you need to reach? If you give us some more info then we can probably help further.

    theterranaut

    Avatar
    daviddavis
    Member
    #263633

    Re: changing metric in RIP

    Hi Ahmer_sahab,

    Yes, absolutely, this can easily be done with policy routing. Here is a link:

    http://www.cisco.com/en/US/products/ps6599/products_white_paper09186a00800a4409.shtml

    It would look something like:

    1. define an ACL to specify the traffic
    2. use route-map {modmetric}
    match acl
    set metric x

    Thanks,
    David

    Avatar
    theterranaut
    Member
    #285807

    Re: changing metric in RIP

    I stand corrected! (Although I am sitting down.)

    Thanks David-

    Avatar
    daviddavis
    Member
    #263634

    Re: changing metric in RIP

    Ahmer_sahab,
    I forgot to say that you need to apply the route-map to the interface (step 3) with:
    Router(config-if)#ip policy route-map test

    theterranaut – I appreciate your posts, you are a smart guy so don’t worry about it.

    Thanks,
    David

    Avatar
    theterranaut
    Member
    #285810

    Re: changing metric in RIP

    Quote from DD:
    “theterranaut – I appreciate your posts, you are a smart guy so don’t worry about it.”

    :beer:
    Thanks David! Praise indeed. Glad to be able to help on occasion, and, fwiw, I learn a lot from your posts.

    regards,

    tt

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.