本帖最后由 qcbb001 于 2016-11-17 10:41 编辑
验证网络连通性出错
错误信息
将本地fule master节点上载到服务器上后,在fuel web界面上验证网络连通性时报错:
node untitled discovered dhcp server via eth0 with following parameters ip
解决方案可以看到错误分为两块:
- 10.20.0.2与安装过程冲突
- 192.168.0.1与安装过程冲突
其中10.20.0.2是fuel master的IP,192.168.0.1是服务器网关路由的IP。
第一块错误的原因是:从本地上载master节点到服务器上,导致节点网卡的mac地址不一致。先来解决这一个错。 Fuel master节点MAC地址问题本地的master节点四块网卡MAC地址为:
"00:0C:29:AA:51:61"
"00:0C:29:AA:51:6B"
"00:0C:29:AA:51:75"
"00:0C:29:AA:51:7F"
因此咱们需要修改服务器master四块网卡的MAC地址,修改步骤如下: 修改前:
[mw_shl_code=bash,true]ethernet0.virtualDev = "e1000"
ethernet0.networkName = "network_lw_3"
ethernet0.addressType = "static"
ethernet0.present = "TRUE"
ethernet1.virtualDev = "e1000"
ethernet1.networkName = "network_lw_3"
ethernet1.addressType = "static"
ethernet1.present = "TRUE"
ethernet2.virtualDev = "e1000"
ethernet2.networkName = "network_lw_3"
ethernet2.addressType = "static"
ethernet2.present = "TRUE"
ethernet3.virtualDev = "e1000"
ethernet3.networkName = "network_lw_3"
ethernet3.addressType = "static"
uuid.bios = "42 15 69 82 80 27 f6 52-da 5c bb dd e4 b0 0d 1b"
ethernet0.address = "00:50:56:34:41:0F"
ethernet1.address = "00:0C:29:AA:51:6B"
ethernet2.address = "00:0C:29:AA:51:75"
ethernet3.address = "00:0C:29:AA:51:7F"[/mw_shl_code]
将网卡addressType设置为“generated”:
[mw_shl_code=bash,true]ethernet0.virtualDev = "e1000"
ethernet0.networkName = "network_lw_3"
ethernet0.addressType = "generated"
ethernet0.present = "TRUE"
ethernet1.virtualDev = "e1000"
ethernet1.networkName = "network_lw_3"
ethernet1.addressType = "generated"
ethernet1.present = "TRUE"
ethernet2.virtualDev = "e1000"
ethernet2.networkName = "network_lw_3"
ethernet2.addressType = "generated"
ethernet2.present = "TRUE"
ethernet3.virtualDev = "e1000"
ethernet3.networkName = "network_lw_3"
ethernet3.addressType = "generated"[/mw_shl_code]
VMware MAC地址的生成是根据uuid.bios生成的,并且始终保证uuid.bios的后三项即为第一块网卡的MAC地址的后三位,因此,我们需要将bios这一项需要将最后三个数字改为AA:51:61,再修改网卡MAC地址:
[mw_shl_code=bash,true]uuid.bios = "42 15 69 82 80 27 f6 52-da 5c bb dd e4 aa 51 61"
ethernet0.address = "00:0C:29:AA:51:61"
ethernet1.address = "00:0C:29:AA:51:6B"
ethernet2.address = "00:0C:29:AA:51:75"
ethernet3.address = "00:0C:29:AA:51:7F"[/mw_shl_code]
- 修改虚拟机设置中四张网卡的mac为上述配置中对应的地址:
如第一张网卡:
- 修改vsphere,允许该端口组的MAC“地址更改”与“伪传输”
再验证网络,结果如下图,可以看到只有10.20.0.2的错误已经解决
##############################
网关问题
网络连通性报错的是192.168.0.1与安装过程冲突,注意我们在本地利用Fuel安装Openstack时,配置网络时,特意去掉了DHCP:
所以我们将192.168.0.1路由的DHCP功能关闭吧先….
关闭之后再重新验证,验证成功~
作者lwyeluo |