To learn about advanced capabilities available through the neutron command-line interface (CLI), read the networking section in the OpenStack End User Guide.
This table shows example neutron commands that enable you to complete basic network operations:
Operation | Command |
---|---|
Creates a network. | $ neutron net-create net1 |
Creates a subnet that is associated with net1. | $ neutron subnet-create net1 10.0.0.0/24 |
Lists ports for a specified tenant. | $ neutron port-list |
Lists ports for a specified tenant and
displays the id ,
fixed_ips , and
device_owner
columns. |
$ neutron port-list -c id -c fixed_ips -c device_owner |
Shows information for a specified port. | $ neutron port-show |
Note | |
---|---|
The
|