- 1、本文档共5页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
openstack安装、配置过程中常见问题及解决办法
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
total frames received 623
total bytes received 32353
Broadcast/Multicast Rcvd 606
total frames transmitted 71
total bytes transmitted 9420
Device: eth0
INGRESS priority mappings: 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0
EGRESS priority mappings:
**在/etc/network/interface中修改eth0网络配置信息:
auto eth0.5
iface eth0.5 inet static
address 10.20.20.52
netmask 255.255.255.0
vlan_raw_device eth0
auto eth0.7
iface eth0.7 inet static
address 10.10.10.52
netmask 255.255.255.0
vlan_raw_device eth0
**重启网络:
/etc/init.d/networking restart
== 问题二:网络节点如何使用桥接模式访问外网?(外网IP:192.168.5.*,gateway:192.168.5.253) ==
解决方法:在网络节点的eth1网卡上搭建桥接网络端口br-ex,并进行相关网络参数配置:
**安装openvswitch-switch、openvswitch-datapath-dkms软件包
# apt-get install openvswitch-switch openvswitch-datapath-dkms
**创建桥接网络br-ex:
# ovs-vsctl add-br br-ex
**查看桥接端口br-ex是否启用
# ovs-vsctl list-br
br-ex
br-int
br-tun
**将桥接端口br-ex添加到eth1上
# ovs-vsctl add-port br-ex eth1
**在/etc/network/interface中修改eth1网络配置信息:
auto eth1
iface eth1 inet manual
up ifconfig $IFACE 0.0.0.0 up
up ip link set $IFACE promiss on
您可能关注的文档
- fortran问题.docx
- FreeNAS应用教程.pdf
- Galaxy Tab Q如何卸载安装的第三方软件(T2556).pdf
- Galaxy Tab Q如何取消屏幕上的眼睛图标(T2556).pdf
- Galaxy Tab Q如何显示电池电量百分比(T2556).pdf
- Galaxy Tab Q如何恢复出厂设定(T2556).pdf
- Galaxy Tab Q如何取消通话中提示音(T2556).pdf
- Galaxy Tab Q如何添加天气小组件(T2556).pdf
- Galaxy Tab Q如何添加三星账户(T2556).pdf
- Galaxy Tab Q如何设置屏幕图案锁(T2556).pdf
最近下载
- 完整八年级物理综合实践活动课教案.docx
- 高考英语一轮复习知识清单(全国通用):专题20 语法填空介词100题(精练)解析版.docx VIP
- 110kV〜750kV架空输电线路施工及验收规范.docx VIP
- 2021-2022年国家开放大学电大法学《实用法律基础》课程考试打印版完美打印版 英语网考资料.doc
- 奥迪A6电路图之发动机BAT.pdf
- 2023年4月自考02207电气传动与可编程控制器PLC试题及答案含解析.pdf
- 医院普外科课件.pptx
- 游戏策划方案-数值策划笔试题.docx VIP
- 高考英语一轮复习知识清单:专题08 语法填空不定式100题(全国通用)解析版.docx VIP
- drillwork2005操作手册.ppt
文档评论(0)