列出當(dāng)前租戶所有的網(wǎng)絡(luò)
neutron net-list
列出所有租戶的所有網(wǎng)絡(luò)(需要管理員權(quán)限)
neutron net-list --all-tenants
創(chuàng)建一個(gè)網(wǎng)絡(luò)(vlan/flat)
neutron net-create public --shared? --provider:network_type vlan? --provider:physical_network physnet1
查看一個(gè)網(wǎng)絡(luò)的詳細(xì)信息
neutron net-show NET_ID
刪除一個(gè)網(wǎng)絡(luò)
neutron net-delete NET_ID
創(chuàng)建一個(gè)子網(wǎng)
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
創(chuàng)建端口
neutron port-create public (--fixed-ip ip_address=10.0.0.1)
查看端口列表
neutron port-list