Skip to content

Comment on Ethernet: The Basics

Comments

Tangentially related question: Does anybody have a good overview resource how to configure networking in a linux system (exluding graphical tools)?

I know there are multiple ways to do similar things and settings are somewhat scattered into different files, but this is why I wondered if there is some kind of overview that I could use as a starting point.

This is the best, seriously https://wiki.archlinux.org/title/systemd-networkd and it's not specific to Arch, since systemd is in 99% of distros nowadays.

That only covers systemd-networkd. It doesn’t cover wireless and it doesn’t apply to people not using systemd-networkd.

Networking for System Administrators is often my recommendation for this. The author walks all the way up the stack from the physical layer up and name-drops every program and file he uses: `ethtool`, `/etc/hosts`, `/etc/resolv.conf`, `ipconfig`, `netcat`, `tcpdump` ...

I quite liked the accessible style, and got a lot out of making Anki flashcards for all of them.

Hi! If you don't mind, I would love to see that Anki deck. I'm a heavy Anki user myself, too. My gmail username is the same as my HN username. Thank you!

Excellent, I'll email you later on tonight. It'll be a good excuse to give the cards a once-over for formatting, etc and make sure they're all up to snuff!

Thank you!

ipconfig is deprecated. Replacement is ip.

The "different files" you refer to are likely just different distros ways of configuring scripts that use netlink/ip. Each distro will do something differ, or use something like systemd-networkd/networkmanager. There's no one way.

netlink is the API, and `ip` is the canonical CLI tool for interacting with the tool.

I found that nothing made sense until I learned the basics, which I did by buying the CCNA books. They start at a very low level, explaining things like what an IP address is, what a network mask does, and so on.

After you know that sort of thing, all the things built on top make a lot more sense.

nmcli is relatively high level (NetworkManager CLI tool).

nmtui is also great if an interactive UI is preferred.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.