[Openstack] Eternal fixed ip to router interface strange behavior

James Denton james.denton at rackspace.com
Thu Sep 1 16:37:38 UTC 2016


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