[root@openstack-controller2 ~]# neutron port-list
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+--------------------------------------+------+----------------------------------+-------------------+--------------------------------------------------------------------------------------+
| id | name | tenant_id | mac_address | fixed_ips |
+--------------------------------------+------+----------------------------------+-------------------+--------------------------------------------------------------------------------------+
| 05bde980-7c60-4992-ad8e-3bd20ddd01f3 | | 9f43f66e7d0b411a8219c163858c6f2a | fa:16:3e:72:75:f7 | {"subnet_id": "31fdf25a-f95b-4495-b5c3-50c13df610b0", "ip_address": "192.168.40.52"} |
| 49b79b96-ecd3-4a55-ae6f-84d6d4716e32 | | 9f43f66e7d0b411a8219c163858c6f2a | fa:16:3e:8a:01:98 | {"subnet_id": "31fdf25a-f95b-4495-b5c3-50c13df610b0", "ip_address": "192.168.40.89"} |
| 7a0f41e6-c0a5-4e43-aff8-a469fd532e49 | | 9f43f66e7d0b411a8219c163858c6f2a | fa:16:3e:47:31:11 | {"subnet_id": "019f4405-f18e-44ec-a257-3f59688b40fd", "ip_address": "10.10.0.69"} |
| cbf12646-1c7d-42c8-b577-6d295bbb21bb | | 9f43f66e7d0b411a8219c163858c6f2a | fa:16:3e:7d:bf:af | {"subnet_id": "019f4405-f18e-44ec-a257-3f59688b40fd", "ip_address": "10.10.0.50"} |
| e1451574-5c98-42f7-b2c5-da4d1f3b5f37 | | 9f43f66e7d0b411a8219c163858c6f2a | fa:16:3e:40:55:d6 | {"subnet_id": "31fdf25a-f95b-4495-b5c3-50c13df610b0", "ip_address": "192.168.40.88"} |
| f15b01b8-573e-4abf-b08f-a3ec68846056 | | 531738bf10f5448e8e0827460d035762 | fa:16:3e:52:72:14 | {"subnet_id": "31fdf25a-f95b-4495-b5c3-50c13df610b0", "ip_address": "192.168.40.82"} |
| f8f6549c-6588-4654-9dbf-b6cc8498a594 | | 9f43f66e7d0b411a8219c163858c6f2a | fa:16:3e:58:f1:bb | {"subnet_id": "31fdf25a-f95b-4495-b5c3-50c13df610b0", "ip_address": "192.168.40.50"} |
| fe62e86c-f8b0-4b91-813b-9a724bf69ac1 | | 9f43f66e7d0b411a8219c163858c6f2a | fa:16:3e:bb:3c:4a | {"subnet_id": "019f4405-f18e-44ec-a257-3f59688b40fd", "ip_address": "10.10.7.89"} |
+--------------------------------------+------+----------------------------------+-------------------+--------------------------------------------------------------------------------------+
[root@openstack-controller2 ~]# neutron quota-show admin
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+---------------------+-------+
| Field | Value |
+---------------------+-------+
| network | 100 |
| port | 500 |
| rbac_policy | 10 |
| security_group | 10 |
| security_group_rule | 100 |
| subnet | 100 |
| subnetpool | -1 |
+---------------------+-------+
Web界面修改配额
#需要开启界面开启权限
[root@openstack-controller2 ~]# vim /etc/openstack-dashboard/local_settings
#重启Dashboard
[root@openstack-controller2 ~]# systemctl restart httpd
#修改默认 项目资源限制
【controller】
[root@openstack-controller2 ~]# vim /etc/neutron/neutron.conf
[quotas]
quota_network=10
quota_subnet=10
quota_port=5000
quota_driver=neutron.db.quota.driver.DbQuotaDriver
quota_router=10
quota_floatingip=1000
quota_security_group=10
quota_security_group_rule=100
systemctl restart neutron-server.service \
neutron-linuxbridge-agent.service neutron-dhcp-agent.service \
neutron-metadata-agent.service openstack-nova-api.service
【计算节点】
[root@openstack-node1 ~]# vim /etc/neutron/neutron.conf
[quotas]
quota_network=10
quota_subnet=10
quota_port=5000
quota_driver=neutron.db.quota.driver.DbQuotaDriver
quota_router=10
quota_floatingip=1000
quota_security_group=10
quota_security_group_rule=100
systemctl restart neutron-linuxbridge-agent.service
![]()
![]()