Revision history [back]

You don't have problem with external gateway port
For instance

[root@juno1 ~(keystone_admin)]# neutron router-port-list router4
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                            |
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------------+
| 17ddee14-9f98-4165-a7b3-6db700017bd5 |      | fa:16:3e:6f:a8:e7 | {"subnet_id": "ac209735-54cd-418f-9245-252c56f5eed7", "ip_address": "50.0.0.1"}      |
| 7b037650-10e3-4818-8ff2-4fbd914679d9 |      | fa:16:3e:e5:de:97 | {"subnet_id": "147d5ecd-fe39-489e-8901-3b20a2c50148", "ip_address": "192.168.1.173"} |
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------------+

External public sub_net for router4 was created with --gateway=192.168.1.1 and router4 works fine.

[root@juno1 ~(keystone_admin)]# neutron router-list
+--------------------------------------+---------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
| id                                   | name    | external_gateway_info                                                                                                                                                                     | distributed | ha    |
+--------------------------------------+---------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
| 0da1a1d3-46ec-4c73-a82e-41acf14a26de | router2 | {"network_id": "65cbd354-daae-41bb-9d3c-e58b1062be19", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "147d5ecd-fe39-489e-8901-3b20a2c50148", "ip_address": "192.168.1.151"}]} | False       | False |
| 1cf08ea2-959f-4206-b2f1-a9b4708399c1 | router4 | {"network_id": "65cbd354-daae-41bb-9d3c-e58b1062be19", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "147d5ecd-fe39-489e-8901-3b20a2c50148", "ip_address": "192.168.1.173"}]} | False       | False |
| c33007b0-800f-4d5d-9ef8-45d52cb9237a | router3 | {"network_id": "65cbd354-daae-41bb-9d3c-e58b1062be19", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "147d5ecd-fe39-489e-8901-3b20a2c50148", "ip_address": "192.168.1.172"}]} | False       | False |

Qrouter-namespace routing table :-

    +--------------------------------------+---------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
   [root@juno1 ~(keystone_admin)]# ip netns exec qrouter-1cf08ea2-959f-4206-b2f1-a9b4708399c1 route -n
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 qg-7b037650-10
    50.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 qr-17ddee14-9f
    192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 qg-7b037650-10

You don't have problem with external gateway port
For instance

[root@juno1 ~(keystone_admin)]# neutron router-port-list router4
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                            |
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------------+
| 17ddee14-9f98-4165-a7b3-6db700017bd5 |      | fa:16:3e:6f:a8:e7 | {"subnet_id": "ac209735-54cd-418f-9245-252c56f5eed7", "ip_address": "50.0.0.1"}      |
| 7b037650-10e3-4818-8ff2-4fbd914679d9 |      | fa:16:3e:e5:de:97 | {"subnet_id": "147d5ecd-fe39-489e-8901-3b20a2c50148", "ip_address": "192.168.1.173"} |
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------------+

External public sub_net for router4 was created with --gateway=192.168.1.1 and router4 works fine.

[root@juno1 ~(keystone_admin)]# neutron router-list
+--------------------------------------+---------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
| id                                   | name    | external_gateway_info                                                                                                                                                                     | distributed | ha    |
+--------------------------------------+---------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
| 0da1a1d3-46ec-4c73-a82e-41acf14a26de | router2 | {"network_id": "65cbd354-daae-41bb-9d3c-e58b1062be19", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "147d5ecd-fe39-489e-8901-3b20a2c50148", "ip_address": "192.168.1.151"}]} | False       | False |
| 1cf08ea2-959f-4206-b2f1-a9b4708399c1 | router4 | {"network_id": "65cbd354-daae-41bb-9d3c-e58b1062be19", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "147d5ecd-fe39-489e-8901-3b20a2c50148", "ip_address": "192.168.1.173"}]} | False       | False |
| c33007b0-800f-4d5d-9ef8-45d52cb9237a | router3 | {"network_id": "65cbd354-daae-41bb-9d3c-e58b1062be19", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "147d5ecd-fe39-489e-8901-3b20a2c50148", "ip_address": "192.168.1.172"}]} | False       | False |

Qrouter-namespace routing table :-

    +--------------------------------------+---------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
   [root@juno1 ~(keystone_admin)]# ip netns exec qrouter-1cf08ea2-959f-4206-b2f1-a9b4708399c1 route -n
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 qg-7b037650-10
    50.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 qr-17ddee14-9f
    192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 qg-7b037650-10

Virbr0 is standard Libvirt gateway . "Virtualization" group has been installed. No reason for trouble

[root@juno1 ~(keystone_admin)]# brctl show
bridge name bridge id       STP enabled interfaces
virbr0      8000.52540030a639   yes     virbr0-nic