From bdd63211b49f3fef363515b92c6d431a7e915b9e Mon Sep 17 00:00:00 2001 From: zcq98 Date: Fri, 19 Jan 2024 17:37:54 +0800 Subject: [PATCH] update: no need to add static route for custom vpc Signed-off-by: zcq98 --- docs/advance/ovn-eip-fip-snat.en.md | 15 --------------- docs/advance/ovn-eip-fip-snat.md | 15 --------------- 2 files changed, 30 deletions(-) diff --git a/docs/advance/ovn-eip-fip-snat.en.md b/docs/advance/ovn-eip-fip-snat.en.md index 0dd80f378..28e819bb0 100644 --- a/docs/advance/ovn-eip-fip-snat.en.md +++ b/docs/advance/ovn-eip-fip-snat.en.md @@ -255,10 +255,6 @@ metadata: spec: namespaces: - vpc1 - staticRoutes: # configure routing rules: Which additional public network routes a subnet under the vpc needs to be based on needs to be added manually. The following example is for reference only. Users need to configure it according to their actual situation. - - cidr: 192.168.0.1/28 - nextHopIP: 10.10.204.254 - policy: policySrc enableExternal: true # vpc enableExternal will automatically create an lrp association to the public network specified above addExternalSubnets: # configure addExternalSubnets to support connecting multiple additional public networks - extra @@ -282,17 +278,6 @@ router 87ad06fd-71d5-4ff8-a1f0-54fa3bba1a7f (vpc1) gateway chassis: [7cedd14f-265b-42e5-ac17-e03e7a1f2342 276baccb-fe9c-4476-b41d-05872a94976d fd9f140c-c45d-43db-a6c0-0d4f8ea298dd] ``` -```bash -# k ko nbctl lr-route-list vpc1 -IPv4 Routes -Route Table
: - 192.168.0.1/28 10.10.204.254 src-ip - 0.0.0.0/0 10.5.204.254 dst-ip -# The route currently supports automatic maintenance -# Additional public networks require manual routing configuration in the vpc. In the above example, the source IP address is 192.168.0.1/28 and will be forwarded to the additional public network. -# Users can manually configure routing rules according to the situation -``` - ## 2. ovn-eip This function is designed and used in the same way as iptables-eip, ovn-eip currently has three types diff --git a/docs/advance/ovn-eip-fip-snat.md b/docs/advance/ovn-eip-fip-snat.md index a365568b2..850af4ba5 100644 --- a/docs/advance/ovn-eip-fip-snat.md +++ b/docs/advance/ovn-eip-fip-snat.md @@ -253,10 +253,6 @@ metadata: spec: namespaces: - vpc1 - staticRoutes: # 配置路由规则:vpc 下的某个子网需要基于哪一个额外的公网网络的路由需要手动添加,以下示例仅供参考,用户需根据自己的实际情况进行配置 - - cidr: 192.168.0.1/28 - nextHopIP: 10.10.204.254 - policy: policySrc enableExternal: true # 开启 enableExternal 后 vpc 会自动连接名为 external 的 ls addExternalSubnets: # 配置 addExternalSubnets 支持连接多个额外的公网网络 - extra @@ -280,17 +276,6 @@ router 87ad06fd-71d5-4ff8-a1f0-54fa3bba1a7f (vpc1) gateway chassis: [7cedd14f-265b-42e5-ac17-e03e7a1f2342 276baccb-fe9c-4476-b41d-05872a94976d fd9f140c-c45d-43db-a6c0-0d4f8ea298dd] ``` -```bash -# k ko nbctl lr-route-list vpc1 -IPv4 Routes -Route Table
: - 192.168.0.1/28 10.10.204.254 src-ip - 0.0.0.0/0 10.5.204.254 dst-ip -# 目前会为默认公网网络配置默认路由 -# 额外公网网络需要在 vpc 手动配置路由,上述实例中源 IP 地址为 192.168.0.1/28 会转发至额外公网网络 -# 用户可根据情况手动配置路由规则 -``` - ## 2. ovn-eip 该功能和 iptables-eip 设计和使用方式基本一致,ovn-eip 目前有三种 type