1. 调整网卡工作模式 

mii-tool -v //查看网卡工作模式
mii-tool -F 100baseTx-FD eth0 //将eth0改为100M,全双工工作模式
mii-tool -r eth0 //恢复 网卡工作模式

ethtool eth0 //查询网卡基本设置
ethtool -s eth0 autoneg off speed 100 duplex full //eth0设置为:100M,全双工,非协商

2. 网卡配置
ifconfig -h //打印帮助信息
ifconfig -a //打印当前网卡信息
ifconfig eth0 192.168.0.1 netmask 255.255.255.0 //设置eth0 IP及掩码
ifconfig eth0:0 192.168.0.2 netmask 255.255.255.0 //设置eth0的第二个IP
ifconfig eth0:1 down //禁用eth0:0
ifconfig eth0 up //启用eth0
ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx //修改网卡MAC地址
ifconfig eth0 promisc //设置网卡工作于混杂模式下

iwconfig eth0 essid "tao" //设置无线网卡的essid为“tao”
iwconfig eth0 mode Managed //设置无线网卡工作在Managed模式下
iwconfig eth0 mode Ad-hoc // 设置无线网卡工作