Get dhcp IP address at boot
I just installed Arch for the first time. I would like by network interface, enp0s25, to get a dynamic ip address at boot. How do I do this?
I read this document: https://wiki.archlinux.org/index.php..._using_systemd, and under: "Persistent configuration on boot using systemd" the document tells how to get a static ip address at boot. I want a dynamic IP address though. Any help would be much appreciated. Thanks. |
I forgot to mention that this is what I run to assign the IP address:
Code:
dhcpcd enp0s25 |
Code:
# systemctl start dhcpcd.service Make sure all other network-related services are stopped & disabled or they will conflict with dhcpcd. |
Quote:
|
Quote:
If you want to use the interface-specific service (for example, if you are assigning static ip's to your wireless interface) you can use: Code:
# systemctl start dhcpcd@enp0s25.service |
All times are GMT -5. The time now is 03:33 AM. |