Network Commands

Help and Info~4 minView script

Curated reference for Proxmox host networking: interface info, connectivity tests, configuration, traffic monitoring and firewall management. Combines ip / ss / nmcli / ethtool / tcpdump / pve-firewall.

Quick interface inventory

ip a shows every interface with its IPs and MAC. ip r shows the routing table. Together they answer most "is this interface configured correctly?" questions in seconds.

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

iptables vs nftables

Modern Debian / Proxmox uses nftables as the underlying firewall engine. The classic iptables -L -n -v command still works as a translation layer, but the source of truth is nft list ruleset. pve-firewall commands are Proxmox's wrapper that emits nftables rules from the cluster firewall config.

Related