I have encountered a very weird error on ubuntu-server (8.04), I have no idea why dhclient is not allowed to set the network settings! I'm not the one who installed the server in the first place, so i don't know much about the setup. The server is only used as a firewall/gateway (custom iptables script) it's got three nic's one for internet, one for LAN and one for DMZ. Now the ISP have changed settings from static ip to "static" ip assigned through dhcp, and i cant really use it.
Sadly I can't just set the IP statically since the ISP closes my connection when the dhcp lease ends :o
This is the error i get: (and then it just hangs there..)
root@fw:~# dhclient eth2 Internet Systems Consortium DHCP Client V3.0.6 Copyright 2004-2007 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ SIOCSIFADDR: Permission denied SIOCSIFFLAGS: Permission denied SIOCSIFFLAGS: Permission denied Listening on LPF/eth2/00:50:52:c1:a1:32 Sending on LPF/eth2/00:50:52:c1:a1:32 Sending on Socket/fallback DHCPDISCOVER on eth2 to 255.255.255.255 port 67 interval 8 DHCPOFFER of 188.8.131.52 from 184.108.40.206 DHCPREQUEST of 220.127.116.11 on eth2 to 255.255.255.255 port 67 DHCPACK of 18.104.22.168 from 22.214.171.124 SIOCSIFADDR: Permission denied SIOCSIFFLAGS: Permission denied SIOCSIFNETMASK: Permission denied SIOCSIFBRDADDR: Permission denied SIOCSIFFLAGS: Permission denied SIOCADDRT: Operation not permitted
for now i've fixed it by running
killall dhclient; dhclient eth2 every hour and then setting static IP settings for the interface, this is enough to keep the connection live! but it's a pretty ugly hack in my opinion..