ifconfig

1、ifconfig 查看当前网络接口
   ifconfig  -a 查看所有的网络接口(注:lo是主机的回环地址)
   ifconfig  eth0 查看网络接口eth0
2、ifconfig设置网络接口
   格式如下:ifconfig 网络接口 Ip地址 hw Mac地址 netmask 子网掩码 broadcast 广播地址
3、虚拟网络接口,是指一个网络接口,比如eth0配置多个Ip地址,如下eth0:0 eth0:1
posted on 2015-03-21 21:13  Andy Niu  阅读(363)  评论(0编辑  收藏  举报