美文网首页OpenStack
openstack常用命令-neutron篇

openstack常用命令-neutron篇

作者: reecho_z | 来源:发表于2017-04-13 14:45 被阅读2786次

列出当前租户所有的网络

neutron net-list

列出所有租户的所有网络(需要管理员权限)

neutron net-list --all-tenants

创建一个网络(vlan/flat)

neutron net-create public --shared  --provider:network_type vlan  --provider:physical_network physnet1

查看一个网络的详细信息

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

列出所有的agent

neutron agent-list

创建端口

neutron port-create public (--fixed-ip ip_address=10.0.0.1)

查看端口列表

neutron port-list

相关文章

网友评论

    本文标题:openstack常用命令-neutron篇

    本文链接:https://www.haomeiwen.com/subject/vspbattx.html