openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #20792
Re: Provider networks and manual ip management
On 02/08/2013 10:14 AM, tra26@xxxxxxxxxxxxx wrote:
> Anyone?
I haven't tried this myself, but, before booting the instance, you
should be able create the port, passing the desired IP on the subnet as
fixed_ips. Then pass this port's ID to nova when you boot the instance.
You may also want to specify an empty allocation_pools value when
creating the subnet.
-Bob
>
>
> Thanks,
>
> -Trevor
>> Again, is there a better place to ask these types of questions?
>>
>> I am trying to get a provider network working where I have full control of
>> the ip allocations. What I need is to be able to have 2 (or more public ip
>> addresses, or really to our private network). I know this can't be done
>> with floating ips, so that is why I am looking to patch it into my network
>> and just manually configure the ips. (probably also having a flat vm
>> network as well).
>>
>> I've got a provider network configured as so, with no dhcp on the subnet:
>> +---------------------------+--------------------------------------+
>> | Field | Value |
>> +---------------------------+--------------------------------------+
>> | admin_state_up | True |
>> | id | f1c2fb46-72a3-410c-b06a-518c56659d62 |
>> | name | provider |
>> | provider:network_type | flat |
>> | provider:physical_network | prinet |
>> | provider:segmentation_id | |
>> | router:external | True |
>> | shared | True |
>> | status | ACTIVE |
>> | subnets | c68bb08b-483f-49a5-be08-b690e84c4f17 |
>> | tenant_id | 35cd7af3118248bcb0ada0080afa3403 |
>> +---------------------------+--------------------------------------+
>>
>> +------------------+------------------------------------------------------+
>> | Field | Value
>> |
>> +------------------+------------------------------------------------------+
>> | allocation_pools | {"start": "192.168.224.2", "end": "192.168.224.254"}
>> |
>> | cidr | 192.168.224.0/24
>> |
>> | dns_nameservers |
>> |
>> | enable_dhcp | False
>> |
>> | gateway_ip | 192.168.224.1
>> |
>> | host_routes |
>> |
>> | id | c68bb08b-483f-49a5-be08-b690e84c4f17
>> |
>> | ip_version | 4
>> |
>> | name |
>> |
>> | network_id | f1c2fb46-72a3-410c-b06a-518c56659d62
>> |
>> | tenant_id | 35cd7af3118248bcb0ada0080afa3403
>> |
>> +------------------+------------------------------------------------------+
>>
>>
>> nova is assigning an ip to the port regardless of there being no dhcp and
>> therefore the port does not allow me to configure it. Using a different ip
>> results in the iptables rules rejecting the packets.
>>
>> Anyone know how to fix this or get around this? Please?
>>
>> -Trevor
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to : openstack@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openstack
>> More help : https://help.launchpad.net/ListHelp
>>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
References