You are not logged in.

#1 2015-07-10 07:02:10

JatinKaushal
Member
Registered: 2015-07-10
Posts: 25

Cannot connect to internet in my new Arch Install.

Hi. I am a total noob when it comes to networking. I just installed arch for the first time and the internet is not working. I tried to follow the other posts that are marked as solved but I don't understand anything from them. can anyone help me. thanks!

My system: Intel i5, EFI system, triple booting win 8,1/ElementaryOS/ArchLinux. Nvedia graphics.

Desktop environment: gnome-desktop with gdm.

Offline

#2 2015-07-10 07:03:36

Awebb
Member
Registered: 2010-05-06
Posts: 6,294

Re: Cannot connect to internet in my new Arch Install.

Provide details, log files, hints on what topics you read, etc pp.

Offline

#3 2015-07-10 07:15:51

JatinKaushal
Member
Registered: 2015-07-10
Posts: 25

Offline

#4 2015-07-10 07:18:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Cannot connect to internet in my new Arch Install.

Saying you didn't understand a thing is not helpful...

If you can't work your way methodically through the Networking page on the wiki and arrive at a working wired connection, this is the wrong distro for you.

Wireless can be a little trickier with some cards/drivers, but wired is really basic.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2015-07-10 07:18:22

JatinKaushal
Member
Registered: 2015-07-10
Posts: 25

Re: Cannot connect to internet in my new Arch Install.

Oh yeah, I entered in these commands:

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

The first command ran without any errors but the second command gives me:

Failed to get D-Bus connection: Operation not permitted

Does this help?

Offline

#6 2015-07-10 07:22:58

JatinKaushal
Member
Registered: 2015-07-10
Posts: 25

Re: Cannot connect to internet in my new Arch Install.

Okay, I tried to ping google, but it did not ping if I provided www.google.com, but If i provide it the same thing but instead of www.google.com, I give it the IP address, It works.

 ping -c 3 [url=http://www.google.com]www.google.com[/url] 

give me:

 ping: unknown host [url=http://www.google.com]www.google.com[/url] 

but if I give it:

 ping -c 3 216.58.220.46 

it works. So is this a problem with my DNS?

Offline

#7 2015-07-10 07:25:09

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Cannot connect to internet in my new Arch Install.

You need to assign some nameservers.

# /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4

dhcpcd.service should do this for you hmm

What guide did you follow when installing Arch?

Offline

#8 2015-07-10 07:25:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Cannot connect to internet in my new Arch Install.

wiki page wrote:

If you are able to ping 8.8.8.8 but not www.google.com, check your DNS configuration. See resolv.conf for details.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2015-07-10 07:29:11

JatinKaushal
Member
Registered: 2015-07-10
Posts: 25

Re: Cannot connect to internet in my new Arch Install.

Okay, fixed it. It was a problem with my /etc/resolv.conf
I added the google nameservers. It's a bit slow to start, but it works beautifully. For anyone else who comes to this thread, please execute (as root):

 nano /etc/resolv.conf 

them edit it, add the following lines:

 # Google IPv4 nameservers
nameserver 8.8.8.8
nameserver 8.8.4.4

# Google IPv6 nameservers
nameserver 2001:4860:4860::8888
nameserver 2001:4860:4860::8844

press ctrl+x and then press y to save it.
now to test your connection, type in the terminal:

 ping -c 3 www.google.com 

you should get an output like:

 PING 216.58.220.46 (216.58.220.46) 56(84) bytes of data.
64 bytes from 216.58.220.46: icmp_seq=1 ttl=56 time=55.9 ms
64 bytes from 216.58.220.46: icmp_seq=2 ttl=56 time=57.2 ms
64 bytes from 216.58.220.46: icmp_seq=3 ttl=56 time=58.0 ms

If you do get this, it worked!
source: https://wiki.archlinux.org/index.php/Re … S_in_Linux

Last edited by JatinKaushal (2015-07-10 07:30:44)

Offline

#10 2015-07-10 07:30:10

JatinKaushal
Member
Registered: 2015-07-10
Posts: 25

Re: Cannot connect to internet in my new Arch Install.

Thank you jasonwryan for your help!
big_smile

Offline

#11 2015-07-10 07:34:43

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

Re: Cannot connect to internet in my new Arch Install.

You may not care about this, but as already mentioned, dhcp takes care of your dns configuration when it's working as designed, so you haven't fixed anything. You have a working network connection, so congrats, but if it was my system, I'd want to know why dhcp did not work as designed.

Offline

#12 2015-07-10 07:36:11

JatinKaushal
Member
Registered: 2015-07-10
Posts: 25

Re: Cannot connect to internet in my new Arch Install.

Okay, that was wierd, I rebooted and the net stopped working, but when I chroot into my system from elementary os, It works.

I tried to ping 192.168.1.1 and I got the error:

 Network is unreachable 

any ideas?

Offline

#13 2015-07-10 07:49:01

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

Re: Cannot connect to internet in my new Arch Install.

Best idea: re-read this thread. Some highlights to look out for below:

Awebb wrote:

Provide details, log files, hints on what topics you read, etc pp.

Details, by the way, means more information about your setup e.g. your network device, the driver you're using, the network you're trying to connect to, etc. Log files are created by your system - look at dmesg and your systemd journal.

jasonwryan wrote:

work your way methodically through the Networking page on the wiki and arrive at a working wired connection

Despite this very good advice earlier, there is no evidence so far that you have actually done that.

When you chroot in from another OS, you're using that OS's network setup - so that's not relevant here.

Last edited by tomk (2015-07-10 07:49:33)

Offline

#14 2015-07-10 08:07:42

Awebb
Member
Registered: 2010-05-06
Posts: 6,294

Re: Cannot connect to internet in my new Arch Install.

1. run systemctl as root.
2. ip link, please. I have not seen an eth0 on Arch in two years. It's probably enp[0-9]s[0-9].

Offline

#15 2015-07-10 13:27:42

JatinKaushal
Member
Registered: 2015-07-10
Posts: 25

Re: Cannot connect to internet in my new Arch Install.

Okay fixed it. For some reason networkmanager.service was not started. so all i had to do was execute:

 sudo systemctl enable NetworkManager.service 
 sudo systemctl start NetworkManager.service     

Offline

#16 2015-07-10 14:03:40

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: Cannot connect to internet in my new Arch Install.

Network manager is completely different. There's no reason why it should be started without user intervention. As Awebb stated, eth0 was probably the problem.

# systemctl enable dhcpcd
# systemctl start dhcpcd

would probably have sufficed.

Offline

Board footer

Powered by FluxBB