DHCP over WiFi on CentOS 6 [closed]
- by dongle26
Using CentOS 6 I cannot get my WiFi interface to configure over DHCP. Here is my ifcfg-wlan0:
This does not work (although it is correct):
DEVICE=wlan0
BOOTPROTO=dhcp
ONBOOT=yes
HWADDR=xx:xx:xx:xx:xx:xx
TYPE=Wireless
This works:
DEVICE=wlan0
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.0.253
NETMASK=255.255.255.0
DNS1=192.168.0.99
GATEWAY=192.168.0.99
HWADDR=xx:xx:xx:xx:xx:xx
TYPE=Wireless
I don't want a static IP address, I want a DHCP assigned address.
Update: Both of the above configs are correct.
Please don't downvote, this really didn't work for me. It must be a bug in CentOS or my wireless driver. See my answer for details.