Opened 12 years ago

Closed 11 years ago

Last modified 4 years ago

#138 closed defect (fixed)

udhcpc script cause wan connection drops on dhcp mode

Reported by: tapio.haapala@… Owned by: florian
Priority: high Milestone: Barrier Breaker 14.07
Component: base system Version:
Keywords: Cc:


OpenWRT drop sometimes tcp connections if wan interface is on dhcp mode.
Reason is on /usr/share/udhcpc/

if [ -n "$router" ] ; then

echo "deleting routers"
while route del default gw dev $interface ; do :; done

for i in $router ; do

route add default gw $i dev $interface



Udhcpc call that script with renew parameter also when link is up and udhcpc do normal timed renew request. Script delete default route on every ip renew and set them back. So very active connection can get icmp no route to host message and client drop connection.

Script must do somekind werify and change route only if its changed.
Maybe good idea is make same kind solution also to other configs on that script.

Fature add:
On same time with that fix its good to make new feature for nvram parameter like wan_staticdhcp what only ask dhcp settings from server but use static configs. Wery usefull if you want use you own dns servers or use multiple routing tables. Now udhcpc owerwrite all static changes on every renew.

I test take of that script and its help to connection dropping problem. Yesterday I get dropped from irc about 20 times. In the morning I remove that script and after that connection is has been stable. I do not have skills to make that werify feature with sh, so I hope that someone else write that fix.

Attachments (0)

Change History (7)

comment:1 Changed 12 years ago by florian

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r2913, thanks for submitting !

comment:2 Changed 11 years ago by des@…

  • Resolution fixed deleted
  • Status changed from closed to reopened

As mentioned on irc this fix was dropped at some point

comment:3 Changed 11 years ago by florian

  • Owner changed from developers to florian
  • Status changed from reopened to new

comment:4 Changed 11 years ago by florian

  • Status changed from new to assigned

comment:5 Changed 11 years ago by florian

  • Milestone set to Kamikaze

comment:6 Changed 11 years ago by florian

  • Resolution set to fixed
  • Status changed from assigned to closed

Should be fixed with [7215]

comment:7 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.