第十二章 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保存退出  

 

转载于:https://www.cnblogs.com/shihongkuan/p/11401121.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值