Hi,
Yes, I tried 'dev eth0' on its own and it
didn't work.
In what was did it not work?
There seems to be a default metric=0 parameter on the
ip command, if
metric is not explicitly specified.
If the metric is 0, the 'ip addr show' shows no metric information:
root@ryvius:~# ip route add default via 85.119.80.1 dev eth0 metric 0
root@ryvius:~# ip -4 route show
85.119.80.0/21 dev eth0 proto kernel scope link src 85.119.83.253
default via 85.119.80.1 dev eth0
What's wrong with that?
From 'man route':
-----
Metric The ’distance’ to the target (usually counted in hops).
It is not used by recent kernels, but may be needed by
routing daemons.
-----
You should only ever have to set the metric manually in order to make a
route be considered expensive. It's only really an important value when
there's a choice of routes.
Regards,
@ndy
--
andyjpb(a)ashurst.eu.org
http://www.ashurst.eu.org/
0x7EBA75FF