[Openstack] Eternal fixed ip to router interface strange behavior

Satish Patel satish.txt at gmail.com
Thu Sep 1 16:44:40 UTC 2016


I was using GUI interface to attached router to external network and i
did used  Network > Router > Interface > Add-interface  menu

where it asked me for Subnet and Fix IP (option) and i thought it will
allocate IP from pool but it picked gateway IP and screwed my network
:(

It would be good if horizon review details before save it, currently
GUI just save it configuration without showing any detail what its
going to do.

On Thu, Sep 1, 2016 at 12:37 PM, James Denton
<james.denton at rackspace.com> wrote:
> Hi Satish,
>
> Are you using the ‘router-gateway-set’ command? Or the ‘router-interface-add’ command? Based on the behavior you described, it sounds like the latter.
>
> If you need to attach the router to the external network, use the ‘router-gateway-set’ command. An IP should be allocated from the pool. If you need to attach the router to an internal network to serve as the gateway for said network, use the ‘router-interface-add’ command.
>
> James
>
>
> On 9/1/16, 10:51 AM, "Satish Patel" <satish.txt at gmail.com> wrote:
>
>     I have external provider network and today when i tried to attached it
>     to one of DVR router on openstack then it automatically assigned
>     Provider network gateway IP (10.5.0.1) to DVR router Fixed IP and it
>     bring down my network :(
>
>     How come openstack give external gateway IP (which is not in pool
>     allocation list) to virtual router?
>
>     My allocation pool is 10.5.3.135 to 10.5.3.146  (Gateway is 10.5.0.1)
>
>     [root at controller-1 ~(keystone_admin)]# neutron subnet-list
>     +--------------------------------------+------------------------+------------------+-----------------------------------------------------+
>     | id                                   | name                   | cidr
>                 | allocation_pools                                    |
>     +--------------------------------------+------------------------+------------------+-----------------------------------------------------+
>     | ca2b3219-52a9-4158-8494-11a7dca72bbb | private_vlan30_subnet1 |
>     10.5.0.0/21      | {"start": "10.5.3.135", "end": "10.5.3.149"}
>     |
>     -------------------------------------------------------------------------------------------------------------
>
>
>     [root at controller-1 ~(keystone_admin)]# neutron subnet-show
>     ca2b3219-52a9-4158-8494-11a7dca72bbb
>     +-------------------+----------------------------------------------+
>     | Field             | Value                                        |
>     +-------------------+----------------------------------------------+
>     | allocation_pools  | {"start": "10.5.3.135", "end": "10.5.3.149"} |
>     | cidr              | 10.5.0.0/21                                  |
>     | created_at        | 2016-08-26T18:18:45                          |
>     | description       |                                              |
>     | dns_nameservers   |                                              |
>     | enable_dhcp       | False                                        |
>     | gateway_ip        | 10.5.0.1                                     |
>     | host_routes       |                                              |
>     | id                | ca2b3219-52a9-4158-8494-11a7dca72bbb         |
>     | ip_version        | 4                                            |
>     | ipv6_address_mode |                                              |
>     | ipv6_ra_mode      |                                              |
>     | name              | private_vlan30_subnet1                       |
>     | network_id        | c9006e25-9496-4cc4-8f1c-4e3fcc6ec0b9         |
>     | subnetpool_id     |                                              |
>     | tenant_id         | a7ae274c8f4442c2af7c0a43bc548917             |
>     | updated_at        | 2016-08-26T18:18:45                          |
>     +-------------------+----------------------------------------------+
>
>     _______________________________________________
>     Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>     Post to     : openstack at lists.openstack.org
>     Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
>




More information about the Openstack mailing list