echo "===== HOSTNAME ====="
hostname
hostname -f
echo
echo "===== NETWORK ====="
ip -br address
ip route
echo
echo "===== DEFAULT INTERFACE ====="
IFACE=$(ip route show default | awk '{print $5; exit}')
echo "$IFACE"
echo
echo "===== DNS ====="
cat /etc/resolv.conf
echo
echo "===== NETWORK MANAGER ====="
systemctl is-active NetworkManager 2>/dev/null || true
systemctl is-active network 2>/dev/null || true
echo
echo "===== ETCNET ====="
ls -la /etc/net/ifaces 2>/dev/null
test -n "$IFACE" && ls -la "/etc/net/ifaces/$IFACE" 2>/dev/null