Saturday, January 31, 2015

Recreate provider network

Useful network types in Provider networks  are flat(untagged) and vlan (802.1q tagged).

Useful network types in Tenant networks  are vlan(802.1q tagged) and gre (unique id). With the use of the L3 agent and Neutron routers, it is possible to route between GRE-based tenant networks



NOTE: It is important to do the network restart before setting up the router gateway below, because a network restart takes destroys and recreates br-ex which causes the router's interface in the qrouter-* netns to be deleted, and it won't be recreated without clearing and re-setting the gateway.
# . keystonerc_admin
# neutron router-gateway-clear router1
# neutron subnet-delete public_subnet
You need to recreate the public subnet with an allocation range outside of your external DHCP range and set the gateway to the default gateway of the external network.
# neutron subnet-create --name public_subnet --enable_dhcp=False --allocation-pool=start=192.168.122.10,end=192.168.122.20 --gateway=192.168.122.1 public 192.168.122.0/24
# neutron router-gateway-set router1 public

No comments:

Post a Comment