[问题]如何在Ubuntu下更改MAC地址
-
- 帖子: 26
- 注册时间: 2006-05-25 11:10
[问题]如何在Ubuntu下更改MAC地址
我是在学校上网的,学校把我们的端口和MAC地址绑定了,在Windows底下可以通过制定网卡MAC地址来避免,但是要是换成ubuntu以后应该怎么办,怎么样才能像在Windows一样更改MAC地址。谢谢指点了,要不没有网络使用Ubuntu实在不方便
- laborer
- 帖子: 1016
- 注册时间: 2005-10-25 11:15
- 联系:
代码: 全选
sudo ifconfig eth0 down
sudo ifconfig eth0 hw ether 01:23:45:67:89:AB
sudo ifconfig eth0 up
hreiser@oakland:~$ killall -9 wife
police@oakland:~$ sudo find / -user hreiser
court@oakland:~$ sudo mv /home/hreiser /jail/
court@oakland:~$ sudo usermod -d /jail/hreiser -s "/usr/sbin/chroot /jail/" hreiser
police@oakland:~$ sudo find / -user hreiser
court@oakland:~$ sudo mv /home/hreiser /jail/
court@oakland:~$ sudo usermod -d /jail/hreiser -s "/usr/sbin/chroot /jail/" hreiser
- xhy
- 帖子: 3916
- 注册时间: 2005-12-28 1:16
- 系统: Ubuntu 12.10 X64
- 来自: 火星
临时修改
#/sbin/ifconfig eth0 down
#/sbin/ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE
#/sbin/ifconfig eht0 up
或者
#ip link set eth0 down
#ip link set eth0 address 00:48:54:11:22:33
#in ling set eth0 up
永久修改可以将上面几行放入 /etc/rcS.d/rc.local 文件
或者直接编辑 /etc/network/interfaces 文件
在对应的网卡名后面加上 hwaddress ether AABBCCDDEEFF
#/sbin/ifconfig eth0 down
#/sbin/ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE
#/sbin/ifconfig eht0 up
或者
#ip link set eth0 down
#ip link set eth0 address 00:48:54:11:22:33
#in ling set eth0 up
永久修改可以将上面几行放入 /etc/rcS.d/rc.local 文件
或者直接编辑 /etc/network/interfaces 文件
在对应的网卡名后面加上 hwaddress ether AABBCCDDEEFF
目前负债150多万
- hualang0929
- 帖子: 1226
- 注册时间: 2006-11-11 10:23
- 来自: Mars
- 联系:
- hualang0929
- 帖子: 1226
- 注册时间: 2006-11-11 10:23
- 来自: Mars
- 联系:
-
- 帖子: 30
- 注册时间: 2006-10-08 17:53