搜索

78.12. 子网未设置

download PDF

取消设置子网属性

使用方法:

openstack subnet unset [-h]
                              [--allocation-pool start=<ip-address>,end=<ip-address>]
                              [--gateway] [--dns-nameserver <dns-nameserver>]
                              [--host-route destination=<subnet>,gateway=<ip-address>]
                              [--service-type <service-type>]
                              [--tag <tag> | --all-tag]
                              <subnet>

表 78.45. positional 参数
概述

<subnet>

要修改的子网(名称或 id)

表 78.46. 命令参数
概述

-h, --help

显示帮助信息并退出

--allocation-pool start=<ip-address>,end=<ip-address>

要从这个子网中删除的分配池 ip 地址,例如:start=192.168.199.2,end=192.168.199.254 (repeat 选项用于取消设置多个分配池)

--gateway

从这个子网中删除网关 ip

--dns-nameserver <dns-nameserver>

要从这个子网中删除的 DNS 服务器(repeat 选项用于取消设置多个 DNS 服务器)

--host-route destination=<subnet>,gateway=<ip-address>

要从这个子网中删除的路由,例如: destination=10.10.0.0/16,gateway=192.168.71.254 destination: destination subnet (在 CIDR 表示法)gateway: nexthop IP address (repeat option to unset multiple host routes)

--service-type <service-type>

要从这个子网中删除的服务类型,如 network:floatingip_agent_gateway。必须是网络端口的有效设备所有者值(重复选项可取消设置多个服务类型)

--tag <tag>

要从子网中删除的标签(重复选项以移除多个标签)

--all-tag

清除与子网关联的所有标签

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.