[lkml]   [2002]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectIn kernel routing table vs. /sbin/ip vs. /sbin/route
    Using /sbin/route, I can add multiple default routes like so:

    /sbin/route add -net default gw
    /sbin/route add -net default gw

    But I cannot do the same with /sbin/ip:

    /sbin/ip route add default via
    /sbin/ip route add default via
    RTNETLINK answers: File exists

    Given that /sbin/ip is the more powerful and modern tool, I'm lead to
    believe that /sbin/route might be leaving the in kernel routing table in a
    weird state.

    My two simple questions are as follows:

    1) Which tool is more correct?

    2) What is the behavior of the kernel when multiple default routes are



    Dave Zarzycki

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:15    [W:0.020 / U:1.972 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site