Hi, every time I boot my pc on arch, I have to manually enter dhcpcd + the interface name in order to make the ethernet working.
It becomes annoying after a while... is there a way to fix it?
Here is the output on the terminal.
[gui@localhost ~]$ sudo dhcpcd enp2s0
[sudo] password for gui:
enp2s0: waiting for carrier
enp2s0: carrier acquired
enp2s0: IAID 28:88:d2:cf
enp2s0: adding address fe80::7c11:f166:e00b:479d
enp2s0: soliciting a DHCP lease
enp2s0: offered 192.168.0.192 from 192.168.0.1
enp2s0: probing address 192.168.0.192/24
enp2s0: soliciting an IPv6 router
enp2s0: Router Advertisement from fe80::5667:51ff:fe29:2437
enp2s0: adding address 2a02:1811:417:b100:ee74:d230:aa42:699d/64
enp2s0: adding route to 2a02:1811:417:b100::/64
enp2s0: adding default route via fe80::5667:51ff:fe29:2437
enp2s0: requesting DHCPv6 information
forked to background, child pid 1268
Last edited by billythekidd (2017-02-18 13:52:51)
Why don't you start it via its systemd .service?
See dhcpcd running
Just a heads up.
Before you go 'systemctl enable dhcpcd.service' or 'systemctl enable email@example.com' think about whether or not you are going to use a DE.
If you are using a DE, go for the NetworkManager approach and do _NOT_ enable the dhcpcd service since it will slow down your boot something fierce unless you tweak it manually afterwards, and even if you do, NetworkManager is really more pleasant to use in a DE anyways.
I'm sure there will be questions like "What?? I have dhcpcd service enabled and my boot time is 2 seconds". Then, all I can say is "good for you". The rest of the world often get this 1.5 minute long hanging thing that stems from a bug as I understand it but can be manually removed, but it was kind of a hard time finding the file to remove to make it go away, so avoiding it altogether is best, in my view.
Thank you for your fast answers.
I followed adergaard's advice and know everything works fine thanks to the network manager and your advice.
I used this excellent video https://www.youtube.com/watch?v=MAi9DurTRQc to guide me along the process.
Using youtube videos is strongly discouraged as they are often incorrect. Even in the rare cases where they are correct, they will quickly become outdated and useless. The Arch wiki, along with official documentation for your chosen software, should always be your information resource when running Arch Linux.