Chinaunix首页 | 论坛 | 博客
  • 博客访问: 101095278
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: LINUX

2008-03-23 11:41:55

    来源:赛迪网    作者:korn

1、修改虚拟机的*.vmx文件.

这种方法最值得推荐,因为这样就类似于重新“烧录”了VMware虚拟机的“物理网卡ROM”。方法是:

分两种情况:

a:

ethernet0.addressType = "static"

ethernet0.Address = "00:50:56:0A:0B:0C"

"static"说明VM的"物理网卡"的MAC是静态设定的,你可以改成一个以005056开头的另外一个MAC即可。改完启动VM时如果问你SSID的话,选择“Keep Always”。

b:

ethernet0.addressType = "generated"

uuid.location = "56 4d dc f1 ff aa 75 ea-f1 b9 ee 0d 68 9c 65 5c"

uuid.bios = "56 4d ed 23 13 8c 96 91-7c 68 b2 09 8b aa bb cc"

ethernet0.generatedAddress = "00:0c:29:aa:bb:cc"

"generated"说明VM的"物理网卡"的MAC是系统随机动态设定的,你可以通过将uuid.bios后六位及ethernet0.generatedAddress后六位改成你想要改成的以000c29开头的MAC即可。

2、修改Linux系统里相关 /etc/sysconfig/network-scripts/ifcfg-eth0文件MAC值.

vi /etc/sysconfig/network-scripts/ifcfg-eth0

MACADDR=xx:xx:xx:xx:xx:xx

:wq 保存退出

reboot

3、修改Linux系统里相关rc.local文件MAC值.

可以通过改启动脚本/etc/rc.d/rc.local:

ifconfig eth0 down

ifconfig eth0 hw ether xxxxxxxxxxxx

ifconfig eth0 up

/sbin/route add default gw x.x.x.x eth0

:wq 保存退出

reboot

阅读(158) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~