Direct Connect (LAN-to-LAN)
Direct Connect links a network on your side (an office, another datacenter, your own racks) to a VNet of your VDC through a dedicated link, without going over the internet. The platform also calls it LAN-to-LAN; the portal screens show the name Direct Connect.
There is no tunnel and no encryption on the way: the VNet router and your firewall sit on the same network, carried by a VLAN of the link, and exchange packets directly. That is what gives Direct Connect low, stable latency.
When to use it
| Use Direct Connect when | Use something else when |
|---|---|
| There is a dedicated link (fiber, MPLS, cross-connect) between your site and the datacenter. | Your site only reaches the datacenter over the internet: use IPsec. |
| You need low, steady latency and high throughput between your network and your VMs. | People need to connect from anywhere: use OpenVPN. |
| The same link must serve one or more VNets of the VDC. |
Still in doubt? See Which VPN should you use?.
How a Direct Connect reaches you
You do not create a Direct Connect in the portal. Your provider does it:
- Adds the Direct Connect to your contract, with a description (such as Paulista 01) and its monthly price.
- Sets up the physical link between your network and the datacenter, on a VLAN reserved for you.
- Activates that contracted Direct Connect in your VDC, on that VLAN.
- Makes it visible to your account.
After that, the Direct Connect shows up in Customer Connect → Direct Connect with the status OK, and the rest is up to you: bind VNets, create static routes, allow the traffic in the firewall and, if you want, add a backup peer.
If you expected a Direct Connect and the page says No Direct Connects found., ask your provider whether it is already visible to your account, and check that you have one of the view permissions.
In the list, the row menu (⋯) of each Direct Connect has two options:
- Bind VNet: connects a VNet to it. See How to bind a VNet to a Direct Connect.
- Edit: changes only the Name and the Description you see in the portal. While the change is applied, the status shows PROVISIONING for a few moments and then returns to OK.
How it works
Your network Your VDC
10.50.0.0/24 VNet 10.20.0.0/16
| |
Your firewall -------- dedicated link (VLAN) ------- VNet router
172.16.1.2 172.16.1.1/30
Remote IP (primary peer) Local IP (CIDR)
- Connection: each VNet bound to the Direct Connect is a connection, listed in the Active Connections table of the Direct Connect page. One Direct Connect can carry several VNets, and a VNet can be bound to more than one Direct Connect, but only once to each.
- Connection network: for each connection you pick a small private network shared by the VNet router and your firewall, such as
172.16.1.0/30.- Local IP (CIDR) is the router address in that network, with the mask, such as
172.16.1.1/30. It is our side. - Remote IP is your firewall address in that network, such as
172.16.1.2. It is your side, and this firewall is the primary peer.
- Local IP (CIDR) is the router address in that network, with the mask, such as
- Static routes tell the VNet which networks of your side are reached through the Direct Connect, such as
10.50.0.0/24. Every route of a connection points to the peer that is carrying the traffic: that address is the route gateway. - Firewall: traffic between your network and the VNet goes through the VNet firewall, like any other traffic of the VNet. A rule can use the target LAN-to-LAN (Peer + Routes), which follows the addresses of the connection on its own.
- Failover (optional): other paths for the routes, in order: a backup peer (a second firewall on your side) and, as the last level, an IPsec VPN of the same VNet. If the primary stops answering, the platform moves all the routes to the next healthy path by itself.
Statuses
The Direct Connect itself shows its status in the list and in Overview → Current Status:
| Status | What it means |
|---|---|
| PROVISIONING | The Direct Connect is being prepared, or a name change is being applied. |
| OK | Ready to use. |
| ERROR | Something failed on the provider side. Contact support. |
| DELETING | The provider is removing it. |
Each connection has its own status, in the Status column of Active Connections:
| Status | What it means |
|---|---|
| BINDING | The platform is attaching the VNet router to the link. It takes a few seconds. |
| BOUND | Ready. Static routes, Health Check and failover are available. |
| UNBINDING | The connection is being removed. |
| ERROR | The router could not be configured. Unbind the VNet and bind it again; if the error comes back, contact support. |
What the Active Connections table shows
| Column | What it shows |
|---|---|
| Virtual Network | The bound VNet. Click the name to open the page of the connection. |
| Addressing (Local ↔ Active peer) | The Local IP and the Remote IP of the peer carrying the traffic. With a backup peer, a second line shows the standby peer and its health. |
| MAC Address | The MAC address of the VNet router interface on the link. It is the address your firewall learns, by ARP, for the Local IP. |
| Static Routes | The destinations of the connection. Hover over them to see each route with its gateway and description. |
| Failover | The state of the failover, or Set up failover when there is none. See How to set up failover for a Direct Connect connection. |
| Status | The connection status. |
Each connection also has a page of its own, called after the VNet and the Direct Connect (such as vnet-app on dc-recife), with a Summary and the Failover, Static routes and History tabs. Open it by clicking the row of the connection in Active Connections. Everything you do on a connection is there: static routes, health check, failover and unbinding.
The VNet page also has a Direct Connect tab, with the Direct Connects that VNet is bound to. Click a row to open the page of that connection.
Billing
Each Direct Connect is contracted one by one in your contract, with a description and its own monthly price, because the cost depends on the physical link: two Direct Connects in the same contract can cost different amounts. Billing starts when the provider adds the Direct Connect to your contract and stops when it is removed from the contract, prorated by the days in the month. Activating it in the VDC comes afterwards and does not change the billing: a contracted Direct Connect is billed the same while awaiting activation, active or in error.
- The invoice shows one line per Direct Connect, with its contract description (such as L2L (Direct Connect) — Paulista 01), so a customer with more than one knows which is being billed. The quantity is prorated by the days it was in the contract (1 for the whole month) and the amount is its price for those days. The VDC month cost card still adds them all up in a single line.
- The same applies to usage-based and pre-allocated contracts: Direct Connect is an item of the contract of its own, outside the price table and the contract limits.
- Each Direct Connect added, changed or removed is recorded in the contract history, with its description and the old and new prices.
- A Direct Connect with no price, which can only come from before contracting by item, is billed at R$ 0,00 and marked Not priced on the invoice, the CSV and the PDF. A price of zero is a courtesy and is not marked.
- The number of bound VNets and static routes does not change the price.
- Failover (backup peer and IPsec) is included at no extra cost.
Permissions
| Key | What it allows |
|---|---|
customer-connect:direct_connect:view | See the Direct Connects, the connections, the static routes, the failover settings and history, and run the Health Check. |
customer-connect:direct_connect:manage | Bind a VNet, edit the name and description, create and edit static routes, change the remote IP, run the IPsec health test, and configure, switch, pause and resume the failover. |
customer-connect:direct_connect:delete | Unbind a VNet and delete static routes. |
customer-connect:direct_connect:* | All of the above. |
manageanddeleteonly work together withview.- The broader view key
customer-connect:viewalso shows the Direct Connect page. - Without
manage, the actions that change something do not appear, and the Failover tab of the page of the connection is read-only. - To choose an IPsec as failover, you also need to see the IPsec connections:
customer-connect:ipsec:view, or a broader key such ascustomer-connect:view. - Firewall rules are a separate permission: creating them needs
security:firewall:manage. - Failover notices (bell and e-mail) go to the users of the VDC with
customer-connect:direct_connect:view,customer-connect:viewornetwork:view.
The full list is in the permission catalog, and How to configure permissions shows how to grant them.
Next steps
- How to bind a VNet to a Direct Connect
- How to manage the static routes of a Direct Connect connection
- How to allow Direct Connect traffic in the firewall
- How to check the health of a Direct Connect connection
- How to set up failover for a Direct Connect connection
- How to use an IPsec as the last level of failover
- How to change the remote IP of a Direct Connect connection
- How to unbind a VNet from a Direct Connect
- Direct Connect problems