Comment 6 for bug 1549860

Revision history for this message
Alex Stafeyev (astafeye) wrote :

Hi
answer to :
Q: When same network with no gateway option is attached to router, What is the value given for the interface that is connected to the router. I am using horizon to attach same subnet to router, however add interface fails as the subnet configured did not have a gateway IP.

Usually the first address in the created network is reserved for the GW and will be after the network is attached to a router.
When you executed with " no-gateway" option the address is not reserved. This is because attaching a "no gateway" network is negative testing action.
In this bug I AM NOT USING "no-gateway" option .

answer to :
Q. Do I have to modify the subnet with gateway option before attaching it to the subnet? or I can assign any IP from subnet with no gateway option?

I prefer you to create a subnet without "no gateway" option from the beginning.

Those 2 answer should also answer the example u gave.
The VM which were created prior adding a router, will use the dhcp agent ( due to its static route in routing table) but vms which created after adding a router should not have that static route and use the router for metadata requests and for exiting the network.

The steps:
Create net and subnet ( no "no gateway" option needed). See option for the subnet- the static route will be there.
After adding the router the static route should be removed from options ( after dhcp agent restart ) . The bug is that it is still there.

I hope I was helpful
BR
Alex