Expressroute 网关和 VPN 网关有什么用?

What is the use of Expressroute gateway and VPN Gateway?

我们正在设置 IPSEC Over Express 路由。我想知道 VPN 网关和 Express Route 网关需要什么?

我的理解是,通过 VPN 网关,我们可以通过 Internet 连接并建立 IPSec 隧道。但是为什么必须创建一个 VPN 网关(如果我想通过 Express 路由连接到站点到站点的 vpn)。

如果不创建 VPN 网关,我们就无法创建 VPN 站点和链接。我想知道为什么会这样。

需要创建 Expressroute 网关才能与 Express 路由电路建立连接。不过这里也不是很了解Gateway的一般用法

网关的目的是否只是在 Azure 云与站点到站点或 Azure 云到 Expressroute 电路之间建立连接?

网关用于设置与 ExpressRoute 线路的连接。 网关可用于建立与 ExpressRoute 线路的连接和 S2S 连接。 它只是一个设备。您配置它的方式决定了它是通过 Internet 的 S2S 还是通过 expressroute 的 S2S。

https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-about-vpngateways

When you configure a virtual network gateway, you configure a setting that specifies the gateway type. The gateway type determines how the virtual network gateway will be used and the actions that the gateway takes. The gateway type 'Vpn' specifies that the type of virtual network gateway created is a 'VPN gateway'. This distinguishes it from an ExpressRoute gateway, which uses a different gateway type. A virtual network can have two virtual network gateways; one VPN gateway and one ExpressRoute gateway.

我希望这是对您问题的足够明确的回答。