Ask Your Question
1

/30 network per tenant

asked 2016-07-15 12:38:58 -0600

eyeofthebeholder gravatar image

Using Mitaka, is there a way to assign a /30 to each tenant (or even a /31?) using a DVR router?

When you create a subnet in Openstack, it uses one of the IP addresses for DHCP and one for SNAT and one for the DGW, so I'm a bit confused if this is possible or not.

Any help would be appreciated!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-07-17 12:52:56 -0600

yes, you can but you could use a little trick, because in /30 you have only 2 usable IPs, one is lost for network and one is lost for broadcast, so the trick is, and works also with older version than mitaka:

  • you assign a private VLAN to the tenant, with a private subnet -> for example 10.10.10.0/29 (NO DHCP on this subnet); your physical router will be the DGW with ip 10.10.10.1 and on this router you must put a static to your neutron router for example with IP 10.10.10.6;

  • you create the neutron router with IP 10.10.10.6 (when you create the subnet 10.10.10.0/29 you could limit the usable IP only to 10.10.10.6) ;

  • then you could attach a new subnet /30 to this network by defining that subnet bigger than real, for example you could define on neutron as a /16 subnet and limiting usable floating IP only to your 4 IPs.

  • so your tenant as only 4 usable IP.

HTH Amedeo

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: 2016-07-15 12:38:58 -0600

Seen: 261 times

Last updated: Jul 17 '16