Managing Network Interfaces
Configure and manage network interfaces using tools like `ip` and understand persistent network configuration files.
What are Network Interfaces?
Think of your computer's network interface as its "ID card" for communicating on a network. It's the hardware or software component that allows your device to connect to a network, whether wired (Ethernet) or wireless (Wi-Fi).
Every network interaction, like browsing a website or sending an email, goes through one of these interfaces.
Discovering Your Interfaces
The first step in managing interfaces is knowing which ones you have! The ip command is your primary tool in modern Linux systems. Use ip link show to list all network interfaces.
You'll often see interfaces like lo (loopback), eth0 (Ethernet), or wlan0 (Wi-Fi).
ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 08:00:27:00:00:01 brd ff:ff:ff:ff:ff:ffAll lessons in this course
- Managing Network Interfaces
- Routing Tables & Gateways
- DNS Configuration & Resolution
- Configuring the Linux Firewall with nftables