-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux ifconfig Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to ifconfig on Linux, covering Arch Linux, CachyOS, and other distributions including network interface configuration, IP address management, and network setup.
- Understanding ifconfig
- ifconfig Installation
- ifconfig Basics
- Interface Configuration
- Troubleshooting
ifconfig configures network interfaces.
Uses:
- Configure interfaces: Set up network interfaces
- View interfaces: Show interface information
- IP addresses: Set IP addresses
- Network setup: Configure network
Note: Modern alternative is ip command.
Arch/CachyOS:
# Install net-tools
sudo pacman -S net-toolsDebian/Ubuntu:
sudo apt install net-toolsFedora:
sudo dnf install net-toolsBasic usage:
# View all interfaces
ifconfig
# Shows all network interfacesInterface info:
# Specific interface
ifconfig eth0
# Shows interface informationConfigure IP:
# Set IP address
sudo ifconfig eth0 192.168.1.100
# Sets IP addressConfigure netmask:
# Set IP and netmask
sudo ifconfig eth0 192.168.1.100 netmask 255.255.255.0
# Sets IP and subnet maskCheck installation:
# Check ifconfig
which ifconfig
# Install if missing
sudo pacman -S net-toolsThis guide covered ifconfig usage, interface configuration, and network setup for Arch Linux, CachyOS, and other distributions.
- ip Guide - Modern network tool
- Networking - Network setup
- nmcli Guide - NetworkManager CLI
-
ifconfig Documentation:
man ifconfig
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.