What should I select for EXTERNAL_NETWORK_CIDR

asked 2015-05-05 18:19:16 -0500

Balazs Dorman gravatar image

I am installing Openstack to a 3 node (Controller, Network, Compute) architecture from http://docs.openstack.org/juno/install-guide/install/apt/content/neutron_initial-external-network.html (here). All the nodes are virtual machines.

I have done everything like they write it down, but now, i'm confused about networks. Here are some interfaces: Every eth0 interface is connected to the internet. From controller node /etc/network/interfaces:

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
    address 10.9.0.245
    netmask 16
    gateway 10.9.255.254
    dns-nameservers 152.66.243.60
auto eth0
iface eth0 inet6 static
    address 2001:738:2001:4031:9:0:245:0
    netmask 80
    gateway 2001:738:2001:4031:9:255:254:0
    dns-nameservers 152.66.243.60
auto eth1
iface eth1 inet static
    address 10.0.0.11
    netmask 24
    gateway 10.0.0.1

From the Compute node the same file:

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
    address 10.9.0.249
    netmask 16
    gateway 10.9.255.254
    dns-nameservers 152.66.243.60
iface eth0 inet6 static
    address 2001:738:2001:4031:9:0:249:0
    netmask 80
    gateway 2001:738:2001:4031:9:255:254:0
    dns-nameservers 152.66.243.60
auto eth1
iface eth1 inet static
    address 10.0.0.31
    netmask 24
    gateway 10.0.0.1
auto eth2
iface eth2 inet static
    address 10.0.1.31
    netmask 24

From the Network node:

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
    address 10.9.0.32
    netmask 16
    gateway 10.9.255.254
    dns-nameservers 152.66.243.60
iface eth0 inet6 static
    address 2001:738:2001:4031:9:0:32:0
    netmask 80
    gateway 2001:738:2001:4031:9:255:254:0
    dns-nameservers 152.66.243.60
auto eth1
iface eth1 inet static
    address 10.0.0.21
    netmask 24
    gateway 10.0.0.1
auto eth2
iface eth2 inet static
    address 10.0.1.21
    netmask 24

# The external network interface
iface eth3 net manual
    up ip link set dev $IFACE up
    down ip link set dev $IFACE down

So, I tried for EXTERNAL_NETWORK_CIDR the 10.9.0.0/16, the 10.9.0.0/24 and a couple of variation, but I can't ping the tenant router gateway IP, which name is EXTERNAL_NETWORK_GATEWAY.

So my question is what should I select for these two IP adresses? And is external interface configured correctly?

edit retag flag offensive close merge delete

Comments

when you create the ext-net be sure to add it with your REAL GW. Can you post the command you used?

Antonio G. gravatar imageAntonio G. ( 2015-05-06 01:40:46 -0500 )edit

I'm using this command:

 neutron subnet-create ext-net --name ext-subnet \
  --allocation-pool start=FLOATING_IP_START,end=FLOATING_IP_END \
  --disable-dhcp --gateway EXTERNAL_NETWORK_GATEWAY EXTERNAL_NETWORK_CIDR
Balazs Dorman gravatar imageBalazs Dorman ( 2015-05-06 04:27:26 -0500 )edit

If I correctly understood, correct configuration for ext subnet should be:

neutron subnet-create ext-net --name ext-subnet --allocation-pool start=10.9.1.1,end=10.9.1.254 --disable-dhcp --gateway 10.9.255.254 10.9.0.0/16
Antonio G. gravatar imageAntonio G. ( 2015-05-06 07:09:14 -0500 )edit

I can't allocate pool from 10.9.0.0/16 network, because it in the university and the IP-s are reserved, so I guess i should use the Data network (10.0.1.0/24) or Management network (10.0.0.0/24). Management network has a gateway, but it is not real. (10.0.0.1)

Balazs Dorman gravatar imageBalazs Dorman ( 2015-05-06 07:44:05 -0500 )edit

Or I should request some IPs from the university for pool?

Balazs Dorman gravatar imageBalazs Dorman ( 2015-05-08 06:53:16 -0500 )edit