跳至内容

第 2 层概述

Equinix Metal™ 服务器默认配置为三层网络,但许多裸机环境受益于二层网络,以便在私有网络内管理 DHCP 和路由等服务。为了支持这些用例,我们开发了一项功能,允许用户向其 Equinix Metal 基础架构添加二层虚拟网络 (VLAN)。VLAN 可以将服务器彼此连接,也可以将服务器连接到其他基础架构,例如 [Equinix Fabric

您可以在同一 Metro 中的同一项目中的服务器连接到第 2 层虚拟局域网 (VLAN)。

功能描述

服务器的 2 端口网卡配置为单个绑定 bond0,其中接口 eth0eth1 都是该绑定的成员,处于默认的三层模式。

在绑定模式下,VLAN 可以连接到绑定网络接口。绑定模式通过支持跨两台交换机的流量来提供冗余和高可用性。其中一台交换机发生故障、维护或重启不会导致网络中断。

在非绑定模式下,服务于服务器每个网卡的交换机端口可以独立配置,以便在网络模式之间切换,从而允许将 VLAN 连接到端口。但这会在上游交换机或网络接口上引入单点故障。其中一个端口或交换机的中断、维护或重启都会导致网络中断。

网络配置类型

警告

使用非绑定网络模式会导致网络冗余丢失,并且在网络维护期间可能会完全失去网络连接。

  • 三层绑定模式 - 默认网络模式。两个接口均处于绑定配置,在三层处理互联网流量。

  • Hybrid Bonded Mode - Both Layer 3 traffic and Layer 2 traffic is supported on the bonded interface. VLANs can be attached to the bonded interface.

  • Hybrid Unbonded Mode - One network interface is removed from the bond and placed in Layer 2 mode. VLANs can then be attached to this interface for Layer 2 connectivity. This preserves Layer 3 connectivity to the server via the remaining interface in the bond, so it can be accessed at its public IP address.

  • Layer 2 Bonded Mode - This mode converts the bonded network interface to a Layer 2 only mode. This means all access to the public Internet is lost, and the host can only be reached by the Serial Over SSH (SOS) console. In this configuration the network bond is intact, and is available for attaching VLANs.

  • Layer 2 Unbonded Mode - The network bond is dismantled, and the two network interfaces are both placed in a Layer 2 only mode. VLANs can be attached to both interfaces. All access to the public Internet is lost, and the host can only be reached by the Serial Over SSH (SOS) console.

其他第 2 层网络功能

原生 VLAN - 不同的网络模式支持在同一接口上配置多个 VLAN。如果您需要支持未标记的二层流量,可以将某个 VLAN 设置为原生 VLAN。

金属网关 - 通过单个网关 IP 地址提供网络访问,无论是互联网还是其他专用网络。

互连 - 使用虚拟光纤连接或专用端口将您的 Equinix 金属二层网络连接到 Equinix 光纤云服务提供商、其他公有云或您自己的托管基础​​设施。

此页面有帮助吗?