Hi all -
What is the rule of thumb for BGP tracking and metric threshold?
I have set up a multihoned layout to resprents two links to an ISP (primary/backup), with the ISP sending me only a deafult route.
I currently amd trying this -
track 1 ip route 0.0.0.0 0.0.0.0 metric threshold
threshold metric up 199 down 200
The way i see this is - my current metric is 20 over the primary link and 199 is below this, if the link to the primary drops the metric would be 200 and so the track would go to down correct?
My real point of confustion is with the metic and this output - which makes me think the metric i am using above are wrong?
Router#sh track resolution
Route type Metric Resolution
I read the last post here - https://supportforums.cisco.com/thread/2119326 which gave me some idea.
I don't think you use wrong metric, because as I know metric resolution is important only for scaled metrics. Because bgp has a standard metric for ebgp and ibgp connections you can use the value of 200 and 199.
In my router ( 3700 Software (C3725-ADVIPSERVICESK9-M), Version 12.4(15)T6) I can't see bgp in sh track resol
R3#sh track resolution
Route type Metric Resolution
Did you read this article?
A part from it:
Perform this task to track the threshold of IP route metrics.
The track ip route command enables tracking of a route in the routing table. If a route exists in the table, the metric value is converted into a number. To provide a common interface to tracking clients, route metric values are normalized to the range from 0 to 255, where 0 is connected and 255 is inaccessible. Scaled metrics can be tracked by setting thresholds. Up and down state notification occurs when the thresholds are crossed. The resulting value is compared against threshold values to determine the tracking state as follows:
Tracking uses a per-protocol configurable resolution value to convert the real metric to the scaled metric. Table 1 shows the default values used for the conversion. You can use the track resolution command to change the metric resolution default values.
Table 1 Metric Conversion
Enhanced Interior Gateway Routing Protocol (EIGRP)
Open Shortest Path First (OSPF)
Intermediate System-to-Intermediate System (IS-IS)
1 RIP is scaled directly to the range from 0 to 255 because its
For example, a change in 10 in an IS-IS metric results in a change of 1 in the scaled metric. The default resolutions are designed so that approximately one 2-Mbps link in the path will give a scaled metric of 255.
Scaling the very large metric ranges of EIGRP and IS-IS to a 0 to 255 range is a compromise. The default resolutions will cause the scaled metric to go above the maximum limit with a 2-Mbps link. However, this scaling allows a distinction between a route consisting of three Fast-Ethernet links and a route consisting of four Fast-Ethernet links.