- Home /
- Resources /
- Learning center /
- Devices on Multipl...
Devices on Multiple VLANs with Full IP Control
Networking Architecture (Scenario 10) - Implementing network connectivity where devices are connected on different layer 2 VLANs with full control over IP addresses.
On this page
In this scenario:
- No devices are connected directly to the Internet; there are no Internet connections at all
- Devices communicate with each other on distinct Layer 2 VLANs
- Devices use private IPs allocated by you and not by Equinix Metal
- Devices are in a single metro or multiple metros
You have two (or more) isolated VLANs. All of your devices are on one or the other of the VLANs, and can communicate at Layer 2 with other devices on the same VLAN, or with devices on the other VLANs, but not with any other devices or the Internet.
Devices receive no private or public IP addresses from Equinix Metal.
Deployment Options
You have two choices as to how to deploy these devices:
- Use Equinix Metal Gateways and Equinix Metal Virtual Routing and Forwarding (VRF)
- Deploy your own routing devices
For both methods, start by determining distinct and independent IP ranges for each of your VLANs; ensure that they do not conflict with each other.
Using VRF
- Deploy Equinix Metal VRF, using the Equinix Metal console or API. Ensure that you include
ip_ranges
that cover any IP ranges that you will use on the VLANs. - For each VLAN, using the Equinix Metal console or API:
- From your IP ranges determined above, select the unique IP range for this VLAN.
- Reserve the IP range using the usual IP reservation request mechanism, indicating the VRF ID and the range.
- From the response, save the
"gateway"
address. - Create the VLAN.
- Create a VRF Metal Gateway, assigning it the VLAN ID, and the IP Reservation ID.
- Create as many devices as you desire, without a public or private IP address but connected to the VLAN.
- For each device
- retrieve the port ID for the network port, and assign that network port to the VLAN.
- Assign an IP address of your choosing from the IP range you allocated to the VLAN.
- Set the default route of the device to the previously retrieved
"gateway"
address for the IP reservation.
As each VLAN has a Metal Gateway, and the Gateways are connected to the same VRF, traffic will be routed correctly between the Gateways and to the devices.
Because both of the Gateways are Metal Gateways, there already is a networking connectivity between them. VRF provides the routing ability between those, thus enabling the VLANs to communicate over L3.
Router Devices
- For each VLAN, using the Equinix Metal console or API:
- Create the VLAN.
- From your IP ranges determined above, select the unique IP range for this VLAN.
- Create as many devices as you desire, without a public or private IP address but connected to the VLAN, using the Equinix Metal console or API; we call these "private devices".
- Create one or more devices in hybrid bonded mode to act as routers, giving them both private addresses from Equinix Metal and connected to the VLAN, but without public addresses; we call these "router devices".
- For each device, retrieve the port ID for the network port, and assign that network port to the VLAN.
- On each private device:
- Assign an IP address of your choosing from the IP range you allocated to the VLAN.
- Set the default route of the device to the private VLAN address of the "router device".
- On each router device, deploy router software to route packets between the VLAN addresses and the Equinix Metal-assigned private addresses, using NAT, and vice-versa.
Multiple Metros
If you wish to deploy the VLANs in multiple metros while enabling communications between the devices on those VLANs, you cannot yet use VRF. VRF itself is able to understand multiple metros. However, the implicit inter-Gateway connectivity does not connect Gateways between metros. This would require you to deploy an alternate connectivity layer. Equinix Fabric normally is your best choice. However, Fabric does not yet support connecting between two Equinix Metal metros. Equinix is building this capability into its soon-to-be-released Fabric Cloud Router (FCR) product.
In the meantime, you must use router devices. Simply follow the process for "router devices" above, and enable Backend Transfer between the metros.
You may also like
Dig deeper into similar topics in our archivesConfiguring BGP with BIRD 2 on Equinix Metal
Set up BGP on your Equinix Metal server using BIRD 2, including IP configuration, installation, and neighbor setup to ensure robust routing capabilities between your server and the Equinix M...
Configuring BGP with FRR on an Equinix Metal Server
Establish a robust BGP configuration on your Equinix Metal server using FRR, including setting up network interfaces, installing and configuring FRR software, and ensuring secure and efficie...
Crosscloud VPN with WireGuard
Learn to establish secure VPN connections across cloud environments using WireGuard, including detailed setups for site-to-site tunnels and VPN gateways with NAT on Equinix Metal, enhancing...
Deploy Your First Server
Learn the essentials of deploying your first server with Equinix Metal. Set up your project & SSH keys, provision a server and connect it to the internet.