主要用途:1、查看网络接口设置: ifconfig –a或ifconfig 网络接口 –a2、网络配置 ifconfig网络接口[adddel]IP地址netmask子网掩码 例:ifocnfig eth0 10.2.