IP changes after some time causing problems with network mounts
The problem is I get a samba disconnection after my ip changes due to a dhcp request.
For some unknown reason I have two dhclient processes running:
$ ps ax | grep dhclient
7768 ? S 0:00 /sbin/dhclient -1 -lf /var/lib/
21430 ? S<s 0:00 dhclient3 -pf /var/run/
31550 pts/1 R+ 0:00 grep dhclient
Note: dhclient is a symlink to dhclient3
Note: if you have multiple networking devices in use (wired and wireless, e.g.) you will have two processes as well, but with different ethX
They seem to cause the ip of the device to change after some time (5 minutes to a few hours). This wouldn't be too much a problem, if the mounted network drives would not break after this happens.
Maybe it's not the dhclient processes running that cause this problem, but it's the only point I noticed. It also seems this happens only on machines that were updated to 7.04.
Shouldn't the dhclient processes notice, that there's already a pid file (since they are started with the same pid file configuration -pf) and not start another process?
It might also help to find out what starts the second (or first) process.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- David Rekowski
- Solved:
- Last query:
- Last reply: