在Debian系统中,你可以使用ifconfig
命令来查看网络接口的信息。以下是具体步骤:
你可以通过快捷键 Ctrl + Alt + T
打开终端。
在终端中输入以下命令并按回车键:
ifconfig
ifconfig
命令会显示系统中所有网络接口的详细信息,包括:
eth0
, wlan0
等)UP
, DOWN
)eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::a00:27ff:fe4e:66a1 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:4e:66:a1 txqueuelen 1000 (Ethernet)
RX packets 123456 bytes 123456789 (117.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 654321 bytes 987654321 (941.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 12345 bytes 123456 (120.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12345 bytes 123456 (120.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ifconfig
命令在较新的Debian版本中可能已经被弃用,推荐使用ip
命令来代替。sudo
权限来运行这些命令,以获取更详细的信息。ip
命令查看网络接口如果你更喜欢使用ip
命令,可以输入以下命令:
ip addr show
或者查看所有接口的简要信息:
ip link show
希望这些信息对你有所帮助!如果有其他问题,请随时提问。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>