转自:http://forum.ubuntu.org.cn/viewtopic.php?t=6774

1、临时更改(不需要重启):
代码:
$ sudo ifconfig eth0 down
$ sudo ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX
$ sudo ifconfig eth0 up

这样做完以后default route可能就没有了,要重新加一下
代码:
$ sudo route add default gw xxx.xxx.xxx.xxx

2、永久更改:
代码:
$ sudo gedit  /etc/iftab 


eth0 mac 00:e0:4d:75:8e:50(改成你要的物理地址mac)

代码:
$ sudo gedit  /etc/network/interfaces

将iface eth0 inet static后面添加一行

hwaddress ether 00:E0:4d:75:8E:50

如:iface eth0 inet static
hwaddress ether 00:E0:4d:75:8E:50(自己加的)
address 219.220.214.113


然后就好了 可能要重启一下



版权所有 罗明
posted on 2005-12-07 19:52 罗明 阅读(2557) 评论(1)  编辑  收藏 所属分类: Operating System
Comments

只有注册用户登录后才能发表评论。


网站导航: