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
- List subnets associated with a network:
openstack subnet list --network
- Create a subnet with subnet range
192.168.0.0/24in a given network:
openstack subnet create --network --subnet-range 192.168.0.0/24
- Delete a subnet:
openstack subnet delete
- Update a subnet with DNS
8.8.8.8and set a new name:
openstack subnet set --dns-nameserver 8.8.8.8 --name
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
