# Network plan

> VLANs with their IP plan, port profiles on switch ports, the VLANs of one port, the route check and CSV exports.

URL: https://docs.racktrace.io/network/network-plan

The network plan documents the logical network next to the physical one: VLANs with their IP plan, port profiles on switch ports, routing, WAN, VPN, WiFi, the firewall, port forwards and DHCP reservations. With a UniFi site linked, RackTrace reads all of this from the console.

## The network plan page

Open **Network → Network plan** in the side menu. The page has these tabs:

![The network plan with VLANs and port profiles](https://docs.racktrace.io/assets/screens/network-plan.webp "The network plan: VLANs with their IP plan, port profiles and the route check.")

| Tab | What it holds |
|---|---|
| VLANs & profiles | The **Networks** card, a network filter, **VLANs**, **Port profiles** and the **Route check** |
| IP addresses | Used and free addresses per subnet, conflicts, and **IP assignments** |
| Routing | **Static routes**, and the live routing table from UniFi |
| WAN & VPN | **WAN connections** and **VPNs** |
| WiFi | **WiFi networks** |
| Firewall | **Firewall zones** and **Firewall rules** |
| Port forwards | **Port forwards** |
| DHCP reservations | **DHCP reservations** |
| From UniFi | The differences with what UniFi reports (only with a linked UniFi site) |
| Security alerts | Changes that can open up the network |

A dot on a tab means it has differences with UniFi. At the top, **VLANs (CSV)** and **Switch ports (CSV)** export the plan (see [CSV exports](https://docs.racktrace.io/network/network-plan#np-csv)).

## VLANs

1. Click **New VLAN**.
2. Fill in the **VLAN ID** (1–4094) and **Name**, and the **Network** if you use networks.
3. Choose a **Colour**. It is used for ports and cables everywhere.
4. Fill in the IP plan: **Subnet** (e.g. 10.0.20.0/24), **Gateway IP**, **DHCP** (a range such as 10.0.20.50 – 10.0.20.250, or relay), **DNS servers (DHCP)** and **Domain name**.
5. Choose the **Gateway device**, and in the second box its HA partner (the other firewall of an HA pair, or the UniFi Shadow Mode gateway). The route check and the simulation use it.
6. Optionally fill in **Purpose** (workstations, voice, OT, management …) and **Notes**, then click **Save**.

The **VLANs** table shows each VLAN with its network, subnet, gateway, DHCP and the number of untagged and tagged ports. Deleting a VLAN removes it from port profiles and ports too.

## Importing VLANs and profiles from UniFi files

Without a linked UniFi site you can import the configuration from two JSON files.

1. Sign in to UniFi Network and open `https://<console-ip>/proxy/network/api/s/default/rest/networkconf` (networks) and `…/rest/portconf` (port profiles). Save each page with `Ctrl`+`S`. On a self-hosted controller: `https://<server>:8443/api/s/default/rest/…`. Replace `default` with your site name if needed.
2. Click **Import from UniFi** on the network plan.
3. Choose **networkconf.json** and, optionally, **portconf.json**. With networks, choose the **Network of this UniFi environment**.
4. Click **Import**. Existing VLANs and profiles with the same ID or name are updated; WAN, VPN and disabled networks are skipped.

## Port profiles

A port profile is the VLAN set-up of a switch port: one untagged (native) VLAN plus tagged VLANs, as in UniFi. Typical profiles: *Workstation* (untagged workstations + tagged voice), *AP* (management + tagged SSID VLANs) and *Uplink* (all VLANs).

1. Click **New profile** (available once there are VLANs).
2. Fill in the **Name** and **Network**, and choose the **Untagged (native) VLAN**.
3. Under **Tagged VLANs**, choose **None (access port)**, **Selected VLANs** (tick them) or **All VLANs (trunk / uplink)**.
4. Optionally set **PoE**, **Colour** and **Notes**, then click **Save**.

### Giving many ports a profile

1. In the rack editor, select the switch and choose **Tools → Port profiles (VLANs)…**. Or click **Port profiles** on its device page.
2. Use the top row for a range: **Ports** from … to …, **all**, **odd only** or **even only**, the profile, then **Apply to range**. Or pick a profile per port.
3. Click **Save**. In the rack editor this can be undone.

## Setting VLANs on one switch port

Select the port in the rack editor, or open it on the device page, and click **VLANs…**. The dialog has two tabs:

- **Port profile**: pick a profile, or **— none —**.
- **Own VLANs**: add VLANs with **+ Add VLAN…** and choose per VLAN **Untagged** (one per port), **Tagged** or **Block** (never carried). For a trunk, tick **All others tagged (trunk)**: every VLAN of the network is tagged, except the untagged and blocked ones.

The summary line says what the port carries and which colour its cables get. Click **Save**. Ports with their own VLANs keep them until you choose a profile for them.

Patch panels, outlets, PDUs, UPSs and power, console, USB and video ports have no VLANs.

## Route check

The **Route check** card runs by itself when you open the network plan; **Check again** runs it once more. It follows the links between switches, gateways, firewalls and routers, also through patch panels and PATCHBOXes, and reports:

- **errors**: a VLAN of one network on a port of another network, or a VLAN on an access port that doesn't reach its gateway (no uplink, no uplink that carries the VLAN all the way, or uplinks without a profile or VLANs);
- **warnings**: links between switches without a profile or VLANs, native VLAN mismatches, and an HA pair where a VLAN reaches only one of the two gateways;
- **notes**: a VLAN blocked on one side but sent by the other, or a VLAN in use without a gateway (set its **Gateway device**).

Each line has an **open** link to the device. When everything is fine, the card says that every VLAN on an access port reaches its gateway and the networks are kept apart.

## CSV exports and the migration list

- **VLANs (CSV)**: every VLAN with network, subnet, gateway, gateway device, DHCP, purpose and notes.
- **Switch ports (CSV)**: every port of switches, gateways, firewalls and routers with profile, native, tagged and blocked VLANs, PoE, label, the patch panel or outlet it runs through and the end device. Useful as a migration list.
- **CSV** on each card of the other tabs exports that card.

The two buttons at the top need the Export right. Changing anything on the network plan needs the Network plan right; without it you can still view everything and run the route check.
