O'Reilly logo

Learning OpenStack Networking (Neutron) by James Denton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Router management in the CLI

Neutron offers a number of commands that can be used to create and manage routers. The primary commands associated with router management include:

  • router-create
  • router-delete
  • router-gateway-clear
  • router-gateway-set
  • router-interface-add
  • router-interface-delete
  • router-list
  • router-list-on-l3-agent
  • router-port-list
  • router-show
  • router-update

Creating routers in the CLI

Routers in Neutron are associated with tenants and are available for use only by users within the tenant that created them. As an administrator, you can create routers on behalf of tenants during the creation process.

To create a router, use the router-create command as follows:

Syntax: router-create [--tenant-id TENANT_ID]
[--admin-state-down] NAME

Working with router ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required