Configuring Separate Internet Gateways for VMs on Two Bridges Using a Single Physical Interface

flatcast

New Member
Oct 10, 2023
2
1
3
Hello everyone. I have a somewhat unconventional task and could use some help as networking isn't my forte:

There are two networks, each with public IP addresses:

Subnet Address: 52.102.119.228/28
Default Gateway: 52.102.119.229
and

Subnet Address: 11.286.202.192/28
Default Gateway: 11.286.202.193
I have a VDS server with a single physical interface, eth0, on which several VMs are running, connected via two bridges. The goal is for VMs on one bridge to access the internet through 52.102.119.229, and VMs on the other bridge through 11.286.202.193. Is it possible to implement such a configuration using only a single physical interface?

Any input or advice would be greatly appreciated. Thank you in advance!
 
Thanks a lot. It hadn’t occurred to me that both networks could coexist efficiently on a single bridge without VLANs, and I appreciate the simplicity and elegance of this approach. I'll be giving this a try soon. Your input has provided a clear path forward.
 
  • Like
Reactions: gurubert