8.10.2. Creating a Router

This procedure describes the steps for creating a router.

Procedure 8.9. Creating a Router using the Command Line Interface

  1. Use the router-create action of the neutron command line client to create a new router.
    $ neutron router-create NAME
    Replace NAME with the name to give the new router. Take note of the unique router identifier returned, this will be required in subsequent steps.
  2. Use the router-gateway-set action of the neutron command line client to link the newly created router to the external provider network.
    $ neutron router-gateway-set ROUTER NETWORK
    Replace ROUTER with the unique identifier of the router, replace NETWORK with the unique identifier of the external provider network.
  3. Use the router-interface-add action of the neutron command line client to link the newly created router to the subnet.
    $ neutron router-interface-add ROUTER SUBNET
    Replace ROUTER with the unique identifier of the router, replace SUBNET with the unique identifier of the subnet.
An external provider network has been created. Use the unique identifier of the router when configuring the L3 agent.