[Openstack] multi network,instance can't get route correct

ljvsss ljvsss at gmail.com
Fri Jun 22 15:00:09 UTC 2012


HI:
     I get essex(flatdhcp),

     i have mulit network in my instance,

create network like this:

#nova-manage network create --label=public
--fixed_range_v4=10.0.0.0/24--network_size=255 --bridge=public
--bridge_interface=em2 --multi_host=T
#nova-manage network create --label=private
--fixed_range_v4=10.0.1.0/24--network_size=255 --bridge=private
--bridge_interface=em3 --multi_host=T

netwrok list
# nova-manage network list
id   IPv4               IPv6           start address   DNS1           DNS2
          VlanID         project         uuid
1     10.0.0.0/24       None           10.0.0.2       8.8.4.4         None
          None           None           b66ea728-9ac5-42ba-b666-82adc1dad37f
2     10.0.1.0/24       None           10.0.1.2       8.8.4.4         None
          None           None           3b4aecd6-5541-4dda-bd45-d21c4a0701b3

like this,the instance can work correct,
the instance default route to public is 10.0.1.*(i hope the default route
is 10.0.0.*)

but when i assignation an floating ip to the instance,the floating ip
assignation
to  ip (10.0.0.*) of the instance not 10.0.1.*,so the instance's network
has wrong,'

so, i get this,use_single_default_gateway=True in nova.conf, in this
situation,sometime  the instance can't get route,the instance's network
can't work.
like this:
[image: 内嵌图片 6]

it shoud be like this:
[image: 内嵌图片 7]



is there anyone can help me?

thank very much   :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120622/3660d2d2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 8721 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120622/3660d2d2/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 7693 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120622/3660d2d2/attachment-0001.png>


More information about the Openstack mailing list