You are not logged in.
Hi everyone,
I'm posting this after exhausting other options. I've just installed Arch on my desktop, and I cannot reach any internet connections.
The output of `ping archlinux.org` is sometimes `Name or service not known` and at other times it is `Temporary failure in name resolution`. The output of `ping 192.168.0.1` is `Network is unreachable`. This is the ip address of my router, which I can successfully ping from my laptop. The desktop is connected via ethernet. I had this issue when I installed Arch several days ago as well. I am reinstalling because I did not allow enough room on the partition. I resolved that issue at that point, but I can't remember how I did it, and nothing is working.
If I boot into Kali Linux, which I have on another partition, (I'm just trying out a bunch of distros right now, no particular reason for Kali just yet) I have an internet connection.
So it definitely seems to be related to the configuration. I have tried using the ip command to add a route, but I can't figure out the syntax for adding a route to the enp0s25 device, which is the ethernet connection as shown by `ip a`.
My /etc/hostname simply reads `dylanus`, as that is the name I gave to the computer at installation. My /etc/hosts reads:
127.0.0.1 localhost
::1 localhost
127.0.0.1 dylanus
That seems to match what I have seen on the files on my other computer, as well as what I have seen online.
The internet connection was fine during pacstrap, but has been down ever since. What's going on here?
Please let me know if you need to see the output of any other files or commands. Also, I get the following code is meant to be formatted in these posts. What options do I use to do that?
Thanks
Last edited by Dylanus (2018-05-22 03:29:23)
Offline
Follow the steps here, methodically: https://wiki.archlinux.org/index.php/Ne … figuration
Paste actual commands and output if it doesn't work.
Offline
Thanks. I'll give that a shot.
Offline
I've started working through the network configuration section of the wiki, and I think I have discovered a couple of problems already. The interface was not up, so I have corrected this. I can ping myself, at 127.0.0.1, but I still can't ping anything else.
There is no IPv4 address in the output of `ip a`. `ip route show` gives no output whatsoever.
The output of `ip a` is as follows: (I've used hashes to replace numbers that might be sensitive. Not sure about that, but those numbers shouldn't make any difference)
2: enp0s25: <BROADCAST, MULTICAST, UP, LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether ##:##:##:##:##:## brd ff:ff:ff:ff:ff:ff
inet6 ####:###:####:####:####/64 scope link
valid_lft forever preferred_lft forever
When I look at the output of `ip a` on my laptop, there is an entry for inet above inet6, which contains the IPv4 address for the laptop on the local network. This is missing from the output on my desktop. Pretty sure it should be there, right? How do I fix that? My knowledge of networks is still pretty limited.
Thanks
Offline
Again:
Paste actual commands and output if it doesn't work.
You've not yet told us anything about how you've configured your network and/or what commands you have run to enable your connection. What networking services are you using / do you have enabled?
Last edited by Trilby (2018-05-21 10:38:09)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I've just attempted to copy the template for ethernet from netctl. I pasted the file directly into /etc/netctl and changed it to interface=enp0s25
I named the file ethernet. `netctl enable ethernet` ran without a problem, but `netctl start ethernet` failed.
All it said was that the control process exited with error code. The exit code was 1. I would paste the full output, but that would require typing out the whole thing by hand, as it's on my other computer.
`ip route` gives me no output whatsoever. I gave the contents of /etc/hosts and /etc/hostname at the start of this thread. These are the only files mentioned by the Arch Linux installation guide, so they're the only ones I modified. I haven't really tried anything else, as I am not aware of other methods for configuring a network. I am more than happy to try out commands and provide the output if you can suggest something, but my knowledge of networking is quite limited right now.
Offline
"netctl start ethernet" presumingly failed because you previously put the interface up, so fix that condition.
You can provide the actual output w/o typing stuff by juggling a USB key.
Ftr on your previous attempts:
Just bringing the interface up however wouldn't get you a connection, you need to either setup a static route or use dhcp to receive an IP.
Offline
I really can't help with netctl - it sees needlessly complicated to me. But if you ensure all other network services are stopped/disabled, you can test your connection simply by running `dhcpcd`. If that works, you can enable the service:
systemctl enable dhcpcd@enp0s25"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
So weird! I tried a couple of the options mentioned here, and none of them worked. Then I just tried `dhcpcd` by itself with no arguments, and it configured everything. Now I have internet access. Thanks for pointing me in the right direction.
That command is actually mentioned in the wiki, but I didn't really notice it, because I still have no idea what DHCP really is. I have a lot of research to do!
Everything's fixed now, anyway. Thanks for your help.
Offline
Is there a way for me to mark this as solved?
Offline
Edit your first post and alter the subject.
Offline