Tuesday, 11 March 2014
Troubleshooting DHCP Network issues on Arch Linux
Its a major issue if DHCP stops working on your Arch Linux setup. If you are using Network Manager and dhcpcd (DHCP client) these steps should hopefully get your back on the network.
Check the logs :
$ sudo journalctl -b | egrep -i "dhclient|dhcpd"
If you do not see traffic similar to :
Mar 11 21:17:20 arch dhclient: DHCPDISCOVER on wlp1s0 to 255.255.255.255 port 67 interval 6
Mar 11 21:17:22 arch dhclient: DHCPREQUEST on wlp1s0 to 255.255.255.255 port 67
Mar 11 21:17:22 arch dhclient: DHCPOFFER from 192.168.0.1
Mar 11 21:17:22 arch dhclient: DHCPACK from 192.168.0.1
Then there is a good chance that the Network Manager is not configured for DHCP.
$ sudo vi /etc/NetworkManager/NetworkManager.conf
Once updated restart the service
$ sudo systemctl restart NetworkManager
You should now hopefully have a network connection!