Ask Your Question
0

how to create subnet using neutron network?

asked 2015-05-25 02:44:57 -0500

golestani gravatar image

neutron subnet-create ext-net --name ext-subnet \ --allocation-pool start=192.100.100.2,end=192.100.100.102 \ --disable-dhcp --gateway 192.100.100.1 192.100.100.0/24

ERROR: Invalid values_specs end=192.100.100.102 --disable--dhcp 192.100.100.0/24

edit retag flag offensive close merge delete

Comments

can you please check the command again and change --disable-dhcp TO --disable_dhcp

sunnyarora gravatar imagesunnyarora ( 2015-05-25 08:42:20 -0500 )edit

Still gives the same error.... Invalid values_specs end=192.100.100.255 --disable_dhcp 192.100.100.10/24

golestani gravatar imagegolestani ( 2015-05-25 09:45:09 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-05-27 04:47:34 -0500

darragh-oreilly gravatar image
neutron subnet-create n8 10.0.0.0/24 --name sub-n8 \
--allocation_pools type=dict list=true start=10.0.0.100,end=10.0.0.200

Created a new subnet:
+-------------------+----------------------------------------------+
| Field             | Value                                        |
+-------------------+----------------------------------------------+
| allocation_pools  | {"start": "10.0.0.100", "end": "10.0.0.200"} |
| cidr              | 10.0.0.0/24                                  |
| dns_nameservers   |                                              |
| enable_dhcp       | True                                         |
| gateway_ip        | 10.0.0.1                                     |
| host_routes       |                                              |
| id                | fe6a9b23-caba-4a4b-b989-9b27e982b341         |
| ip_version        | 4                                            |
| ipv6_address_mode |                                              |
| ipv6_ra_mode      |                                              |
| name              | sub-n8                                       |
| network_id        | 07f8d12d-1f1c-483a-9bd5-63e211f0358d         |
| subnetpool_id     |                                              |
| tenant_id         | 7f8dd5b66fd54bad9cba5133c92a47ad             |
+-------------------+----------------------------------------------+
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-05-25 02:44:57 -0500

Seen: 2,187 times

Last updated: May 27 '15