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
]]>I have not installed any WM or DE and I am sure I do not have networkmanager or something like that running.
]]>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.
]]>[ 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
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
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.
]]>systemctl disable dhcpcd@enp6s0.service
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?
]]>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
]]>nameserver 8.8.8.8
or change 8.8.8.8 to any of the other public dns systems
]]>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.
However, I do not know how to make DNS functional. I require some help here.
Thank you all.