Hi, I was recently going through the how to located here: http://wiki.centos.org/HowTos/Laptops/WpaSupplicant This how-to shows the steps to follow to get a wifi interface working without using NetworkManager and subsequently how to have wireless working withouth having a user login. Anyways, when going through this I was having issues because everything seemed to work but I was never getting an IP address when the system booted up. After lots of looking at this and working at understanding what everything does I found the that prepnet startup script was killing dhclient using this command: killall dhclient >/dev/null 2>&1. I first attempted to remove this and after that didn't work I simply changed the line to call dhclient instead. Making this change seems to have solved my issues. I'm wondering if this guide was built more for someone using a static as opposed to a dynamic IP address? I'm not sure why dhclient is being killed especially since calling it seems to have worked for me. Anyways, does anyone have any ideas if I'm doing something wrong or if the documentation needs a refresher and maybe a step or two on configuration for static vs dynamic ip addresses? Thanks, Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos-docs/attachments/20130606/bc7ab5f5/attachment-0006.html>
On 06/06/2013 01:13 AM, Dan King wrote:> Anyways, when going through this I was having issues because everything > seemed to work but I was never getting an IP address when the system > booted up. > > After lots of looking at this and working at understanding what > everything does I found the that prepnet startup script was killing > dhclient using this command: > > killall dhclient >/dev/null 2>&1. > > I first attempted to remove this and after that didn't work I simply > changed the line to call dhclient instead. Making this change seems to > have solved my issues.I wrote the guide, and I put the killall command there because dhclient sometimes failed when I restarted the network service. I double-checked everything, and the wiki page shows exactly how I have it configured on my laptop. Could you post the contents of your ifcfg file for this interface? In my example below the bootproto is set to dhcp, which starts the dhclient program when the interface is brought up. c DEVICE="wlan0" BOOTPROTO="dhcp" IPV6INIT="yes" IPV6_AUTOCONF="yes" NM_CONTROLLED="no" ONBOOT="yes" TYPE="Ethernet" UUID="609ad8d9-785e-4508-978a-552b9a3bda7e" HWADDR=08:3E:8E:B9:8C:7B DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no NAME="System wlan0"
Possibly Parallel Threads
- NetworkManager updating resolv.cfg
- Libvirt resume guest startup issues centos 7
- RPC server not available when windows client attempts to join samba AD
- Centos 7 - "Device eth1 does not seem to be present, delaying initialization".
- Centos6.5 -- Broadcom BCM4313 -- having trouble connecting