zoukankan      html  css  js  c++  java
  • 第十二章 neutron组件安装1

    1、在控制节点上,keystone中为neutron增加用户、赋予角色、添加服务入口

    # add neutron user (set in service project)
    openstack user create --domain default --project service --password servicepassword neutron

    # add neutron user in admin role
    openstack role add --project service --user neutron admin    # 此操作无显示
    # add service entry for neutron
    openstack service create --name neutron --description "OpenStack Networking service" network

    export controller1=192.168.222.29
    # add endpoint for neutron (public)
    openstack endpoint create --region RegionOne network public http://$controller1:9696

    # add endpoint for neutron (internal)
    openstack endpoint create --region RegionOne network internal http://$controller1:9696

    # add endpoint for neutron (admin)
    openstack endpoint create --region RegionOne network admin http://$controller1:9696

    2、为neutron创建数据库

    mysql -u root -p
    # 输入之前设置的数据库密码root
    create database neutron_ml2;
    grant all privileges on neutron_ml2.* to neutron@'localhost' identified by 'password';
    grant all privileges on neutron_ml2.* to neutron@'%' identified by 'password';
    flush privileges;
    exit
    3、查看物理交换机中与instance network相连的端口,并在该物理交换机上端口配置trunk,有几个配置几个。
    # 此处以华为二层可管理交换机演示,型号S5700-52P-LI-AC
    <Huawei>system-view
    [Huawei]vlan batch 3000 to 4000                                                                     # 批量创建vlan 3000到4000
    [Huawei]interface GigabitEthernet 0/0/1
    [Huawei-GigabitEthernet0/0/1]description instance network
    [Huawei-GigabitEthernet0/0/1]port link-type trunk
    [Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan 3000  to 4000       # 允许3000到4000的vlan id通过
    [Huawei-GigabitEthernet0/0/1]undo port trunk allow-pass vlan  1    
    [Huawei-GigabitEthernet0/0/1]dis this                                                            # 显示配置   
    <Huawei>save                                                             # 一路exit,退到此模式;save保存退出  

  • 相关阅读:
    第1章 1.4计算机网络概述--数据包和数据帧
    第1章 1.3计算机网络概述--规划IP地址介绍MAC地址
    sql生成随机字符串
    bootstrap手风琴效果
    C#-java RSA加密解密
    正则表达式验证手机号 身份证号 银行卡号 姓名输入
    微服务在微信后台的架构实践
    react学习
    datatables .fnDraw is not a function
    给当前页或者跳转后页面的导航栏添加选中样式
  • 原文地址:https://www.cnblogs.com/shihongkuan/p/11401121.html
Copyright © 2011-2022 走看看