Opened 8 years ago

Closed 6 years ago

Last modified 4 years ago

#6514 closed defect (fixed)

DHCP Client (udhcp) clears all default routes.

Reported by: Craig M. Coffee <cmcoffee@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Kamikaze 8.09
Keywords: Cc:


The udhcp's default.script is clearing all default routes when it receives a new one, this should only remove and replace any default routes that are tied to the interface its enabled on.

eval $(route -n | awk '
/\W{9}('$valid_gw')\W/ {next}
/ {print "route del -net "$1" gw "$2" ";"}

Attachments (0)

Change History (3)

comment:1 Changed 8 years ago by Bryce Allen <ballen@…>

I came across this issue when doing multi-wan loadbalancing. I setup the first wan interface as the default route, and subsequent wan interfaces as higher metric default routes. When a wan port is down, I adjust the metrics, which all works fine unless a DHCP wan interface is involved, and wipes out the other default routes.

I'll test the fix and report back. It would be nice to have it fixed in the repo.

comment:2 Changed 6 years ago by nbd

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

fixed in recent versions

comment:3 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.