ifconfig 是一个用于配置和显示 Linux 内核中网络接口的命令行实用程序。在 Debian 系统中,您可以使用 ifconfig 命令来执行以下操作:
ifconfig
ifconfig eth0
sudo ifconfig eth0 up
sudo ifconfig eth0 down
sudo ifconfig eth0 192.168.1.10 netmask 255.255.255.0
sudo ifconfig eth0 0.0.0.0
请注意,ifconfig 命令在某些 Debian 版本中可能已被弃用,取而代之的是 ip 命令。如果您使用的是较新的 Debian 版本,可以尝试使用 ip 命令来执行类似的操作。