Configure networks and VLANs
Create native, trunk, and hybrid client networks with safe addressing, DHCP, MTU, and captive policy.
The Networks page owns logical client networks: attachment, subnet, gateway, DNS, MTU, DHCP pools, lease time, and access policy. It does not choose the physical LAN or WAN. Those values, the local port mode, and the VLAN allow-list are approved on the gateway during agent setup.
Understand the two layers
| Layer | Configured in | Owns |
|---|---|---|
| Physical edge topology | Agent TUI and /etc/urufi/agent/config.yaml | LAN parent, WAN uplink, port mode, native-address ownership, allowed VLAN IDs |
| Logical client network | NOC Networks | Native/VLAN attachment, CIDR, gateway, MTU, DNS, DHCP pools, access mode |
This separation prevents a remote form mistake from moving the gateway onto the wrong interface or creating an unapproved VLAN.
Choose the local port mode
| Mode | Use it for | Native network | Managed VLAN networks |
|---|---|---|---|
access | One untagged client LAN | Required | Rejected |
trunk | Tagged client VLANs on a switch/AP uplink | Optional only when a native address is explicitly configured | Allowed only from the local allow-list |
hybrid | One untagged native LAN plus tagged VLANs | Supported | Allowed only from the local allow-list |
An empty VLAN allow-list means no VLANs, not all VLANs. For example:
network:
wan_interface: enp2s0
lan:
interface: enp26s0
mode: hybrid
native_address: 10.10.0.1/24
manage_native_address: true
allowed_vlan_ids:
- "100,200-220"Restart the agent after changing local topology. NOC will report the new port policy and allowed VLANs when the agent reconnects.
Create a native network
Use a native network for untagged clients directly connected to the LAN parent.
- Open Networks and select the agent.
- Choose Import native LAN.
- Confirm the canonical network CIDR and gateway. For local address
10.10.0.1/24, the CIDR is10.10.0.0/24and the gateway is10.10.0.1. - Set DNS, MTU, lease duration, DHCP, access policy, and an allocation pool.
- Save, then activate network runtime.
When Manage LAN Address is off, cloud CIDR and gateway must exactly match the local
address. When it is on, URUFI can safely reconcile the native address without rewriting
config.yaml; unrelated interface addresses are preserved.
Create a VLAN network
Use VLAN networks when SSIDs or switch access ports must be isolated at layer 2.
- Configure the gateway as
trunkorhybridand allow the VLAN ID locally. - Carry that VLAN tagged on the switch/AP uplink to the gateway.
- In Networks, choose New network and select VLAN.
- Enter the same VLAN ID used by the switch and AP.
- Give it a unique, non-overlapping CIDR and gateway.
- Set an MTU that the complete path supports. Use
1496when a 1500-byte physical or virtual path cannot carry the additional VLAN tag; keep1500only when the full path supports the tagged frame size.
The agent creates a URUFI-owned interface such as ufv100. It will not adopt or delete
an unrelated interface merely because the name or VLAN ID looks similar.

Configure addressing and DHCP
Use a bounded subnet for each broadcast domain. A /24 is usually easier to operate
than one very large shared subnet.
| Field | Rule |
|---|---|
| IPv4 CIDR | Canonical network address, prefix /20 through /30; it must not overlap another edge or WAN network |
| Gateway | A usable address inside the CIDR; never include it in a pool |
| DNS | Reachable resolvers; captive networks require at least one |
| MTU | 576–9000; do not exceed the parent path or native parent MTU |
| Lease duration | 60–604800 seconds; one hour is a practical test default |
| DHCP pool | Usable inclusive range inside the CIDR, excluding gateway, network, broadcast, and other pools |
Multiple pools create reserved gaps inside the same network. They do not represent packages, speeds, or customer tiers. A client's package changes entitlement and service class without moving its address.

Choose the access policy
- Captive portal gives an address but restricts the client until portal activation.
- Authorized devices only permits only devices with a current entitlement and does not redirect unauthenticated browsing.
- Open internet access permits every client on that network immediately. Use it only for intentionally open or otherwise trusted segments.
Activate and verify convergence
Saving changes creates desired state. Activate starts network runtime for that agent. The status is trustworthy only when it shows:
Converged
desired revision = applied revisionThe agent acknowledges a revision only after it applies and verifies interface address, MTU, firewall, DHCP, captive, and traffic-control state. If Last apply failed appears, fix the structured error rather than repeatedly editing unrelated fields.
On a client, renew DHCP after an address, pool, DNS, or MTU change:
sudo nmcli connection down CONNECTION_NAME
sudo nmcli connection up CONNECTION_NAME
ip -4 address
ip routeExisting leases are protected
URUFI does not silently discard active leases to make a subnet shrink succeed. If a lease would fall outside the new subnet or pool safety boundary, wait for or release the lease deliberately, then apply the change again.
Next step
Build the tenant firewall policy, then add bandwidth and service classes without changing network addressing.