Back to Help and Info

Network Commands

This section provides commands for configuring, monitoring, and troubleshooting network connections in Proxmox VE. Learn how to view network interfaces, test connectivity, configure network settings, and manage firewall rules.

Network Information

CommandDescriptionAction
ip aShow network interfaces and IPs
ip rShow routing table
ip -s linkShow traffic statistics per interface
brctl showShow configured network bridges
cat /etc/network/interfacesShow raw network configuration

Network Testing

CommandDescriptionAction
ping <host>Check connectivity with another host
traceroute <host>Trace route to a host
mtr <host>Combine ping and traceroute in real-time
dig <domain>DNS lookup for a domain
nslookup <domain>Alternative DNS lookup

Network Configuration

CommandDescriptionAction
ifreload -aReload network configuration (ifupdown2)
ethtool <iface>Show Ethernet device info
resolvectl statusShow DNS resolution status
nmcli device showShow network device details (if NetworkManager is used)
ip link set <iface> upBring network interface up
ip link set <iface> downBring network interface down

Network Monitoring

CommandDescriptionAction
ss -tulnShow listening ports (TCP/UDP)
netstat -tulnAlternative to show listening ports
lsof -iList open network files and connections
tcpdump -i <iface>Capture packets on interface
iftop -i <iface>Monitor bandwidth usage on interface

Firewall Management

CommandDescriptionAction
iptables -L -n -vShow active firewall rules (iptables)
nft list rulesetShow nftables rules
pve-firewall statusCheck Proxmox firewall status
pve-firewall compileCompile firewall rules for all nodes
pve-firewall reloadReload Proxmox firewall rules

Usage Tips

  • Replace <host> with an IP address or hostname
  • Replace <iface> with your network interface name (e.g., eth0, vmbr0)
  • Replace <domain> with a domain name for DNS lookups
  • Use ip a to find the names of your network interfaces
  • For more detailed packet capture with tcpdump, add filters like tcpdump -i eth0 port 80 -n to capture HTTP traffic