Skip to main content
Last updated on

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…).
One account — one Router

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.

Routers list with the Network menu open

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).

Configure Gateway dialog with the S-NAT toggle

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 gateway drops Internet access

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.

Interfaces tab with the Add Interface button

FieldMeaning
SubnetThe 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.

Add Interface form

Remove an Interface

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

Action menu on an Interface

Confirm in the dialog.

Confirmation dialog to remove the Interface

Removing an Interface breaks routing

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.

Static Route tab with the Add button

FieldMeaningExample
DestinationThe destination CIDR192.168.100.0/24
Next HopNext-hop IP (usually the VPN gateway's interface)10.0.0.254

Click Xác nhận (Confirm) to apply immediately.

Add Static Route form

See also