6.4. 网络定义文件配置选项
您可以使用下表中的属性在 network_data.yaml 文件中配置网络属性。
| 属性 | 值 |
|---|---|
|
| 网络的名称。 |
|
|
网络名称的小写版本。director 将此名称映射到分配给 |
|
|
网络的 DNS 域名。仅在 undercloud 节点部署和管理多个 overcloud 时设置
要确定
Example:
注意
您不能将相同的 |
|
|
最大传输单元(MTU)。默认值为 |
|
|
对于 IPv6,设置为 |
|
|
设置为 |
|
| 包含网络的子网定义。 |
| 属性 | 值 |
|---|---|
|
| 子网的名称。 |
|
|
CIDR 块表示法中的 IPv4 子网。默认值为 |
|
|
CIDR 块表示法中的 IPv6 子网。默认值为 |
|
|
IPv4 网络的网关地址。默认值为 |
|
| IPv6 网络的网关。 |
|
| IPv4 子网的 IP 范围。默认值: start: 192.0.5.100 end: 192.0.5.150
|
|
| IPv6 子网的 IP 范围。默认值: start: 2001:db6:fd00:1000:100::1 end: 2001:db6:fd00:1000:150::1
|
|
| 需要通过网络网关路由的 IPv4 网络列表。 |
|
| 需要通过网络网关路由的 IPv6 网络列表。 |
|
| 网络的 VLAN ID。 |
routes 和 routes_ipv6 选项包含一个路由列表。每个路由都是一个带有 destination 和 nexthop 键的字典条目。这两个选项都是字符串类型。
routes:
- destination: 198.51.100.0/24
nexthop: 192.0.5.1
- destination: 203.0.113.0/24
nexthost: 192.0.5.1
routes:
- destination: 198.51.100.0/24
nexthop: 192.0.5.1
- destination: 203.0.113.0/24
nexthost: 192.0.5.1
routes:
- destination: 2001:db6:fd00:2000::/64
nexthop: 2001:db6:fd00:1000:100::1
- destination: 2001:db6:fd00:3000::/64
nexthost: 2001:db6:fd00:1000:100::1
routes:
- destination: 2001:db6:fd00:2000::/64
nexthop: 2001:db6:fd00:1000:100::1
- destination: 2001:db6:fd00:3000::/64
nexthost: 2001:db6:fd00:1000:100::1