06-03-2019 01:58 PM
Hello guys
I've been working on some project in Cisco Packet tracer for last few days.I build my network,set every addresses and conections between routers etc.Today I started dealing with metrics (Im using RIPv2 protocol in all routers) and I got a bit confused.I understand that in RIP protocol metrics mean amount of hops and by default it is 15 nad 16 will be dropped.But when I changed it to 3 I still could ping networks that were more than 3 hops away.So my question is what exectly set metric does in RIPv2 protocol ?
Thanks
Solved! Go to Solution.
06-04-2019 06:42 AM
Hello BogusLaw,
see the following command reference for route-map commands
https://www.cisco.com/c/en/us/td/docs/ios/iproute_pi/command/reference/iri_book/iri_pi1.html
I think in your case you should use something like
router rip
distribute-list route-map 1 out eth1
However, the meaning is the same it can set the metric for updates sent out of Eth1, but does not provide an upper limit to metric.
Hope to help
Giuseppe
06-03-2019 02:56 PM
Could you share an image of the command you enter to set the metric in RIPv2?
Regards
06-04-2019 06:08 AM
06-04-2019 06:42 AM
Hello BogusLaw,
see the following command reference for route-map commands
https://www.cisco.com/c/en/us/td/docs/ios/iproute_pi/command/reference/iri_book/iri_pi1.html
I think in your case you should use something like
router rip
distribute-list route-map 1 out eth1
However, the meaning is the same it can set the metric for updates sent out of Eth1, but does not provide an upper limit to metric.
Hope to help
Giuseppe
06-04-2019 09:46 AM
06-03-2019 10:44 PM
When u set the metric in Rip it does not mean that router is set for only X number of hops techs usually set it at a standard 5. Try setting it to 1 u should still be able to ping all rip routers.
06-03-2019 11:35 PM
Hello BogusLaw,
the normal use of the command set metric for RIPv2 is inside a route-map for redistribution.
Example:
ip access-list 10 192.168.10.0 0.0.0.255
route-map RED-CONN permit 10
match address 10
set metric 3
!
router rip
version 2
redistribute connected route-map RED-CONN
!
In this context the set metric command provides the so called seed metric: the redistributed route will have an initial metric of 3.
For the way RIP works this means that the route will be advertised and will be reachable and usable ten router hop away.
In any case, the set metric does not provide an upper limit for the metric in RIP but instead it provides the initial/seed metric for routes injected into RIP via redistribution (external routes, but RIP is not able to discriminate external routes from internal routes, this is possible for EIGRP or OSPF).
Hope to help
Giuseppe
06-04-2019 06:31 AM
06-06-2019 08:11 PM
The RIP metric is composed of hop count, and the maximum valid metric is 15. Anything above 15 is considered infinite; you can use 16 to describe an infinite metric in RIP. When redistributing a protocol into RIP, Cisco recommends that you use a low metric, such as 1. A high metric, such as 10, limits RIP even further. If you define a metric of 10 for redistributed routes, these routes can only be advertised to routers up to 5 hops away, at which point the metric (hop count) exceeds 15. By defining a metric of 1, you enable a route to travel the maximum number of hops in a RIP domain. But, doing this increases the possibility of routing loops if there are multiple redistribution points and a router learns about the network with a better metric from the redistribution point than from the original source, as explained in the Administrative Distance section of this document. Therefore, you have to make sure that the metric is neither too high, preventing it from being advertised to all the routers, or too low, leading to routing loops when there are multiple redistribution points.
I found this its why we just take a medium 5 or even lower as u see is actually better. Metric 3 does not mean rip can reach routers 3 hops away.
route-map RED-CONN permit 10
match address 10 ?
your above config is telling your route-map to permit whatever ACL #10 is saying to do this has nothing to do w/RIPv2 metric.
06-07-2019 02:14 AM
Hello BogusLaw,
as explained well by delasandro the complete configuration of my example included a set metric 3.
All the commands together contribute to the example
route-map RED-CONN permit 10 ! defines a route-map clause routes matching will be redistributed
match address 10 ! defines which subnets will be a match only those with a permit in ACL 10
set metric 3 ! defines the seed/initial metric and can limit the scope of the route because max usable is 15
router rip
redistribute connected route-map RED-CONN
!
RIP has no knowledge of external routes, it cannot understand if a route was generated with a network command or it is coming from a redistribution.
Again the seed metric that is chosen is just the initial metric of the route.
Hope to help
Giuseppe
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide