• question about preference and metric in "ip route" command

    From dshwatrz@gmail.com@1:0/0 to All on Tue Jun 25 15:49:12 2013

    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

    --- MBSE BBS v1.0.0 (GNU/Linux-i386)
    * Origin: The Kofo System II BBS telnet://fido2.kofobb
  • From Pascal Hambourg@110:110/2002 to All on Fri Jun 28 23:00:26 2013

    Reply-To: pascal.news@plouf.fr.eu.org

    Hello,

    dshwatrz@gmail.com a ‚crit :

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

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

    --- MBSE BBS v1.0.0 (GNU/Linux-i386)
    * Origin: Plouf ! (110:110/2002@linuxnet)