1、ifconfig 查看当前网络接口 ifconfig -a 查看所有的网络接口(注:lo是主机的回环地址) ifconfig eth0 查看网络接口eth02、ifconfig设置网络接口 格式如下:ifconfig 网络接口 Ip地址 hw Mac地址 netmask 子网掩码 broadcast 广播地址3、虚拟网络接口,是指一个网络接口,比如eth0配置多个Ip地址,如下eth0:0 eth0:1