mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-18 10:49:54 +00:00
Update cheatsheets
This commit is contained in:
33
tldr/openstack-subnet
Normal file
33
tldr/openstack-subnet
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# openstack subnet
|
||||
|
||||
> Manage OpenStack subnets (IP address blocks within a network).
|
||||
> More information: <https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/subnet.html>.
|
||||
|
||||
- List all subnets:
|
||||
|
||||
`openstack subnet list`
|
||||
|
||||
- Show details of a specific subnet:
|
||||
|
||||
`openstack subnet show {{subnet_id_or_name}}`
|
||||
|
||||
- List subnets associated with a network:
|
||||
|
||||
`openstack subnet list --network {{network_id_or_name}}`
|
||||
|
||||
- Create a subnet with subnet range `192.168.0.0/24` in a given network:
|
||||
|
||||
`openstack subnet create --network {{network_id_or_name}} --subnet-range 192.168.0.0/24 {{subnet_name}}`
|
||||
|
||||
- Delete a subnet:
|
||||
|
||||
`openstack subnet delete {{subnet_id_or_name}}`
|
||||
|
||||
- Update a subnet with DNS `8.8.8.8` and set a new name:
|
||||
|
||||
`openstack subnet set --dns-nameserver 8.8.8.8 --name {{new_subnet_name}} {{subnet_id}}`
|
||||
Reference in New Issue
Block a user