the original reason to use the gateway metric was to
provide a metric for your isp system that only
uses pd ipv6. so the metric for 2001:xxxx is largely
unpresant. in this system i do not have a metric in
place for 2001:xxxx . this means that since 2001:xxxx
is carried by the carrier address 2601:xxxx , we will
use the gateway to create long distance metric rather
than using a standard route for the more local addresses
of fe80::xxxx and 2601:xxxx .
1. trace the first route name server of the system(comcast)
tracert 2001:558:xxxx:xxxx
this system has 5 nameservers aside from the dns servers
of 2001:558:xxxx(your isp) and 2001:558:(your isp2). assuming that
the first server that is the start of authority is a
practical view of the habits of traffic to use tracert
and is a first step, however using tracert on the other
name servers and not the dns servers could give a better
metric value to the gateway of course averaging is needed.
2. count the used hops of 30 max. in our example and in
our network this was 22 hops. in ipv6 hop metrics can be
very long distance. the default is 1024(gateway). increasing
this number is desireable.
3. (max possible)65535 / 30(max possible hop metric) = 2184.5
4. 22 / 30 = 0.7333...
5. 0.7333... * 2184.5 = 1601.9666...
6. 1601.9666... = 1602(metric)
ip -6 route add default via 2601:204:xxxx dev br0 metric 1602
------------------------------
Adrian Aguinaga
B.S.C.M. I.T.T. Tech
(Construction Management)
A.A.S. I.T.T. Tech
(Drafting & Design)
------------------------------
Original Message:
Sent: 08-29-2023 04:40
From: WILSON CHENG
Subject: When to use metric instead of preferences in qualified-next-hop command?
I saw many examples showing qualified-next-hop with preference in static route, but I never seen using metric. Why?
Because we are running OSPF and also use static route qualified-next-hop metric for choosing the outbound next hop, it seems to work fine with the below example. But not sure if it works perfectly. Need some guidance.
For example:
set routing-options static route 10.192.1.1/32 qualified-next-hop 10.1.212.2 metric 100
set routing-options static route 10.192.1.1/32 qualified-next-hop 10.1.212.6 metric 1000
- Also, can we configure it with two metrics? Because most example shows only one preference or metric configured is sufficient.
------------------------------
WILSON CHENG
------------------------------