Custom ip for virtual router
When creating virtual router on Neutron
is it possible to have router use other than first IP on the allocation pool?
I am using Icehouse
.
Example: My allocation pool is 192.168.1.0/24
. When creating router it would occupy IP 192.168.1.1
. But lower end of the allocation pool is reserved for other use and I want to have my router use IP 192.168.1.20
. Also I still want the virtual machines to use any free floating IP from the 192.168.1.0/24
network.
I know I could use allocation pool staring from 192.168.1.20
to force router take that IP. But that would prevent me from using floating IPs .1-.19
for VMs.
(In this example I used private IPs, in reality the allocation pool would consist of public IPs.)
Is this possible?
UPDATE:
Suggested method allowed creating router with custom IP. But how can I make this router usable by telling it that the external network is its default gateway?
The usual command for this does not work:
Error: Failed to set gateway 400-{u'NeutronError': {u'message': u'Bad router request: Router already has a port on subnet ba5d2..., u'type': u'BadRequest', u'detail': u''}}
UPDATE2: http://specs.openstack.org/openstack/... This page seems to be indicating that this feature has not yet been implimeted. Or am I reading this wrong?