Creating self service network. [closed]

asked 2019-05-16 05:45:32 -0600

Hi, I have used networking option-2 for neutron service.

According to the following guides, ( (

to create self-service network, I need to create a provider network too.

while creating a subnet for the provider network using following command,

openstack subnet create --network provider \
  --allocation-pool start=START_IP_ADDRESS,end=END_IP_ADDRESS \
  --dns-nameserver DNS_RESOLVER --gateway PROVIDER_NETWORK_GATEWAY \
  --subnet-range PROVIDER_NETWORK_CIDR provider

Q1) should i give the dns-nameserver IP address to be one of the ip address in the /etc/resolv.conf in the controller machine ? or can i use google dns-name server

Q2) Should i always give the gateway ip to be the gateway ip which i have used in the controller machine? for example if my gateway ip in the controller is, then should i always provide that only or can i provide random gateway xx.xx.xx.1

Q3) how about assigning allocation-pool for provider network?

Q4) is it necessary to create provider network subnet to create self-service network.

I'm bit confused. Please help me out.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Bernd Bausch
close date 2019-05-19 18:42:53.289238

1 answer

Sort by » oldest newest most voted

answered 2019-05-16 22:00:46 -0600

updated 2019-05-16 22:20:56 -0600

I agree it’s not that simple. The below is from memory; I hope it’s correct:

Answers 1 and 2 are based on

Q1: The document says

Replace DNS_RESOLVER with the IP address of a DNS resolver. In most cases, you can use one from the /etc/resolv.conf file on the host.

If the host has access to a DNS server on the internet, that works as well.

Q2: Not a random number, but

Replace PROVIDER_NETWORK_GATEWAY with the gateway IP address on the provider network, typically the “.1” IP address.

Q3: The allocation pool is necessary for floating IPs and anything that you connect to the network directly, including instances and routers.

Q4: Without a subnet, ports connected to the network can’t have IP addresses. Therefore, you need it.

edit flag offensive delete link more


Thanks Bernd

Spoorthi Vaidya gravatar imageSpoorthi Vaidya ( 2019-05-16 23:45:48 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2019-05-16 05:37:04 -0600

Seen: 76 times

Last updated: May 16 '19