2024年5月4日发(作者:)
openstack安装、配置过程中常见问题及解决办法:
by-lilin
== 问题一:由于网络节点只有2个物理网卡,当给网络节点配置虚拟子网
(10.10.10.52,10.20.20.52)时,无法ping通计算节点网络(10.10.10.53/54/55,
10.20.20.53/54/55) ==
解决方法:
在网络节点其中一个物理网卡eth0安装虚拟网卡,构建虚拟vlan,实现同一个网卡分
配2个不同网段的IP地址(10.10.10.52和10.20.20.52)。
安装步骤如下所示:
**安装vlan(vconfig)和加载8021g模块:
# aptitude install vlav
# modprobe 8021g
# lsmod |grep -i 8021q
**使用linux cvonfig命令配置vlan(在eth0网卡上虚拟两个vlav端口,端口号为5、7):
# vconfig add eth0 5
Added VLAN with VID == 5 to IF -:eth0
# vconfig add eth0 7
Added VLAN with VID == 7 to IF -:eth0
**设置VLAN的REORDER_HDR参数,默认就行了:
# vconfig set_flag eth0.5 1 1
Set flag on device -:eth0.5:- Should be visible in /proc/net/vlan/eth0.5
# vconfig set_flag eth0.7 1 1
Set flag on device -:eth0.7:- Should be visible in /proc/net/vlan/eth0.7
**可以使用cat /proc/net/vlan/eth0.5查看eth0.5参数:
# cat /proc/net/vlan/eth0.5
eth0.5 VID: 5 REORDER_HDR: 1 dev->priv_flags: 1
发布者:admin,转转请注明出处:http://www.yc00.com/web/1714793841a2516972.html
评论列表(0条)