- Home /
- Resources /
- Learning center /
- Devices on Single...
Devices on Single VLAN with Full IP Control and Connected to a Cloud Provider's VPC Subnet
Networking Architecture (Scenario 11) - Creating a network where devices are linked on a shared layer 2 VLAN with full IP control, directly connected to a subnet in a VPC on a cloud provider.
In this scenario:
- No devices are connected directly to the Internet; there are no Internet connections at all
- No devices are connected directly to Equinix Metal's private network
- Devices communicate with each other on a single Layer 2 VLAN
- Devices use private IPs allocated by you and not by Equinix Metal
- Devices connect to a subnet in a VPC on your cloud provider
- The subnet is in a different IP range than the VLAN
You have one isolated VLAN. All of your devices are on that VLANs, and can communicate at Layer 2 with other devices on the same VLAN. Those devices can communicate privately with servers and services in a subnet in a VPC on your cloud provider. That VPC and subnet have an address range distinct from the VLAN, and therefore communication happens over layer 3, i.e. routing.
Devices receive no private or public IP addresses from Equinix Metal.
As you have two networks - one VPC in the cloud, another in the VLAN in Equinix Metal - you need two things to be able to send traffic between them:
- connectivity - actual networking connectivity between the networks: Equinix Fabric
- routing - knowledge of how to route traffic between the networks: Virtual Routing and Forwarding
Equinix Fabric is the connectivity between the cloud provider and Metal VLAN. You deploy a Virtual Connection (VC) to link the VLAN, via a Metal Gateway, with the cloud provider. Virtual Routing and Forwarding (VRF) provides the routing functionality between the VLAN and VPC over the Fabric VC.
- Select a unique IP range for your VLAN, distinct from the IP range in use in your VPC.
- Deploy Equinix Metal VRF. Ensure that your
allowed_ips
range cover the IP range that you will use on your VLAN. - Reserve the IP range for your VLAN from inside the VRF configuration, using
ip_reservations
. - For the VLAN:
- Create the VLAN.
- Create a Metal Gateway, attached to the VLAN and the single VRF.
- 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, using the Equinix Metal console or API.
- Assign that network port to the VLAN, using the Equinix Metal console or API.
-
ssh
into the device, assign an IP address of your choosing, and set the default route of the device to the previously retrieved"gateway"
address for the IP reservation.
- For the cloud provider VPC:
- Deploy an Equinix Fabric Virtual Connection (VC) between the VRF and the VPC subnet.
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.