Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1957373
  • 博文数量: 176
  • 博客积分: 1857
  • 博客等级: 上尉
  • 技术积分: 2729
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-14 22:55
个人简介

吾生有涯,而知无涯,适当止学.循序渐进,步步提升 Talk is cheap, show me the code.

文章分类

全部博文(176)

文章存档

2019年(1)

2018年(14)

2017年(20)

2016年(31)

2015年(15)

2014年(5)

2013年(10)

2012年(80)

分类: 云计算

2014-09-25 10:11:30

      当使用VMware的克隆技术时,它克隆出虚拟机的是配置是一致的,包括网络方面。导致
Mac地址也是一样的,解决方法如下:

先注释掉后面eth0和eth1网卡的信息,然后重新启动服务器,让他们重新生成新的eth0的mac地址。

[root@mysql01 ~]# cat /etc/udev/rules.d/70-persistent-net.rules

# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x15ad:0x07b0 (vmxnet3)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:85:2a:3f", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x15ad:0x07b0 (vmxnet3)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:85:2d:08", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:85:2d:08", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


在配置ifcfg-eth0即可

[root@mysql01 network-scripts]# cat ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
HWADDR="00:50:56:85:2d:08"
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
IPADDR=192.168.1.80
NETMASK=255.255.255.0
GATEWAY=192.168.1.249
IPV6INIT=no
USERCTL=no




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