nmcli is relatively high level (NetworkManager CLI tool).
Re:Ethernet: The Basics
by cassianoleal on Tuesday February 20, 2024 @04:56AM
(#39439492)
nmtui is also great if an interactive UI is preferred.
Re:Ethernet: The Basics
by hiAndrewQuinn on Tuesday February 20, 2024 @05:18AM
(#39439616)
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.
Re:Ethernet: The Basics
by dotancohen on Tuesday February 20, 2024 @06:38AM
(#39440117)
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!
Re:Ethernet: The Basics
by hiAndrewQuinn on Tuesday February 20, 2024 @08:26AM
(#39440911)
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!
Re:Ethernet: The Basics
by dotancohen on Tuesday February 20, 2024 @07:33PM
(#39448808)
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.
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.
Re:Ethernet: The Basics
by MatthiasPortzel on Tuesday February 20, 2024 @02:32PM
(#39445782)
That only covers systemd-networkd. It doesn’t cover wireless and it doesn’t apply to people not using systemd-networkd.
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.