-
首先确定shell用户为root账户,可以通过编译源码更改权限
-
如果不是root账户,在终端中敲入:su命令,看到终端的$号,变成#号表面你现在是root账户了。
-
操作:
netcfg //查看网络配置参数
netcfg eth0 down //关闭eth0网卡
netcfg eth0 hwaddr 10:10:10:10:10:10 //更改MAC地址
netcfg eth0 up //开启网卡