The router-interface-add commands attaches a subnet to a router.

To add a route (or routes) to a router, try the following:

Syntax: neutron router-update <router id> --routes type=dict list=true 
destination=<network/cidr>,nexthop=<gateway_ip>

To add multiple routes:

Syntax: neutron router-update <router id> --routes type=dict list=true 
destination=<network/cidr>,nexthop=<gateway_ip> 
destination=<network/cidr>,nexthop=<gateway_ip>

James

> On Jun 10, 2015, at 10:11 AM, Saju M <sajup...@gmail.com> wrote:
> 
> Hi james,
> Thanks for the reply
> Through Neutron command "neutron router-create / router-update" we can't add 
> routes to a router, right ?
> I could not find any way to add routes to a router.
> 
> I think. "#neutron router-interface-add" command internally add routes to 
> router, right ?
> 
> Could you please share the command which help us to add routes to a router ?.
> 
> Thanks,
> 
> Regards
> Saju Madhavan
> +91 09535134654
> 
> On Wed, Jun 10, 2015 at 4:52 PM, James Denton <james.den...@rackspace.com 
> <mailto:james.den...@rackspace.com>> wrote:
> Hi Saju,
> 
> Host routes added to a subnet get pushed to the instances in that subnet via 
> dhcp.
> 
> A route added to a router via router-create or router-update is added to the 
> routing table within the qrouter namespace and affects all connected 
> subnets/instances.
> 
> James
> 
> Sent from my iPhone
> 
> > On Jun 10, 2015, at 5:19 AM, Saju M <sajup...@gmail.com 
> > <mailto:sajup...@gmail.com>> wrote:
> >
> > Hi,
> > Can we add static routes to the router which created by "#neutron 
> > router-create" command ?
> >
> > What is the defference static routes of router and --host_routes of subnet ?
> >
> > I also would like to know use case of static routes of router and 
> > --host_routes of subnet ?
> >
> > Regards
> > Saju Madhavan
> > +91 09535134654 <tel:%2B91%2009535134654>
> > _______________________________________________
> > OpenStack-operators mailing list
> > OpenStack-operators@lists.openstack.org 
> > <mailto:OpenStack-operators@lists.openstack.org>
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators 
> > <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators>
> 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators

Reply via email to