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