openstack Verified current stable Not installed? Cloud Infrastructure

Openstack / List All Networks

List All Networks

Lists all networks available in the OpenStack environment.

$
Terminal
openstack network list

When To Use

For inventory management while planning network architecture changes.

Pro Tip

Use `--external` to filter and display only external networks, reducing output size and focusing results.

Anatomy of Output

Understanding the result

+--------------------------------------+---------------------------------+ Table Header

Start of the network listing.

| ID | net-external-01 | Network ID

Unique identifier for the network.

| Name | External Network | Network Name

The human-readable name of the network.

| Status | ACTIVE | Network Status

Operating state of the network.

+--------------------------------------+---------------------------------+ Table End

End of network details.

Power User Variants

Optimized versions

openstack network list --external

Filters results to show only external networks.

openstack network list --long

Provides additional details for every network in the listing.

Troubleshooting

Common pitfalls

Failed to list networks: api not reachable

Solution: Ensure that the OpenStack network service is up and your endpoint configuration is correct.

Unauthorized: Invalid token

Solution: Reauthenticate and ensure your token is valid for network service access.

No networks found

Solution: Verify network configurations and ensure they are created in the current project.

Command Breakdown

What each part is doing

openstack
Base Command
The executable that performs this operation. Here it runs Openstack before the shell applies any redirect operators.

Alternative Approaches

Comparable commands in other tools

Alternative cloud infrastructure tools for the same job.