Modify

Opened 6 years ago

Closed 6 years ago

#11090 closed defect (fixed)

restarting network from DHCP to static doesn't kill udhcpc

Reported by: vsync@… Owned by: developers
Priority: normal Milestone: Netifd Implementation
Component: packages Version: Trunk
Keywords: network DHCP client udhcpc restart reboot Cc: james@…

Description

I installed r30753 on a new router the other day and initially used the stock settings, then set up my static IP info. Once done, I ran "/etc/init.d/network restart" and all was glorious. Until today when I guess the DHCP client woke up and either grabbed or was informed of a DHCP lease update, and reset eth1 to a dynamic IP.

Investigation revealed udhcpc was still running on that interface. On rebooting, it was no longer running. Unless there's some daemon which might be starting udhcpc, my guess is there's a bug in the network script which should be killing udhcpc on "stop" and/or the initial phase of "restart", or at least if the config changes from "option proto dhcp" to "option proto static" for that interface.

I'm happy to help with a patch if I can get some pointers on where I'd start, BTW.

Thanks

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by jow

  • Milestone changed from Attitude Adjustment (trunk) to Netifd Implementation

comment:2 Changed 6 years ago by nbd

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

netifd fixes this, it is now enabled by default.

Add Comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.