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
- Use the
router-createaction of theneutroncommand line client to create a new router.$neutron router-create NAMEReplace NAME with the name to give the new router. Take note of the unique router identifier returned, this will be required in subsequent steps. - Use the
router-gateway-setaction of theneutroncommand line client to link the newly created router to the external provider network.$neutron router-gateway-set ROUTER NETWORKReplace ROUTER with the unique identifier of the router, replace NETWORK with the unique identifier of the external provider network. - Use the
router-interface-addaction of theneutroncommand line client to link the newly created router to the subnet.$neutron router-interface-add ROUTER SUBNETReplace 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.