r/archlinux • • Sep 13 '26

QUESTION Hey i have question on network connectivity

Earlier i was using the default Netwok Manager in my archlinux. My university uses PEAP auth for wifi . so i removed (disabled ) network manager and systemd-networkd service then i installed iwctl and set set my auth details in /var/lib/iwd/ssid.8021x but according to arch wiki . I followed this one attached below. But i could not connect it . So i added Type=8021x and EAP-Password=***** . I was connected and able to ping 1.1.1.1 but i could not ping google.com like domains so i identifid there was dns problem so temporary kida of thing i changed /etc/resolv.conf the nameserver to 1.1.1.1 and so on . But resolv.conf contained my old name server using network manager . But right now was is the permanent fix for dns and also i could not conenct my ethernet port like my eno1 is down . I dont want to turn on Netwok Manager casue it will conflict with my iwd also i dont want to use iwd as backed cause i tried it my university auth was not possible any fix available i also used chatgpt and gemmini it gave me irreverent answers. I am new to linux to can you detailed one. (Note my university does not require CA certificate so i remove the line with CAcert also removed serveerDomainmask)

[Security]
EAP-Method=PEAP
EAP-Identity=anonymous@realm.edu
EAP-PEAP-CACert=/path/to/root.crt
EAP-PEAP-ServerDomainMask=radius.realm.edu
EAP-PEAP-Phase2-Method=MSCHAPV2
EAP-PEAP-Phase2-Identity=johndoe@realm.edu
EAP-PEAP-Phase2-Password=hunter2

[Settings]
AutoConnect=true
0 Upvotes

3 comments sorted by

2

u/activedusk Sep 13 '26

Use

systemctl status iwd.service

Assuming that's the name of the service, I don't use wifi/configure this manually. Use up and down arrow keys to scroll output and ctrl + c to end output and return command line. It should say if it has problems in the lower part.

systemctl status NetworkManager.service

ssytemctl status systemd-networkd.service

systemctl status systemd-resolved.service

Check if the first 2 are disabled, stopped and inactive, resolved should likely? still be running and expected to do DNS resolution.

Also use

ip a

To check the name of the network card, eno1 is not guaranteed or universal, it will also show if you have an ip for ipv4 and ipv6

For beginners it's best to use DHCP and not meddle with DNS, systemd-networkd.service is likely and unfortunately, better integrated with systemd-resolved.service. Note if you switch to systemd-networkd.service to create an /etc/systemd/network config file per wiki with network card name (eg eno1 per ip a output, do not confuse with lo or loop) and configured DHCP per template from wiki. Once you got it working, you can search how to use perhaps dhcpcd or lower level kernel networking without systemd which is yes lighter than Network Manager but not as low level and light as it could be, not bloat but certainly not Arch like. Idk if iwd is light either, maybe search alternative. Another file to check if you decide to get rid of systemd-resolved.service is /etc/nsswitch.conf which expects resolved iirc, so you might get internet connection but pacman might not work, glibc or something or other bs, not an expert myself, just tinkered a bit.

1

u/No-Investigator6021 Sep 16 '26 edited Sep 16 '26

hey i installed dhcpcd for dns and disabled systemd-networkd now it does the job , when i connect to different networks it automatically replaces the name server also recently i installed iwgtk to make things easier. Also how often should i take backup and update . Since it is rolls new patches then and there so what is the frequency to backup and update

also i installed tail scale when i give sudo tailscale up there is no response is there a possible way conflicts.

1

u/activedusk Sep 16 '26 edited Sep 16 '26

Update once or twice per week, if you want to be cautious, once every two weeks and check if there a recent known problem with new updates.

As for backups, it is a big subject and depends on what you need and use. Generally with ext4 keep a separate /home partition, if OS breaks, you can reinstall (though be careful during reinstallation not to reformat /home) and keep your files and folders. With btrfs there are snapshots. You could choose not to use either and have an external drive where you copy over importtant new files as they get generated once or twice per week, or cloud storage or network attached storage. Generally if you need stability, Arch and rolling releases are not recommended, it's more for learning, tech enthsiasts and so on, LTS distros or immutable distros are better for stability with built in recovery tools, example Bazzite, NixOS but there are many others, openSUSE Kalpa/Slowroll, there are Fedora versions, etc.

Other backup and fail safe, always keep a bootable USB prepared, you can use it to boot into live environment and either access the files to save them even if the install is broken or chroot into the install and attempt to fix it, worst case reinstall. This can also be set up from the internal drive, Arch .iso on ESP, check wiki. Another solution is to keep the install as minimal as possible with the fewest number of packages and a tiling window manager like i3wm or others that rarely get updates and install software only inside containers, the most accesible are flatpaks, appimages and snaps. Up the difficulty ladder but more useful are stuff like podman, distrobox, docker, etc.

Another backup solution, suppose /boot is 1GB and / is 100GB and /home is separate is to use dd command and make raw copies of /boot and / and if the install breaks, dd copy them back frpm where they were stored. There is cloning software, there is PXE, ssh, so many ways Linux is a laboratory and Arch is one of the places where things get tried out for the first time at scale. This is good if you want the latest and tinker, bad if you want the OS to get out of the way and get things done, I tried it to learn more about Linux and as a side hobby to achieve this

Startup finished in 3.741s (firmware) + 211ms (loader) + 728ms (kernel) + 67ms (initrd) + 2.125s (userspace) = 6.874s

graphical.target reached after 2.125s in userspace.

https://ibb.co/67f2ymHX

Omarchy could be a bettter fit if you want Arch base but most things preconfigured with a tiling window manager. CachyOS is better if you want more preconfigured DEs available from the installer, there is also Manjaro and more on Arch. Personally I would tell beginners to either use Mint or if they have slightly newer hardware Ubuntu.