分为两种查看命令 [root@controller ~]# neutron subnet-list
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead. | ||||
---|---|---|---|---|
id | name | tenant_id | cidr | allocation_pools |
2e2086da-6acb-499e-a22e-a3906bcf48e7 | private_subnet | b03aac1f6ae94f7bada2afa8f2064312 | 10.0.0.0/24 | {"start": "10.0.0.2", "end": "10.0.0.254"} |
e97beba0-d8ae-4bc6-9497-abad9200cb60 | subnet | b03aac1f6ae94f7bada2afa8f2064312 | 42.51.77.0/24 | {"start": "42.51.77.2", "end": "42.51.77.254"} |
[root@controller ~]# openstack subnet list | |||
---|---|---|---|
ID | Name | Network | Subnet |
2e2086da-6acb-499e-a22e-a3906bcf48e7 | private_subnet | 36878f8d-9df4-4e8a-9972-4c236d9c9eca | 10.0.0.0/24 |
e97beba0-d8ae-4bc6-9497-abad9200cb60 | subnet | 0419d666-2a1e-4c5f-9331-b54ab7718b8b | 42.51.77.0/24 |