69.8.
使用方法:
openstack router set [-h] [--name <name>] [--description <description>]
[--enable | --disable]
[--distributed | --centralized]
[--route destination=<subnet>,gateway=<ip-address>]
[--no-route] [--ha | --no-ha]
[--external-gateway <network>]
[--fixed-ip subnet=<subnet>,ip-address=<ip-address>]
[--enable-snat | --disable-snat]
[--qos-policy <qos-policy> | --no-qos-policy]
[--tag <tag>] [--no-tag]
<router>
表 69.22.
| 值 | 概述 |
|---|---|
|
|
|
表 69.23.
| 值 | 概述 |
|---|---|
| -h, --help | 显示帮助信息并退出 |
| --name <name> |
|
| --description <description> |
|
| --enable |
|
| --disable |
|
| --distributed |
|
|
| 将路由器设置为集中式模式(仅禁用路由器) |
| --route destination=<subnet>,gateway=<ip-address> | 与路由器目的地关联的路由:目标子网(以 CIDR 表示法)网关:下一个 IP 地址(重复选项以设置多个路由) |
| --no-route | 清除与路由器关联的路由。指定 --route 和 --no-route 以覆盖路由的当前值。 |
| --ha | 将路由器设置为高度可用(仅禁用路由器) |
| --no-ha | 清除路由器的高可用性属性(仅禁用路由器) |
| --external-gateway <network> | 用作路由器网关的外部网络(名称或 ID) |
| --fixed-ip subnet=<subnet>,ip-address=<ip-address> | 外部网关上所需的 ip 和/或子网(name 或 id):subnet=<subnet>,ip-address=<ip-address> (重复选项来设置多个固定 IP 地址) |
| --enable-snat | 在外部网关中启用源 nat |
| --disable-snat | 在外部网关中禁用源 nat |
| --qos-policy <qos-policy> | 将 qos 策略附加到路由器网关 ips |
| --no-qos-policy | 从路由器网关 ips 移除 qos 策略 |
| --tag <tag> | 要添加到路由器的标签(重复选项来设置多个标签) |
| --no-tag | 清除与路由器关联的标签。指定 --tag 和 --no-tag 以覆盖当前标签 |