You are not logged in.

#1 2013-04-22 01:57:41

nicooga
Member
From: Buenos Aires, Argentina
Registered: 2013-04-22
Posts: 10

Setting up network

Hi there, arch linux lover/noob here.

I'm having trouble setting up my ethernet connection on my brand new arch system.
Following the instructions on https://wiki.archlinux.org/index.php/Ne … figuration.

So I runned:

ip link
sudo systemctl enable dhcpcd@enp11s0.service
sudo systemctl start dhcpcd@enp11s0.service

and every thing went smooth.

But after reboot the netowork device name change to 'eth0' and I can't reconfigure.
Using the same commands throws error:

Failed to create mount unit file /run/systemd/generator/-.mount, as it already exists. Duplicate entry in /etc/fstab?

Can I get some help? Thanks in advance.

Last edited by nicooga (2013-04-22 01:59:33)

Offline

#2 2013-04-22 02:30:44

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Setting up network

well you have to choose if you want to use predictive naming for the interfaces.

Check this section in the link you provided https://wiki.archlinux.org/index.php/Ne … vice_names

you can choose to remove the /etc/udev/rules.d/80-net-name-slot.rules file to use predictive naming for interfaces or if you want to use eth0/wlan0 etc, then your above commands should be changed to

sudo systemctl enable dhcpcd@eth0.service
sudo systemctl start dhcpcd@eth0.service

Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2013-04-22 04:24:59

nicooga
Member
From: Buenos Aires, Argentina
Registered: 2013-04-22
Posts: 10

Re: Setting up network

I ended reinstalling the system hmm... now I can't even set up my internet connection for the installation.
Runned the following:

# systemctl enable dhcpcd@eth0.service
# systemctl start dhcpcd@eth0.service
A dependency job for dhcpcd@eth0.service failed. See `journal -xn` for details.

Offline

#4 2013-04-22 05:40:30

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Setting up network

How about, instead of simply relying on those blind "enable" and "start" commands, you try to use the standard network tools to figure out what the interface names are before trying to start anything.  Then maybe it might be good to try first just getting a dhcp lease by simply using dhcpcd directly on the interface in question (once you figure it out of course).

I think once you have done your homework and figured out what is what and how things are intended to work, the rest of the stuffs might make a bit more sense when you try enabling the services.

Offline

#5 2013-04-22 05:45:21

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: Setting up network

First find out what your network interface are with

ip addr

. After that you can assign systemd service.

Did you see

A dependency job for dhcpcd@eth0.service failed. See `journal -xn` for details.

the output of that suggestion?

Offline

Board footer

Powered by FluxBB