Ubuntu 8.10 修改MAC地址

这个是来自Zhiyong’s Weblogs 在这里看到很多不错的文章.不过修改博主的的信息.因这些是私人的信息.但是我也不能全部COPY过来.哈.也有一些自己的语言吧.

在修改MAC方法有两种 1:临时2:固定

方法1.如下:

  1. #ifconfig eth0 down
  2. #ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx
  3. #ifconfig eth0 up

方法2.如下:

  1. #cd /etc/init.d
  2. #vi networking
  3. 找到 case “$1″ in start)
  4. 在下面插入 #ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx

保存,重启机器。。。

用ifconfig看eth0的MAC地址可以发现已经改好。配置IP地址就可以用了。这里放置auto eth0不用,另外创建一个连接,配置好IP。因为每次启动,eth0的物理地址改变以后,系统自动产生一个新的auto eth0 使用DHCP,而会忽略掉以前配置过的auto eth0;所以另外加一个,设置自动连接就好了。

原创文章,转载请注明: 转载自PT Ubuntu Blog

本文链接地址: http://www.ptubuntu.com/2009/01/1464.html

Share

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Verify Code   If you cannot see the CheckCode image,please refresh the page again!