You are not logged in.

#1 2014-11-04 18:46:30

LiquidAurum
Member
Registered: 2014-11-04
Posts: 43

having to manually turn on and dhcpcd network interfaces every startup

Every time I login I am having to turn on the network interface manually with ip link set enp0s3 up, and turn on dhcp with dhcpcd enp0s3. Do I have to modify a file to automate this process? ..


Thanks

Offline

#2 2014-11-04 18:50:35

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: having to manually turn on and dhcpcd network interfaces every startup

Unlike the installation environment, an installed system has no automatic network setup configured.

Installation Guide wrote:

Configure the network again for the newly installed environment: see Network configuration and Wireless network configuration.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#3 2014-11-04 18:53:55

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: having to manually turn on and dhcpcd network interfaces every startup

"systemctl enable dhcpcd@enp0s3.service" is one simple solution.

Offline

#4 2014-11-04 19:11:02

LiquidAurum
Member
Registered: 2014-11-04
Posts: 43

Re: having to manually turn on and dhcpcd network interfaces every startup

lucke wrote:

"systemctl enable dhcpcd@enp0s3.service" is one simple solution.


I just enter that into the command line? That's it?

Offline

#5 2014-11-04 19:12:33

Dennis
Member
Registered: 2014-11-04
Posts: 56
Website

Re: having to manually turn on and dhcpcd network interfaces every startup

I was told dhcpcd is not needed anymore (after wasting hours, trying to get it to work properly with my ancient fritzbox sl) and eventually:

systemctl disable dhcpcd.service
systemctl enable systemd-networkd.service

solved all my connectivity problems.

edit: fixed typos

Last edited by Dennis (2014-11-04 21:00:38)

Offline

#6 2014-11-04 19:23:28

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: having to manually turn on and dhcpcd network interfaces every startup

LiquidAurum wrote:
lucke wrote:

"systemctl enable dhcpcd@enp0s3.service" is one simple solution.


I just enter that into the command line? That's it?

Yes.

Offline

#7 2014-11-04 19:37:25

LiquidAurum
Member
Registered: 2014-11-04
Posts: 43

Re: having to manually turn on and dhcpcd network interfaces every startup

Dennis wrote:

systemctl enable systemd-networkd.services

solved all my connectivity problems.

This command didn't work for me sad

Offline

#8 2014-11-04 19:50:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: having to manually turn on and dhcpcd network interfaces every startup

LiquidAurum wrote:
Dennis wrote:

systemctl enable systemd-networkd.services

solved all my connectivity problems.

This command didn't work for me sad

It should say 'service' or just

systemctl enable systemd-networkd

See https://wiki.archlinux.org/index.php/Systemd-networkd

Last edited by karol (2014-11-04 19:51:10)

Offline

#9 2014-11-04 21:01:48

Dennis
Member
Registered: 2014-11-04
Posts: 56
Website

Re: having to manually turn on and dhcpcd network interfaces every startup

LiquidAurum wrote:
Dennis wrote:

systemctl enable systemd-networkd.services

solved all my connectivity problems.

This command didn't work for me sad

Sorry. Fixed/edited my post and removed the 's', so it's service instead of services.

Offline

#10 2014-11-04 21:10:59

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: having to manually turn on and dhcpcd network interfaces every startup

Note:
Systemd-networkd requires aditional configuration unlike dhcpcd. On the other hand dhcpcd is slower.

Offline

#11 2014-11-05 05:10:04

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: having to manually turn on and dhcpcd network interfaces every startup

I use the netctl-auto@wifi-card-here and netctl-ifplugd@ethernet-card-here method on a laptop and I don't have dhcpcd or dhclient installed.  I have found this to be a nice setup on any computers I have that use wifi and ethernet on that same system.

Offline

#12 2014-11-05 08:00:30

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: having to manually turn on and dhcpcd network interfaces every startup

LiquidAurum, what have you tried so far (apart from the one command above that didn't work for you)? What documentation have you followed? Did you read the Network Configuration page that alphaniner linked? Or the systemd-networkd page that karol linked?

Offline

#13 2014-11-05 10:02:00

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: having to manually turn on and dhcpcd network interfaces every startup

LiquidAurum wrote:

This command didn't work for me sad

The command doesn't work immediately, just after restart the computer.
If it's needed instantly, you'd enforce

# systemctl start systemd-networkd

But if you show us what the system got to say

# journalctl -b -u  systemd-networkd
# systemctl status systemd-networkd

do it good first, it will be faster than do it twice the saint wink

Offline

Board footer

Powered by FluxBB