Network Gateway for GDC 是在本地集群中启用高级网络功能的关键组件。这是一种捆绑式网关,可让您精细控制集群网络的属性。
该网关的一个重要优势是,可以从您在 NetworkGatewayGroup 自定义资源中指定的一组地址动态分配浮动 IP 地址。如果基础架构重新启动或重置,则浮动 IP 地址功能可确保它会返回相同的 IP 地址。此功能是创建 VPN 隧道、运行出站流量 NAT 等功能或调用 BGP 时的关键,所有这些操作都依赖于确定性 IP 地址。
“Google Distributed Cloud on Bare Metal”文档中的出站 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"]],["最后更新时间 (UTC):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."]]