#设置 IP
netmask *.*.*.*
#设置网关
sudo route add default gw *.*.*.*
#重启网络服务
sudo /etc /init.d /networking restart
#更改mac地址
inconfig eth0(wlan0) down
ifconfig eth0(wlan0) hw
ether *.*.*.*.*.*
ifconfig eth0 up
sudo ifconfig eth0 *.*.*.*
#设置网关
sudo route add default gw *.*.*.*
#重启网络服务
sudo /etc /init.d /networking restart
#更改mac地址
inconfig eth0(wlan0) down
ifconfig eth0(wlan0) hw
ether *.*.*.*.*.*
ifconfig eth0 up
转载于:https://blog.51cto.com/xuanjicto/724154