You are not logged in.
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
Provide details, log files, hints on what topics you read, etc pp.
Offline
I really don't know what to provide.
Here are the topics I read:
https://wiki.archlinux.org/index.php/Ne … figuration - I didn't understand a thing.
https://bbs.archlinux.org/viewtopic.php?id=151483
http://unix.stackexchange.com/questions … stallation
http://www.reddit.com/r/archlinux/comme … hernet_on/
http://archlinuxarm.org/forum/viewtopic.php?f=31&t=5685
what else can i provide?
Offline
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.
Offline
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
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
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
What guide did you follow when installing Arch?
Offline
If you are able to ping 8.8.8.8 but not www.google.com, check your DNS configuration. See resolv.conf for details.
Offline
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
Thank you jasonwryan for your help!
Offline
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
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
Best idea: re-read this thread. Some highlights to look out for below:
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.
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
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
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
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