Skip to contentSkip to conversation

set route

DISCUSSION Jean-Jacques Sarton 1 participant 1 message Apr 3, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I think there is a little bug within the portion of code for setting the network routing.
If I issue the following

ip li se dev x down; ip li se dev x up;\
ip ad ad 2001:db8:1:1::2/64 dev X;\
ip ro ad 2001:db8:1:1::/64 via 2001:db8:1:1::2 dev X

All id OK. If I insert a sleep 2 between set addr
and set route, I will get the error message:
RTNETLINK answers: No route to host

This seem, for me to be a BUG. The address is known and therefore there is a route.
If the addresse for the gateway is outside, this may make sense, but for a static route I expect that the route is set regardless of the knowledge of the addresse.

Do you have an explanation for the problem and if
this is a bug, will it be fixed ?

Regards,

Jean-Jacques Sarton
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAk96jvkACgkQM9JbiR3CwQskpACeMj0S6q5IYD9FhwGLOZZjWeKr A3sAn1s99YK7aacxQ+Eiqb9MI4CaWDs+
=yLUY
-----END PGP SIGNATURE-----