---
updatedAt: 2025-09-16T00:02:02.000Z
agentTools:
  projectIndex: https://developers.hivelocity.net/llms.txt
---

# Routed VLAN Interfaces

*Routed<Glossary>VLAN</Glossary> Interfaces* allow you to route [IPs and Subnets](https://developers.hivelocity.net/docs/ips-and-subnets) to one of your VLAN's via an IRB interface.  Once routed to a VLAN, the subnet's IPs become available for use by any device in the VLAN.  This is a typical setup for hypervisor-like environments, such as K8s deployments.

# Routing IPs to a VLAN

Before you can route IPs to the <Glossary>VLAN</Glossary> interface, you need to [Create a VLAN](https://developers.hivelocity.net/docs/vlans) on your account. Once created, any subnet of IPs on your account that are unassigned can be routed to your VLAN.

## Via API

The update endpoint changes the <Glossary>VLAN</Glossary> setup to match the exact state of values given.  For example, if you have port `789` and `567` already in the VLAN and you want to route the IP assignment `123` to the VLAN interface you will need to pass in all 3 values.  If you omit the port IDs, they will be remove from the VLAN.  To update your VLAN use the [PUT /vlan/\{vlanId}](https://developers.hivelocity.net/reference/put_vlan_id_resource) endpoint.

```
curl --request PUT \
     --url https://core.hivelocity.net/api/v2/vlan/{vlanId} \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --header "X-API-KEY: $API_KEY" \
     --data '
{
     "portIds": [
          789,
          567
     ],
     "ipIds": [
          123
     ]
}

```

# Using the IPs with your Server

Once routed to the <Glossary>VLAN</Glossary>, you need to run commands on the server(s) in your VLAN to finish making an IP available to those server(s). In hypervisor-like deployments, the hypervisor typically handles this for you.  If you are manually routing the IPs yourself, you can use the interface IPs the same way you [configure your server to accept statically routed IPs](https://developers.hivelocity.net/reference/ports#using-the-ips).