Copy to clipboard
Equinix Metal™ servers are configured with a Layer 3 network configuration by default, but many bare metal environments benefit from Layer 2 networking to manage services like DHCP and routing within a private network. To support these use cases we’ve developed a feature that allows users to add Layer 2 virtual networks to their Equinix Metal infrastructure. VLANs can then connect your servers to each other or connect your servers to other infrastructure, like Equinix Fabric.
You can attach servers in the same project within the same data center to Layer 2 virtual local area networks (VLANs). This feature is available in all data centers for no added fee.
The 2-port NIC is configured with a single bond, namely
bond0, with both interfaces
eth1 as members of the bond in the default Layer 3 mode.
In bonded modes, VLANs can be attached to the bonded network interface. Bonded modes offer redundancy and high-availability by supporting traffic across the 2 switches. An outage, maintenance, or reboot of one of them will not cause network interruptions.
In unbonded modes, the switch ports serving each of your server's NICs may be independently configured to switch between networking modes enabling you to attach VLANs to the ports. This does introduce a single point of failure on the upstream switch or the network interface. An outage, maintenance, or reboot of one of the ports will cause network interruptions.
Network Configuration Types¶
When converting from Layer 3 to another network type there a few possible configurations to choose from:
Hybrid Bonded mode - Both Layer 3 and Layer 2 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
bond0, so it can be accessed via the public IP.
Layer 2 Bonded mode - This mode converts the bonded network interface to pure Layer 2 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, so only one network interface will be available for attaching VLANs.
Layer 2 Unbonded mode - This mode is similar to the Layer 2 Bonded mode configuration, except the network bond is also dismantled, providing two network interfaces available for VLANs. All access to the public Internet is lost, and the host can only be reached by the Serial Over SSH (SOS) console.
Layer 2 Feature Availability¶
Hybrid Bonded mode is only available in Equinix IBX locations on Gen 3 hardware.
Legacy Equinix Metal servers and data centers do not support Hybrid Bonded mode.
c1.small.x86 servers support Layer 3 only, and the
x1.small.x86 servers support Hybrid Unbonded mode only.
Enabling Layer 2 Modes¶
This is a high-level overview of the steps to enable and configure Layer 2 networking on your Equinix Metal servers.
- Create a VLAN.
- Change the networking mode and attach the VLAN to your server. In Hybrid Bonded mode, you only have to attach a VLAN to the bonded interface. For Hybrid Unbonded mode and the Pure Layer 2 modes, you have to change the networking mode first.
- Configure the server to properly use the VLAN and interfaces at the operating system level. This step varies by networking mode and operating system.
- (Optional) Set a Native VLAN. Unbonded modes support un-tagged packets and native VLANs.