mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* In kernel routing table vs. /sbin/ip vs. /sbin/route
@ 2002-01-06 20:23 Dave Zarzycki
  2002-01-06 21:36 ` Martin Schewe
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Zarzycki @ 2002-01-06 20:23 UTC (permalink / raw)
  To: linux-kernel

Using /sbin/route, I can add multiple default routes like so:

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

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

/sbin/ip route add default via 192.168.0.1
/sbin/ip route add default via 192.168.0.2
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 
defined?

Thanks,

davez

-- 
Dave Zarzycki
http://zarzycki.org/~dave/


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-01-06 21:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-06 20:23 In kernel routing table vs. /sbin/ip vs. /sbin/route Dave Zarzycki
2002-01-06 21:36 ` Martin Schewe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome