[Openstack-operators] [neutron][extra-dhcp-opt]How to use extra-dhcp-opt when the opt_name="static-route" and opt_name="classless-static-route"?
Dan Sneddon
dsneddon at redhat.com
Thu Jul 30 20:40:19 UTC 2015
On 07/28/2015 05:44 PM, 于洁 wrote:
> Hi all,
> When using the extr-dhcp-opt, I find the function works well when
> opt_name="mtu" and opt_name="router". The vm created will use the
> assigned mtu value or the assigned gateway. But when I create port using
> --extra-dhcp-opt
> opt_name="static-route",opt_value="192.168.0.0/24 2.2.2.2"
> the vm won't use this route. The opt_name="classless-static-route"
> shows the same result.Do i use them in the wrong way?
>
> Any suggestion will be grateful.
> Thank you.
>
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
I'm not sure why the command isn't working the way you expect it to,
but there is another way to add routes to the Neutron DHCP server. You
can set the routes on the subnet directly:
neutron subnet-update <UUID> –host-routes type=dict list=true
destination=192.168.0.0/24,nexthop=2.2.2.2
That should work, give it a try.
--
Dan Sneddon | Principal OpenStack Engineer
dsneddon at redhat.com | redhat.com/openstack
650.254.4025 | dsneddon:irc @dxs:twitter
More information about the OpenStack-operators
mailing list