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[4083]: DHCPDISCOVER on wlp1s0 to 255.255.255.255 port 67 interval 6
Mar 11 21:17:22 arch dhclient[4083]: DHCPREQUEST on wlp1s0 to 255.255.255.255 port 67
Mar 11 21:17:22 arch dhclient[4083]: DHCPOFFER from 192.168.0.1
Mar 11 21:17:22 arch dhclient[4083]: DHCPACK from 192.168.0.1


Then there is a good chance that the Network Manager is not configured for DHCP.

Check :

$ sudo vi /etc/NetworkManager/NetworkManager.conf

Contains :

[main]
plugins=keyfile
managed=true
dhcp=dhcpcd


Once updated restart the service

$ sudo systemctl restart NetworkManager

You should now hopefully have a network connection!

No comments:

Post a Comment