文档详情

openstack安装、配置过程中常见问题及解决办法.docx

发布:2017-05-24约4.92千字共5页下载文档
文本预览下载声明
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
显示全部
相似文档