I have an Arch Linux install in a VirtualBox VM, and as I'm working all of a sudden, it will lose its dynamic IP address.
When this happens, if I check on the status of the
dhcpcd service, it says it's running.
$ systemctl status dhcpcd.service Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service: enabled) Active: active (running) since Sat 2013-09-28 20:10:32 EDT; 49min ago Main PID: 166 (dhcpcd)
I can try to restart the service, but it does not establish an IP.
$ sudo systemctl restart dhcpcd.service
**No output is returned from the command*
I can set an address manually, and it will work for a while, but then it'll drop again after a few minutes.
$ sudo ifconfig enp0s3 10.0.0.109 netmask 255.255.255.0 up $ sudo route add default gw 10.0.0.1
I can also run
dhcpcd manually, and it will successfully get an IP address, but again it will drop after a few minutes.
$ sudo dhcpcd enp0s3 dhcpcd: sending commands to master dhcpcd process
I have tried disabling
dhcpcd.service and using
email@example.com, but it has the same results. Any ideas?