Advanced Configuration & Troubleshooting with nmcli and ip
This cheat sheet provides essential commands and references for managing network interfaces on CentOS 8.5 using NetworkManager's nmcli and the ip utility.
TCP/IP Model Overview
Network Inspection Commands
Interface Information
Show all network interfaces and IP addresses:
Show only active interfaces:
Show link layer information:
Routing Information
Display the routing table:
Show NetworkManager connections:
Show active connections only:
Device Status
Show device status:
Show detailed connection info:
Configuration Commands
Static IP Configuration
Set static IP address:
Set default gateway:
Set DNS servers:
Change to manual (static) method:
Connection Management
Apply configuration changes:
Add a secondary IP address:
Disable IPv6:
Creating New Connections
Create a new connection:
Activate the new connection:
Delete a connection:
Troubleshooting Commands
Connectivity Testing
Test basic IP connectivity:
Test DNS resolution:
Trace network path:
Alternative path tracing:
DNS Diagnostics
Query DNS information:
Query specific DNS server:
Check DNS configuration:
Logs and Monitoring
Check NetworkManager logs:
Check system messages:
Check firewall rules:
Graphical Tools
nmtui
Launch NetworkManager Text User Interface:
Troubleshooting Flow
- Verify IP configuration:
ip address showandip route show - Test local connectivity:
ping <gateway> - Test internet connectivity:
ping 8.8.8.8 - Test DNS resolution:
dig google.com - Trace path if needed:
traceroute google.com - Check firewall:
sudo firewall-cmd --list-all - Review logs:
journalctl -u NetworkManager.service