ifconfig
命令在Debian系統中用于配置、激活和查詢網絡接口參數
ifconfig
ifconfig eth0
sudo ifconfig eth0 up
sudo ifconfig eth0 down
sudo ifconfig eth0 192.168.1.100 netmask 255.255.255.0
sudo ifconfig eth0 hw ether 00:11:22:33:44:55
sudo dhclient -r eth0
請注意,ifconfig
命令在某些Debian版本中可能已被棄用,建議使用ip
命令替代。例如,使用ip addr
代替ifconfig
查看網絡接口信息。