Network Configuration
Configure and manage network connections in Debian 13 using NetworkManager and command-line tools.
🌐 NetworkManager
Basic Configuration
bash
# Check network status
nmcli device status
# Show connections
nmcli connection show
# Connect to WiFi
nmcli dev wifi connect "NetworkName" password "password"
# Restart NetworkManager
sudo systemctl restart NetworkManager
Static IP Configuration
bash
# Create static connection
nmcli con add type ethernet con-name "static" ifname eth0 \
ip4 192.168.1.100/24 gw4 192.168.1.1
# Set DNS servers
nmcli con mod "static" ipv4.dns "8.8.8.8,8.8.4.4"
# Activate connection
nmcli con up "static"
📡 WiFi Management
Command Line WiFi
bash
# List available networks
nmcli dev wifi list
# Connect to network
nmcli dev wifi connect "SSID" password "password"
# Show saved connections
nmcli con show
# Delete connection
nmcli con delete "connection-name"
🔧 Manual Configuration
Using /etc/network/interfaces
bash
# Edit network configuration
sudo nano /etc/network/interfaces
# Example static configuration:
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4
📚 Related Resources
- Troubleshooting - Network issues
- Security Settings - Network security
- System Configuration - General setup
Network configured? Explore applications →