Custom route ion SCP

MarioLanno Lv1Posted 2026-Apr-24 22:50

Hello,
I have SCP platform and I would like to know if is possibile to set a custom route for a machine inside a subnet.
The subnet set default gateway and then all machines inside this subnet inherit the default gateway.

Is possibile to add a gateway different for the server inside a subnet?

Thanks

Mario

By solving this question, you may help 830 user(s).

Posting a reply earns you 2 coins. An accepted reply earns you 20 coins and another 10 coins for replying within 10 minutes. (Expired) What is Coin?

Enter your mobile phone number and company name for better service. Go

net_specialist Lv2Posted 2026-Apr-25 07:48
  
The subnet has only one default gateway, and all machines inherit it automatically.
You cannot assign a different gateway per machine inside the subnet from the SCP/network layer.
You can set a custom route or different gateway on an individual server by:

Adding static routes inside the VM/OS
Using policy‑based routing (advanced setups)
Muhammad Abid Lv3Posted 2026-Apr-27 12:03
  
In most virtualized environments (including SCP), the subnet defines a single default gateway, and all VMs inherit it. You cannot assign a different gateway per VM at the subnet level.

Available Solutions:

1. Configure Static Route Inside the Server (Most Common)

You can override routing inside the VM itself.

Keep the default gateway as-is Add a static route for specific traffic via another gateway

Example (Windows):

route add 192.168.2.0 mask 255.255.255.0 192.168.1.254 -p

This is the simplest and most commonly used method

2. Use Multiple NICs (Advanced / Clean Design)

Attach two NICs to the VM:

NIC1 → Subnet A (default gateway)
NIC2 → Subnet B (different gateway)

Then configure routing inside the OS to send specific traffic via NIC2.

Useful for:

Multi-homed servers
Backup / storage / management networks

3. Policy-Based Routing (If SCP Supports It)

Some platforms allow:

Traffic policies
Virtual routers / VRFs
SDN-based routing rules

If SCP supports this, you can:

Route traffic based on source IP (specific VM)

But in Sangfor SCP, this feature is usually limited or requires advanced configuration (NGAF / aSV routing policies)

4. Change Gateway on the VM (Not Recommended)

You can manually change the default gateway inside the server:

But ⚠️ this may break connectivity if the gateway is not reachable in the subnet

Only works if:

The alternative gateway is in the same L2 network
No ARP / routing conflicts

What You CANNOT Do
Assign different default gateways per VM from SCP subnet settings
Override gateway centrally per VM without routing/policy features

Recommendation:

For most cases, go with:

Static routes inside the server (best balance of simplicity and control)

I Can Help:

Change

Board Leaders

NyxZale...

Weekly Sharers

Newbie5...

Weekly Questioners