You are not logged in.

#1 2013-11-05 07:56:05

matrix13
Member
Registered: 2012-04-06
Posts: 46

[solved] System will not connect to network after installation

I am dual booting Arch Linux with Win7. After the installation of Arch (Nov 2013 release) and the mandatory reboot, the system will not connect to the wired network. There were no issues related to the network during the installation process (Installed from a USB key). This happened only after the reboot.

When I tried to ping my modem, I got the following message:

Connect: Network is unreachable.

In my systemctl list-unit-files, I could see that dhcpcd.service and dhcpcd@.service are enabled.
'lspci -v' is showing the correct Ethernet (Realtek) and also mentions the following.

Kernel driver in use : r8169
Kernel module: r8169

I got the identification name of the Ethernet as enp6s0 from the command 'ip link'

As per dmesg, the kernel module is also loaded.

dmesg | grep Ethernet
r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded

Then I created a wired network profile using netctl and enabled the profile

systemctl enable netctl@profile_name.service

Rebooted the system. But, this did not work. Still no network.

Next I enabled the ifplugd service

systemctl enable netctl-ifplugd@.service

This also did not work.

I am not sure whether I am in the right path of debugging the issue. However, I have tried all that I know.
All help will be greatly appreciated.
NB: The wired network in the other OS, Win7, is working properly once I rebooted the modem.

Last edited by matrix13 (2013-11-15 13:08:50)

Offline

#2 2013-11-05 10:14:38

GermanyChris
Member
From: Southern Germany
Registered: 2013-10-14
Posts: 60

Re: [solved] System will not connect to network after installation

if you enabled netctl system wide like it says in the wiki you need to disable that first. If you're running gnome or a variant it will want to control the network through network-manager


Don't scab for the bosses Don't listen to their lies Poor folks ain't got a chance Unless they organize --Florence Reece

Offline

#3 2013-11-05 10:59:44

matrix13
Member
Registered: 2012-04-06
Posts: 46

Re: [solved] System will not connect to network after installation

I could not install any WM or DE. I am actually stuck at the "Post installation" section in the Beginner's guide. I am not able to install any packages since the network is not functional.
I tried creating a profile using netctl and enabled it, as using dhcpcd did not work for me.

Offline

#4 2013-11-05 12:43:57

GermanyChris
Member
From: Southern Germany
Registered: 2013-10-14
Posts: 60

Re: [solved] System will not connect to network after installation

The thing is if you follow the wiki it will tell you to enable dhcpcd services system wide. systemctl enable dhcpcd.service once the install is done and your booted into your system not arch-chroot that command messes things up. systemctl disable dhcpcd.service will stop the over arching dhcpcd init and then you can specify dhcpcd@whaterver.service. Right now you have two services trying to control one NIC and it doesn't work. If you use a gnome DE you're going to turn netctl off again and let gnome's network-manager deal with networks.

The only reason I chimed in on this and is seems unnuanced and uneducated is because I've installed and borked 25 Arch installs in the last 10 weeks and this was one of my first problems I'm about a month and I've managed to fix this install when borked because I've installed so many times in the past.

I'm sure smart people will come in and point out my errors but this is my experience.

my personal advise is don't auto start your display manager for a bit, let it dump you into a shell so you can fix stuff without booting to a separate media


Don't scab for the bosses Don't listen to their lies Poor folks ain't got a chance Unless they organize --Florence Reece

Offline

#5 2013-11-05 13:21:45

matrix13
Member
Registered: 2012-04-06
Posts: 46

Re: [solved] System will not connect to network after installation

Thanks for the replay GermanyChris. I tried as per your suggestion. I disabled all the services related to network in my machine. ie dhcpcd, dhcpcd@, netctl@ etc. Then I enabled only dhcpcd@device_name.service.

systemctl enable dhcpcd@enp6s0.service

This also did not work for me. I rebooted my machine and still no network.
NB: I am not in arch-root. I have the base system only with a command line interface. No X11, alsa or DE. I am not able to connect to internet for further installation. smile

Offline

#6 2013-11-05 13:34:41

skualito
Member
Registered: 2008-11-19
Posts: 203

Re: [solved] System will not connect to network after installation

Did you try manually connect to the network? Make sure everything related to network management is stopped/disabled and:

# ip link set <your interface name> up
# dhcpcd

What's the output of the above?

Offline

#7 2013-11-05 16:12:50

matrix13
Member
Registered: 2012-04-06
Posts: 46

Re: [solved] System will not connect to network after installation

@skualito: Manually connecting to the network didn't work either.
But, I had some progress recently.
I guess the problem was due to Dynamic IP configuration. But I do not know why. So I gave a Static IP address.

# ip link set enp6s0 up
# ip addr add 192.168.*.*/24 dev enp6s0
# ip route add default via 192.168.*.1

Now I am able to ping to my modem at 192.168.*.1.
But could not ping to www.google.com.
Still I could ping to 8.8.8.8
Any suggestions?
Also I do not know why Dynamic IP is not working for me. I am using a private network.

NB: I thought of reinstalling Arch. I once again booted from the install media (USB) as I did earlier. But, this time there was no network. And the command dhcpcd failed to connect to the modem.

Offline

#8 2013-11-05 16:32:19

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 388

Re: [solved] System will not connect to network after installation

Your dns seems not fonctionnal, what is the output of

cat /etc/resolv.conf

To use dynamic ip you are supposed to have a dhcp server on your local network. is it the case ?

Last edited by GloW_on_dub (2013-11-05 16:33:43)

Offline

#9 2013-11-05 17:42:17

matrix13
Member
Registered: 2012-04-06
Posts: 46

Re: [solved] System will not connect to network after installation

@GloW_on_dub: resolv.conf was empty and dhcpcd was not running. What should I do here?

I found the real cause of this problem. It has something to do with the Realtek NIC. It seems Windows automatically switches of the device during shutdown. And Arch is not able to make it up by itself.

https://wiki.archlinux.org/index.php/Ne … OL_problem

I am trying to fix this issue according to the wiki page above. But, most of the mentioned workarounds doesn't work as expected. Still trying.
By providing a Static IP after enabling the Ethernet device (as mentioned in my earlier post), I think I can solve this issue. I might have to preform all these procedures every time I boot into Arch. Probably a small script might help. I guess I will have to live this way until an official fix is provided. smile
However, I do not know how to make DNS functional. I require some help here.
Thank you all.

Offline

#10 2013-11-05 18:39:25

t0m5k1
Member
From: overthere
Registered: 2012-02-10
Posts: 324

Re: [solved] System will not connect to network after installation

if resolv.cont is empty then add:

nameserver 8.8.8.8

or change 8.8.8.8 to any of the other public dns systems


ROG Strix (GD30CI) - Intel Core i5-7400 CPU - 32Gb 2400Mhz - GTX1070 8GB - AwesomeWM (occasionally XFCE, i3)

If everything in life was easy, we would learn nothing!
Linux User: 401820  Steam-HearThis.at-Last FM-Reddit

Offline

#11 2013-11-05 18:42:38

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 388

Re: [solved] System will not connect to network after installation

I don't think the realtek nic is the problem, since you have been able to use your interface with static ip.

To use Dynamic IP you need a DHCP server running on your local network, it is not your computer but usually a proxy.
if you have not such device and only a modem, dynamic ip cannot work.

To configure your dns, add the following line in your /etc/resolv.conf

nameserver  208.67.222.222
nameserver 208.67.220.220

then you should be able to ping www.google.com

Offline

#12 2013-11-06 04:36:55

matrix13
Member
Registered: 2012-04-06
Posts: 46

Re: [solved] System will not connect to network after installation

Going by the Arch wiki page on Network Configuration, I noticed that once I log on to Windows and then reboot to Arch, I will not be having a Network connection in Arch. I have no way to say whether my NIC is functional or not in Arch as the link lights doesn't glow, even in Windows. But the device works properly in Windows.
In order to test in Arch, during POST I made the system boot from the Network. I guessed that this will make my NIC on. After waiting for some time, I rebooted into Arch and checked the network. Now I have a perfectly working network available with a Dynamic IP configuration. The dhcpcd.service is running and I am able to ping to www.google.com and others. But, when I reboot and log in back to Windows, there will be no network. I will have to restart my modem to fix this problem in Windows. I suspect some hardware related issue here.

Once I log out from Windows and boot into Arch I will have to do the following step to make my NIC up.

# ip link set enp6s0 up

Command dhcpcd after this step did not get me a network connection. I have the dhcpcd.service running at this time.
Next I did the following.

# ip addr add 192.168.*.*/24 dev enp6s0
# ip route add default via 192.168.*.1

Now I was able to ping to my modem with a Static IP. But, I was not able to ping to Google or so.

Thanks to t0m5k1 and GloW_on_dub, I had some progress in this. I was able to ping Google after adding 'nameserver' in /etc/resolve.conf. However, after a few minutes ping returned the message "Unknown host". I noticed that my /etc/resolv.conf has become empty again (only a comment is present, as earlier). Even if I add nameserver again in resolv.conf it will disappear in a matter of few minutes (less than 10 minutes) and I will be without DNS. Any ideas? I was keeping my NIC idle for these 10 minutes, and I have to see whether this is causing the resolv.conf to go empty. I will keep NIC busy for more than 10 minutes and see the developments.

Also I have the dhcpcd.service still running in Static IP mode. If I disable dhcpcd.service, will it fix the issue with resolv.conf?

Offline

#13 2013-11-06 07:34:13

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 388

Re: [solved] System will not connect to network after installation

yes

systemctl disable dhcpcd@enp6s0.service

Offline

#14 2013-11-06 13:05:56

matrix13
Member
Registered: 2012-04-06
Posts: 46

Re: [solved] System will not connect to network after installation

Ok. I disabled dhcpcd with

systemctl disable dhcpcd.service

There was no dhcpcd@.service running in my machine.

Then I enabled the NIC, configured the IP and gateway. Added name server in /etc/resolv.conf.

Again, resolv.conf became empty after a few minutes (approximately 5 minutes). I was using the internet at this time to install some packages. When I tried to download another set of packages, it returned errors. I noticed that content in resolv.conf has disappeared. I can say that my NIC was not that much idle when this happened.

Offline

#15 2013-11-06 20:36:12

GermanyChris
Member
From: Southern Germany
Registered: 2013-10-14
Posts: 60

Re: [solved] System will not connect to network after installation

Maybe its time to post ip link


Don't scab for the bosses Don't listen to their lies Poor folks ain't got a chance Unless they organize --Florence Reece

Offline

#16 2013-11-07 02:18:57

matrix13
Member
Registered: 2012-04-06
Posts: 46

Re: [solved] System will not connect to network after installation

ip link

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000
    link/ether 14:fe:b5:bd:58:77 brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
    link/ether 88:53:2e:0b:72:6e brd ff:ff:ff:ff:ff:ff

Offline

#17 2013-11-07 02:22:01

matrix13
Member
Registered: 2012-04-06
Posts: 46

Re: [solved] System will not connect to network after installation

# dmesg | grep r8169

[    5.131037] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    5.131050] r8169 0000:06:00.0: can't disable ASPM; OS doesn't have ASPM control
[    5.131302] r8169 0000:06:00.0: irq 47 for MSI/MSI-X
[    5.131507] r8169 0000:06:00.0 eth0: RTL8168e/8111e at 0xffffc90004f9e000, 14:fe:b5:bd:58:77, XID 0c200000 IRQ 47
[    5.131510] r8169 0000:06:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[    9.383162] r8169 0000:06:00.0 enp6s0: link down
[    9.383199] r8169 0000:06:00.0 enp6s0: link down
[   11.020911] r8169 0000:06:00.0 enp6s0: link up

Offline

#18 2013-11-07 13:00:41

GermanyChris
Member
From: Southern Germany
Registered: 2013-10-14
Posts: 60

Re: [solved] System will not connect to network after installation

OK so you're Wifi is down and ether is up since you don't have connection it's not auto populating you're resolv .conf

so make sure that you don't have to things trying to control your network i.e. networkmanager or connman didn't get installed

enter the i.p address of your router in your resolv.conf as a nameserver

ASPM stands for active service power management, that can be controlled either by your bios or your OS  so check your bios settings...

Random thought; is this computer new enough to have UEFI and Secure boot? If is does I wonder if you problem lies in that cluster. I'd be inclined to pop a different HDD in do a quick install and see if the problem goes away.


Don't scab for the bosses Don't listen to their lies Poor folks ain't got a chance Unless they organize --Florence Reece

Offline

#19 2013-11-07 17:08:09

matrix13
Member
Registered: 2012-04-06
Posts: 46

Re: [solved] System will not connect to network after installation

I am using Dell XPX L502X laptop with legacy BIOS. I have updated BIOS and the version is Dell Inc. A12.
This BIOS does not have an option to control ASPM or wake up the NIC during POST.
So my best guess is, once Windows switches off the NIC during shutdown, Arch is not able to make it up by itself.

I have not installed any WM or DE and I am sure I do not have networkmanager or something like that running.

Offline

#20 2013-11-08 09:20:32

matrix13
Member
Registered: 2012-04-06
Posts: 46

Re: [solved] System will not connect to network after installation

I have installed r8168 driver from AUR and blacklisted the default driver r8169. I read some where in google that this is worth a try. But, this also did not work for me.
If I could find out who deletes my resolv.conf, I may be able to fix the problem temporarily. smile
systemctl show two enabled units in my machine - getty@.service and remote-fs.target. It also shows that I have netctl@.service with a status of 'static'. What does it mean? Can it in any affect my network?

Offline

#21 2013-11-08 10:47:13

mojtabazn
Member
Registered: 2013-10-20
Posts: 43

Re: [solved] System will not connect to network after installation

Hey try this on your file and see if it is  working ? after editing with your dns
sudo chattr +i /etc/resolv.conf
do same to each file that change automatically

Last edited by mojtabazn (2013-11-08 10:48:40)

Offline

#22 2013-11-13 13:30:23

matrix13
Member
Registered: 2012-04-06
Posts: 46

Re: [solved] System will not connect to network after installation

I was away from my machine for quite some time. So I could not try and update anything.
Today something surprising happened. I enabled the NIC, added the ip address and filled resolv.conf with a nameserver. I was expecting it to go empty after some time, but it did not. I do not remember doing anything special for this. But, I had changed the NIC driver from r8169 to r8168. I had seen resolv.conf going empty with r8168 even after one reboot, but I never tried to reboot the machine once again. Probably the change in the driver is fixing the problem temporarily. I will confirm this once I revert back to r8169.
Thanks all.

Offline

#23 2013-11-15 01:49:13

matrix13
Member
Registered: 2012-04-06
Posts: 46

Re: [solved] System will not connect to network after installation

Ok. I got a solution for this problem. At least, it solves my case.
It is NOT the change in the NIC driver (from r8169 to r8168) that is fixing the problem. In fact there is not need to change the driver.
I reinstalled Arch from beginning to test this and this is the procedure I followed.

After installation, I had my dhcpcd@.service running in my machine.

# systemctl enable dhcpcd@enp6s0.service

Of course, I was not getting any network connection. All I was getting is the message "Network unreachable".
Then I configured a static IP.

# ip link set enp6s0
# ip addr add 192.168.*.8/24 dev enp6s0
# ip route add default via 192.168.*.1

At this point, I was be able to ping to my modem at 192.168.*.1. Next, I added a nameserver in /etc/resolv.conf. Now I could ping to domains. However, resolv.conf becomes empty after a while. So I did this before it goes empty.

# dhcpcd enp6s0

Now, my NIC got configured in dynamic IP mode with IP 192.168.*.13. I noticed that my resolv.conf doesn't go empty at all. And after a reboot, I get the network connection out of the box. I don't have to configure the IP manually. It is up and running by itself. But the IP is always 192.168.*.13.

After that step, one more line got added to my resolv.conf.

domain local.lan
nameserver 8.8.8.8

Earlier (when I had to manually do IP configuration) whenever I rebooted from Arch to Windows7 with a network running in Arch, I will have to restart my modem to get a network connection in Windows. That also seems solved now.

I do not know how this procedure fixed my case. Probably someone here can give an explanation.
Thank you all. I hope I can mark this post as 'solved' now.

Now, there is only this small issue left to fix. If my modem is not ON by the time I boot into Arch, I will not have any network. But, I think I can live with that smile

Last edited by matrix13 (2013-11-15 13:07:58)

Offline

Board footer

Powered by FluxBB