You are not logged in.

#1 2013-08-05 01:34:11

xleafr
Member
From: San Diego
Registered: 2012-05-23
Posts: 18

Can't get a wired connection pre install

Hi, I'm trying to fresh install arch on my desktop.

I am getting a little frustrated because I've restarted the process a handful of times today.

Following the Beginners' Guide, one of the first things I do it try to establish a network connection.

#ping -c 3 www.google.com
ping: unknonw host www.google.com

then:

#systemctl stop dhcpcd.ervice
#ip link set enp2s0 down
#ip link set enp2s0 up
#dhcpcd enp2s0
dhcpcd[411]: version 5.6.8 starting
dhcpcd[411]: enp2s0 sending IPv6 Router Solicitation
dhcpcd[411]: enp2s0 broadcasting for a lease
dhcpcd[411]: enp2s0 sending IPv6 Router Solicitation
dhcpcd[411]: enp2s0 sending IPv6 Router Solicitation
dhcpcd[411]: enp2s0 sending IPv6 Router Solicitation
dhcpcd[411]: enp2s0 no IPv6 Routers available
dhcpcd[411]: timed out

can anyone help me or point me in the right direction?
Like I said I am getting pretty frustrated and I might switch distributions soon

If you need more info about my system please let me know what it is, and where I can find it.

Thanks for reading

I don't know why I can't connect. I have my ethernet cable running directly from my pc to my router. What is really bothering me is I was able to connect earlier and I was partway through the INSTALLATION process when I lost the connection. Every other internet enable device in my house is working.

edit: changed boot to installation

Last edited by xleafr (2013-08-05 03:04:21)

Offline

#2 2013-08-05 02:12:42

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

Re: Can't get a wired connection pre install

Is your network set up with ipv6?  It seems as though dhcpcd is only asking for an ipv6 address... unless you didn't post the full output.

Offline

#3 2013-08-05 02:16:49

xleafr
Member
From: San Diego
Registered: 2012-05-23
Posts: 18

Re: Can't get a wired connection pre install

No I don't think it is. It's IPv4. I have an old airport extreme. How would I get dhcpcd to ask for IPv4?

What puzzles me is that it has connected successfully a couple of times

Offline

#4 2013-08-05 02:55:33

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Can't get a wired connection pre install

You can try adding noipv6rs to /etc/dhcpcd.conf. If you are unlucky, you will need to tell the kernel [this is probably not the right description] as well but try this first.

EDIT: I doubt this is the Airport Extreme's fault. More likely your ISP's. Some networks are very badly configured - I have one at work - and you cannot connect if your machine looks for ipv6 first. But I didn't have this problem at home with an ipv4 network and I'm using two Airport Extremes.

Last edited by cfr (2013-08-05 02:58:28)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2013-08-05 02:57:49

xleafr
Member
From: San Diego
Registered: 2012-05-23
Posts: 18

Re: Can't get a wired connection pre install

shall I also comment out noipv4ll?

Offline

#6 2013-08-05 02:58:22

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

Re: Can't get a wired connection pre install

I think you can just do "dhcpcd -4 <interface>".

Offline

#7 2013-08-05 02:59:02

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Can't get a wired connection pre install

xleafr wrote:

shall I also comment out noipv4ll?

No. That's something else.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#8 2013-08-05 02:59:45

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Can't get a wired connection pre install

WonderWoofy wrote:

I think you can just do "dhcpcd -4 <interface>".

Probably easier although you're likely to have the problem post install and may prefer the .conf file then smile.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#9 2013-08-05 03:01:25

xleafr
Member
From: San Diego
Registered: 2012-05-23
Posts: 18

Re: Can't get a wired connection pre install

hmm, dhcpcd -4 <interface> timed out
so did the .conf file method

Offline

#10 2013-08-05 03:02:25

xleafr
Member
From: San Diego
Registered: 2012-05-23
Posts: 18

Re: Can't get a wired connection pre install

I should also mention that my ethernet controller is Realtek, RTL8111/8168

kernal modules: r8169

Offline

#11 2013-08-05 03:04:55

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

Re: Can't get a wired connection pre install

Oh, you need to use the r8168 package then.  I have this card too...


Edit: I should note that for most people this card works fine with the r8169 module, but with certain revisions (mine is rev 07) it just sucks big time.  I was able to connect, but it took two hours to download the packages during the inital insatll.  Fortunately, I was able to find the r8168 package shortly after I got things going... though I wish I had found it before I started installing.

Last edited by WonderWoofy (2013-08-05 03:06:40)

Offline

#12 2013-08-05 03:06:01

xleafr
Member
From: San Diego
Registered: 2012-05-23
Posts: 18

Re: Can't get a wired connection pre install

WonderWoofy wrote:

Oh, you need to use the r8168 package then.  I have this card too...

Ah, I had a feeling it was something to do with that, saw some other people have been having trouble with this card, how should I get that package, considering I don't have an internet connection, USB?

edit: and which package? could you link me to it? :]

Last edited by xleafr (2013-08-05 03:07:12)

Offline

#13 2013-08-05 03:08:12

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

Re: Can't get a wired connection pre install

Just download it onto another partition or usb drive and then use "pacman -U /path/to/r8168..."  In other words, just make the package accessible to yourself under the new environemnt.  If that means downloading it and putting it on the HDD itself and loading it before partitioning, then that would work.


Edit: No I'm not going to link you to it.  Around here we encourage users to try to help themselves, and this partuclarly applies to leaning how to properly serach for things.  But the package is actually called r8168.  Check the top of the archlinux.org home page, there is a link that says "packages" on top.

Last edited by WonderWoofy (2013-08-05 03:09:25)

Offline

#14 2013-08-05 03:09:35

xleafr
Member
From: San Diego
Registered: 2012-05-23
Posts: 18

Re: Can't get a wired connection pre install

Okay, I'll give it a shot, what is the name of the package? I searched for r8169 but didn't find anything

Offline

#15 2013-08-05 03:11:29

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

Re: Can't get a wired connection pre install

Check what I told you again in post #11... and #13.

Last edited by WonderWoofy (2013-08-05 03:11:46)

Offline

#16 2013-08-05 03:13:41

xleafr
Member
From: San Diego
Registered: 2012-05-23
Posts: 18

Re: Can't get a wired connection pre install

Thank you WonderWoofy!

Offline

#17 2013-08-10 05:56:57

xleafr
Member
From: San Diego
Registered: 2012-05-23
Posts: 18

Re: Can't get a wired connection pre install

Hi,

So I am trying to get the r8168 module running pre install.

I installed the driver

pacman -U path
echo blacklist r8169

then

lsmode | grep r8169
r8169 57704 0
mii 4059 1

So the mii driver (which I have no idea anything about for the record) is dependent on r8169.

Just for shiggles I

modprobe -r r8169
modprobe r8168

so now both r8169 and and mii are no longer running

ip link

reveals that I no longer have an enp2s0 interface (I assume this has something to do with the mii module)

Normally I would reboot, but that would put me back at square one in this case.

This is pretty much where I'm stuck right now.
How do I get the mii module to use r8168?
Is it possible?
If not, are there any alternatives?

If I know I'm not just supposed to ask everyone for solutions and I am supposed to figure it out myself, but I've hit a standstill in my own research

Thanks in advance!

Last edited by xleafr (2013-08-10 05:57:17)

Offline

#18 2013-08-10 06:01:58

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

Re: Can't get a wired connection pre install

You may no longer have the enp2s0, but it may be reappearing in the kernel namespace.  So are you then left with an eth0? 

The way the new naming scheme works is actually by renaming the interface after the kernel has detected them.  So initially for a second during boot, they have the regular kernel names (eth* for ethernet, and typically wlan* for wireless interfaces).  So if you remove the module, then reload it, even if it is the same module being reloaded, it will reappear in the kernel namespace instead.  This is because the udev rule needs to be applied, but there is nothing in place to react to this sudden appearance of the new interface.

After you unload r8169 and then load r8168, can you post the output of "ip link"?


Edit: Okay... so this *may* not be the case.  I can unload r8168 and then reload r8169 and it still comes back to my custom name.  In any case, you should check for a different interface name than enp2s0.

Last edited by WonderWoofy (2013-08-10 06:03:48)

Offline

#19 2013-08-10 07:51:59

xleafr
Member
From: San Diego
Registered: 2012-05-23
Posts: 18

Re: Can't get a wired connection pre install

I only get the loopback interface

ip link
lo: 1: ...<don't feel like typing it all out>

Offline

#20 2013-08-10 09:27:58

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,496

Re: Can't get a wired connection pre install

Just an idea: You _may_ have a problem with that r8168 since it has a patch for kernel 3.10 and you maybe have not updated your fresh install to that.
Also not everyone with that chip needs to use it (like Woofy wrote, some revisions appear to work better with it).
As an alternative you could skip the dhcpcd which is problematic for you currently and just assign a valid IP manually: https://wiki.archlinux.org/index.php/Ne … assignment
to get the machine updated.


The painting in my profile is "Eros" by Paul Klee. He is credited in the lower left, but that got blurry during the downscale.

Offline

#21 2013-08-10 17:36:39

xleafr
Member
From: San Diego
Registered: 2012-05-23
Posts: 18

Re: Can't get a wired connection pre install

okay, I'll give that a shot to.

I am using the latest install medium, just burned it like august 2 and I think it was released august 1, it has kernel 3.10.3

I am also thinking about just buying a $20 gigabit ethernet card at fry's or off newegg. . . is that lame?

Last edited by xleafr (2013-08-10 17:37:57)

Offline

#22 2013-08-10 19:43:00

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

Re: Can't get a wired connection pre install

Strike0 has a really good point.  The r8168 package provides a module.  The module matches up with a certain kernel version.  With Arch Linux the dependencies in the official repos are not versioned because there is the expecatation that users will keep their machiens up to date.

Unfortunately, I think that even if you just skip the dhcpcd part with a static IP as Strike0 suggested, you are probabbly going to end up with crippled functionality if using the r8169 module.  I'm not saying it is not worth a try, but it may end up that way.

The other option is to use the Arch Rollback Machine and find the proper r8168 package that matches whatever kernel version is on teh archiso.  The Arch Rollback Machine is sorted by date, so it is really quite easy to find what you are looking for by simply trying to find the date at which that particular kernel version is on core.  Then, staying in that date directory, just navigate up to the parent directory of core, and then go into community and find the r8168 package.  Then use that instead of the current one you have probably downloaded.

I do think that unless you actually need an additional ethernet card for some application, that buying another is probaly not the best route here.  Why buy something that you don't actually need?  I think really solving your problem correctly will give you greater insight into how the Arch repos are handled and maintained (version-wise), and maybe it might motivate you to actually do regular updates... if you weren't already.  I find it rather amazing how amny people come to these forums saying "I can't install package X.  I haven't updated in seven months, what could be the problem?"  If you are going to use a rolling release system, I can't even begin to understand why you wouldn't maintain your system... or why one would choose a rolling release in the first place.

OTOH, if you have some other practical application for an additional ethernet card once you are done... then that is a different story.

Offline

#23 2013-08-10 20:13:59

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,496

Re: Can't get a wired connection pre install

To give you more input: We have a PC here with the same card

05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)

and using it with the default r8169 _never_ was an issue. It always worked out of the box in all kernels since 3.something and it is a very widely used chip for consumer PCs. Maybe you want to check which revision it is exactly, since that appears to make all of a difference. dhcpcd not getting an IP can also have other reasons (try rebooting the router).


The painting in my profile is "Eros" by Paul Klee. He is credited in the lower left, but that got blurry during the downscale.

Offline

#24 2013-08-10 20:18:50

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

Re: Can't get a wired connection pre install

Strike0 wrote:

...dhcpcd not getting an IP can also have other reasons (try rebooting the router).

This is a _very_ good point.

Offline

Board footer

Powered by FluxBB