[Openstack] (newbie with Neutron) DVR and multiple external networks

Gustavo Randich gustavo.randich at gmail.com
Fri May 8 18:01:02 UTC 2015


Hi, sorry for my ignorance, but, Is it posible, using DVR, to provide
instances which are in only one tenant network with two floating IPs from
two different external networks? For example:

  - floating ip 1 obtained from external network 1 (VLAN 1) whose physical
gateway is 10.111.1.254
  - floating ip 2 obtained from external network 2 (VLAN 2) whose physical
gateway is 10.222.1.254

I've tried the following aproaches with no success. I'm confused about how
many routers, tenant networks and router interfaces I should define, and
the correct value of 'gateway' parameter of subnet-create command.

Thanks!


# external network 1
neutron net-create ext-net1 --router:external --provider:physical_network
external --provider:network_type vlan --provider:segmentation_id 1 --shared
neutron subnet-create ext-net1 10.111.1.0/24 --name ext-subnet1
--allocation-pool start=10.111.1.1,end=10.111.1.64  --disable-dhcp
--gateway 10.111.1.254

# external network 2
neutron net-create ext-net2 --router:external --provider:physical_network
external --provider:network_type vlan --provider:segmentation_id 2 --shared
neutron subnet-create ext-net2 10.222.1.0/24 --name ext-subnet2
--allocation-pool start=10.222.1.1,end=10.222.1.64  --disable-dhcp
--gateway 10.222.1.254

# tenant network
neutron net-create demo-net
neutron subnet-create demo-net 10.0.2.0/24 --name demo-subnet --gateway
10.0.2.1


# USING 2 ROUTERS
# router 1
neutron router-create r1
neutron router-interface-add r1 demo-subnet
neutron router-gateway-set r1 ext-net1
# router 2
neutron router-create r2
neutron router-interface-add r2 demo-subnet  # ---> ERROR The IP address
10.0.2.1 is in use, so....
neutron port-create demo-net    # obtain $PORT_ID
neutron router-interface-add r2 port=$PORT_ID
neutron router-gateway-set r2 ext-net2


# USING 1 ROUTER
neutron router-create r1
neutron router-interface-add r1 demo-subnet
neutron router-interface-add r1 ext-subnet1
neutron router-gateway-set r1 ext-net2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150508/2fdb76e0/attachment.html>


More information about the Openstack mailing list