Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.networking > #2222 > unrolled thread

question about preference and metric in "ip route" command

Started bydshwatrz@gmail.com
First post2013-06-25 08:49 -0700
Last post2013-06-29 01:00 +0200
Articles 2 — 2 participants

Back to article view | Back to comp.os.linux.networking


Contents

  question about preference and metric in "ip route" command dshwatrz@gmail.com - 2013-06-25 08:49 -0700
    Re: question about preference and metric in "ip route" command Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-06-29 01:00 +0200

#2222 — question about preference and metric in "ip route" command

Fromdshwatrz@gmail.com
Date2013-06-25 08:49 -0700
Subjectquestion about preference and metric in "ip route" command
Message-ID<6e9112df-8f19-4e24-ade9-60a3c2789048@googlegroups.com>
Hello,

Any ideas - is there a difference between preference and metric:

ip route add 1.2.3.4 via 192.168.2.1  preference 6
ip route add 1.2.3.5 via 192.168.2.1  metric 2 preference 8

It seems that in the second case, running "metric 2 preference 8" seems to override the 2 with 8, and in fact the metric and  preference are synonyms.
Or am I wrong ? 

ip route show:
gives:
1.2.3.4 via 192.168.2.1 dev eth1  metric 6
1.2.3.5 via 192.168.2.1 dev eth1  metric 8

regards,
David

[toc] | [next] | [standalone]


#2231

FromPascal Hambourg <boite-a-spam@plouf.fr.eu.org>
Date2013-06-29 01:00 +0200
Message-ID<kql4i8$4sm$1@saria.nerim.net>
In reply to#2222
Hello,

dshwatrz@gmail.com a écrit :
> 
> Any ideas - is there a difference between preference and metric:

No, according to the ip(8) man page.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.os.linux.networking


csiph-web