Getting networking going with new Archlinux installation
So I installed Archlinux as per the instructions. I'm not a noob, but surely I can't be alone in thinking
https://wiki.archlinux.org/title/Installation_guide
is a little light on details. Let's give an example. Having not managed to get networking going I was following the step by step.
It says consider installing...
"...software necessary for networking "
Oh. That thing in blue is a hyperlink. Ok, networking is kinda important, I'll click on it.
https://wiki.archlinux.org/title/Network_configuration#Network_management
"To troubleshoot a network connection" it says, ensure, among other things, that
"Your network interface has an IP address."
Ok let's look at IP address.
Not exactly a step by step guide!
But thankfully some dude has posted a youtube video. Yes, after 3 evenings of reading the briefest of wikis, I've resorted to youtube tutorials.
https://www.youtube.com/watch?v=iedzVZlAbqI
Arch Linux Enable Networking in new installation PART-2
And it almost worked. Except it didn't. I still got "Network is unreachable" when trying to ping my router.
Hm, maybe it's because I tried to manually set an IP address the other day. So I tried that "flush" instruction given on the wiki page. Sure enough, the IP I set has gone.
Now back to my
/etc/systemd/network/20-wired.network
file, which is only four lines long.
[Match]
name=en*
[Network]
DHCP=yes
I studied it, comparing it with the example in the video. And reaslised that name didn't have a lowercase first letter on the video. I changed it to Name and then issued
systemctl restart systemd-networkd
systemctl restart systemd-resolved
and lo!
ip addr
now shows an IP address that is clearly DHCP assigned. Oh and I can ping www.google.com. Happy days!
Comments
Post a Comment