一月 14th, 2009

Ubuntu 8.10 修改MAC地址

Linux, Ubuntu, by ptubuntu.

这个是来自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;所以另外加一个,设置自动连接就好了。

标签:Linux, mac, network, Ubuntu, Ubuntu

相关日志

Back Top

回复自“Ubuntu 8.10 修改MAC地址”

  1. 没有任何评论。
  1. 没有任何引用。

发表回复

Back Top


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