Router management
The Router is the gateway that connects Subnets to each other and out to the Internet. The Router handles:
- Internal routing between Subnets in the account via Interfaces.
- Internet routing through the External Gateway with S-NAT.
- Static routing to special networks via Static Routes (site-to-site VPN, private networks…).
Each LANIT Cloud account can create exactly one Router. Every internal Network that needs routing shares this Router.
Enable the External Gateway
The External Gateway connects the Router to LANIT's public network — a prerequisite for VMs in internal Networks to reach the Internet.
Step 1. Open the Router detail page
Go to Network → Routers and click the Router.

Step 2. Configure the gateway
Click the External Gateway toggle at the top right of the Router detail page — a Cấu hình Gateway (Configure Gateway) dialog opens:
- External Network (required) — pick a public network from the LANIT pool.
- Bật S-NAT (Enable S-NAT) — a separate toggle, off by default. This is easy to miss: enabling the External Gateway without enabling S-NAT gives the Router a public IP but internal VMs still can't reach the Internet — S-NAT has to be turned on for that traffic to actually get translated.
Click Xác nhận (Confirm).

Once enabled, the EXTERNAL GATEWAY column in the Routers list shows the Router's public IP. You can flip SNAT on/off afterwards directly from the Overview tab — it applies immediately, no need to reopen the dialog.
Turning off the External Gateway toggle removes the gateway from the Router — the Router loses Internet access immediately. The portal asks for confirmation before proceeding.
Manage Interfaces
An Interface connects the Router to a Subnet — that Subnet "joins" the Router for routing.
Add an Interface
On the Router's Interfaces tab → click + Add Interface.

| Field | Meaning |
|---|---|
| Subnet | The Subnet to connect to the Router |
| IP Address (optional) | The Router's IP on that Subnet. Leave empty to use the Subnet's default gateway |
Click Add.

Remove an Interface
On the Interfaces tab, click ⋯ next to the Interface → Remove Interface.

Confirm in the dialog.

A Subnet removed from the Router loses Internet access and access to other Subnets. VMs in that Subnet can only talk inside the Subnet.
Static Routes
A Static Route directs traffic for a specific IP range through a chosen next-hop — useful when:
- Connecting to a site-to-site VPN to an on-premise network.
- Routing to a private internal network outside the default topology.
- Overriding the default route for a specific IP range.
Add a Static Route
On the Static Routes tab → click + Add Static Route.

| Field | Meaning | Example |
|---|---|---|
| Destination | The destination CIDR | 192.168.100.0/24 |
| Next Hop | Next-hop IP (usually the VPN gateway's interface) | 10.0.0.254 |
Click Xác nhận (Confirm) to apply immediately.

See also
- Network & Subnet — create a Subnet before attaching it to the Router.
- Floating IP — public IPs for VMs sit behind this Router.
- Quick Start — Enable External Gateway — fast path for new users.