閘道的一大優點,就是可從您在 NetworkGatewayGroup 自訂資源中指定的一組位址,動態分配浮動 IP 位址。如果基礎架構重新啟動或重設,浮動 IP 位址功能可確保基礎架構會使用相同的 IP 位址重新啟動。這項功能在建立 VPN 通道、執行 Egress NAT 等功能,或使用 BGP 時非常重要,因為這些功能都需要確定的 IP 位址。
Google Distributed Cloud 裸機說明文件中的輸出 NAT 閘道設定操作說明包含已設定 NetworkGatewayGroup 資源的範例。
GDC 專用網路閘道支援下列功能:
平面 IP 模式
輸出 NAT 閘道
以 BGP 為基礎的負載平衡器
多叢集連線
當進出 NAT 閘道等進階網路功能將浮動 IP 位址指派給特定節點時,我們稱之為閘道節點。閘道節點的網路介面除了節點的主要 IP 位址外,還會設定一或多個浮動 IP 位址。如果閘道節點發生故障,浮動 IP 位址會對應至其他 (閘道) 節點,而進階網路功能則會繼續運作,不會中斷。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-03 (世界標準時間)。"],[[["\u003cp\u003eNetwork Gateway for GDC enables advanced networking features in on-premises clusters, providing fine-grained control over the cluster network.\u003c/p\u003e\n"],["\u003cp\u003eIt dynamically allocates floating IP addresses from a specified set, ensuring consistent IP addresses after reboots or resets for features like VPN tunnels and Egress NAT.\u003c/p\u003e\n"],["\u003cp\u003eThe gateway supports Flat IP mode, Egress NAT gateway, BGP-based Load Balancer, and multi-cluster connectivity.\u003c/p\u003e\n"],["\u003cp\u003eWhen advanced networking features assign floating IPs to a node, it becomes a gateway node, and if that node fails, the floating IPs are reassigned to another gateway node to prevent disruption.\u003c/p\u003e\n"]]],[],null,["# Network Gateway for GDC is the key component for enabling advanced networking\nfeatures in on-premises clusters. It's a\nbundled gateway that gives you fine-grained control over the attributes of your\ncluster network.\n\nAn important benefit of the gateway is the dynamic allocation of\nfloating IP addresses from a set of addresses that you specify in a\n`NetworkGatewayGroup` custom resource. If the infrastructure reboots or resets,\nthe floating IP address capability ensures that it comes back with the same IP\naddress. This capability is key while creating a VPN tunnel, running features\nlike Egress NAT, or when speaking BGP, all of which depend on deterministic IP\naddresses.\n\nThe egress NAT gateway configuration instructions in the\nGoogle Distributed Cloud on bare metal documentation contain an\n[example](/anthos/clusters/docs/bare-metal/latest/how-to/egress-nat#verify_the_gateway_configuration)\nof a configured `NetworkGatewayGroup` resource.\n\nNetwork Gateway for GDC supports the following features:\n\n- Flat IP mode\n- Egress NAT gateway\n- BGP-based Load Balancer\n- Multi-cluster connectivity\n\nWhen advanced networking features, such as egress NAT gateway, assign a floating\nIP address to a specific node, we call that a gateway node. The network\ninterface on a gateway node is configured with one or more floating IP addresses\nin addition to the primary IP address of the node. If a gateway node fails, the\nfloating IP addresses are mapped to a different (gateway) node, and the advanced\nnetworking features continue to work without disruption."]]