|
v4tunnels in ifupdown: msg#00238linux.busybox
Hello, The recent changes in ifupdown where all calls to 'ip link set' and 'ip addr set' are swapped give some problems with v4tunnels. For plain ipv4 and ipv6 interfaces it works correct, other methods not tried. The patch below change the behaviour back for v4tunnels only. Without the patch the following errors are shown: RTNETLINK answers: Network is down RTNETLINK answers: No route to host and the tunnel is not fully brought up With this patch all works as expected. Regards, Eric Spakman diff -ru busybox_old/networking/ifupdown.c busybox_ifupdown/networking/ifupdown.c --- busybox_old/networking/ifupdown.c 2003-07-29 09:37:39.000000000 +0200 +++ busybox_ifupdown/networking/ifupdown.c 2003-07-29 21:43:26.000000000 +0200 @@ -435,8 +435,8 @@ int result; result = execute("ip tunnel add %iface% mode sit remote " "%endpoint% [[local %local%]] [[ttl %ttl%]]", ifd, exec); - result += execute("ip addr add %address%/%netmask% dev %iface% label %label%", ifd, e xec); result += execute("ip link set %iface% up", ifd, exec); + result += execute("ip addr add %address%/%netmask% dev %iface% label %label%", ifd, e xec); result += execute("[[ ip route add ::/0 via %gateway% ]]", ifd, exec); return( result); } |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Some problems with busybox-1.0.0-pre1: 00238, Eric Spakman |
|---|---|
| Next by Date: | Re: patch to login, dmesg and obscure: 00238, Erik Andersen |
| Previous by Thread: | problem with start-stop-daemoni: 00238, Matthias Fuchs |
| Next by Thread: | Re: v4tunnels in ifupdown: 00238, Erik Andersen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |