r/linuxquestions • u/rkh4n • Sep 16 '22
Where to learn Linux networking and different types of interfaces and usage of each
Is there any place I can learn and practice different ways Linux handle networking, like netplan, networkd, network-manager etc and the different types of virtual interfaces it has and what each of those does?
edit: I have used Linux as my primary distro for like 2 years before switching to mac for the job. I know about setting up LAN, basic understanding about setting up Wi-Fi/Ethernet networking via CLI. I have experienced setting up a small data center using proxmox and opennebula but mainly the systems part. I know about VLANs, OSI Model, TCP, UDP etc
What I want to learn is interfaces types and what are those used for and do a hands on setup or something.
12
u/Aldrenean Sep 16 '22
https://wiki.archlinux.org/title/Network_configuration is a pretty great place to start.
2
u/[deleted] Sep 16 '22
If your focus is not primarily in networking I'm a firm believer you will learn about it over time. It's impossible not to be exposed to different networking issues as you go through your jobs. Now.. If networking will be your main thing then yeah. I agree with the rest, buying some gear at home should be the best approach. At least from personal experience as a DevOps dude.
2
u/MintChocolateEnema Sep 16 '22
If you want to get deeper into the lore of networks as a complete system, I definitely recommend Computer Networks by Andrew Tanenbaum.
It's got enough to provide a solid fundamental understanding of the different layers of the OSI model and I found his dry humor to be engaging for such a potentially dry topic. It's a pretty easy read.
I scored the hard copy for school, but I discovered later that the PDF can be found in various repos on GitHub.. not that I condone reaping rewards for free.
8
u/Trant2433 Sep 16 '22
Do you already understand networking in general e.g. can you setup and configure your own local lan? That’s the first goal, even if you do it with Windows boxes and nice off-the-shelf router.
Once you’ve got that, replace these nodes with Linux.
For example, turn off the Netgear or Asus or whatever off-the-shelf wifi router you might use, and instead try to obtain similar functionality with a spare laptop or RaspberryPi with both wifi and Ethernet. You’ll learn tons about how to setup up routing, IP forwarding & NAT, interaction between various interfaces and kernel modules, DNS, dhcp, etc.
Stop using windows on your personal PC / desktop and instead use some “advanced” Linux distro or remove all the pretty GUI tools. This will force you learn the underlying user space tools and kernel subsystems, systemd, etc. that configure networking on an individual machine.
2
u/RogueIMP Sep 16 '22
Lookin to NetworkManager and the nmcli tools
1
u/[deleted] Sep 16 '22
https://www.dbooks.org/beejs-guide-to-network-programming-1705309909/
-3
u/[deleted] Sep 16 '22
You could try... the information super highway
2
u/[deleted] Sep 16 '22
[removed] — view removed comment