ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

neutron相关

2022-04-19 14:02:18  阅读:125  来源: 互联网

标签:-- ip create 相关 net port neutron


neutron net-list                        #列出当前租户所有的网络
neutron net-list --all-tenants          #列出当前租户所有的网络
neutron net-create public --shared --provider:network_type vlan --provider:physical_network physnet1   #创建一个网络(vlan/flat)
neutron net-show NET_ID                 #查看一个网络的详细信息
neutron net-delete NET_ID               #删除一个网络
neutron subnet-create public 192.168.1.0/24 --name NAME --allocation-pool start =192.168.1.100,end=192.168.1.200 --gateway 192.168.1.254 --dns_nameserver 8.8.8.8    #创建一个子网
neutron agent-list                      #列出所有的agent
neutron port-create public (--fixed-ip ip_address=10.0.0.1)             #创建端口
neutron port-list                       #查看端口列表

neutron port-create --tenant-id <租户ID> --fixed-ip ip_address=100.107.128.117  <网络ID>  #创建浮动ip
例如:neutron port-create --tenant-id 5de37d2523e04fb9a641a106c560a4c4 --fixed-ip ip_address=100.107.128.117  435c65ea-4018-424f-bc8d-ef2bb1124962

nova interface-attach --port-id <浮动ip的ID> <虚拟机uuid>                                 #将创建的浮动ip挂载到虚拟机上
例如:nova interface-attach --port-id 9fb80a69-ff2e-45b6-98c7-7db42e0978a5 c3c5aef8-f7ca-473a-9cf2-8496c7af0ad0

openstack底层添加安全组规则:
openstack security group rule create  --remote-ip 0.0.0.0/0 --protocol 0  --ingress --ethertype ipv4 <id>

 

标签:--,ip,create,相关,net,port,neutron
来源: https://www.cnblogs.com/xuning-xuning/p/16164891.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有