在 Debian 系统中,可以使用以下几种方式查找网卡(网络接口):
ifconfig(需安装 net-tools)ifconfig -a
command not found,先安装:sudo apt update
sudo apt install net-tools
示例输出中常见网卡名:
eth0 / enp3s0(有线)wlan0 / wlp2s0(无线)lo(回环接口)ip 命令(推荐,Debian 默认已安装)ip link
或
ip addr
/sys/class/netls /sys/class/net
ip link show up
ethtool eth0
(将 eth0 换成你的网卡名)
✅ 建议:新版本 Debian 推荐使用 ip 命令代替 ifconfig
如果你是要找某个网卡的 IP、找无线网卡或配置静态 IP,可以告诉我具体需求。