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 projects or tenants and can only be managed by users within this tenant. Unlike networks, routers cannot be shared among tenants. However, shared networks can be attached to routers and potentially route traffic between different tenants. As an administrator, you can associate routers with tenants during the router creation process.
To create a standalone router in legacy mode, use the Neutron router-create
command, as follows:
usage: router-create [--tenant-id TENANT_ID] [--admin-state-down] NAME
The router will be created without any interfaces attached and will...