Need help according to scenario given:

Client end PCs: 400 + Network :

Server 1 (Linux) : (For Application, Internet not working) GW: Clients: - 254 Server 2 (Linux) : (For Internet users) GW: Clients: - 254

Server 2 is connected to DSL Broadband. Server 1 and Server 2 both are on same physical network i.e. Same switches.

Current issue: i have to deploy a file and print server but this server will be accessed by both (192.168.2.x and 192.168.3.x) one same workgroup. as both subnets are on same switched network.

Limitations: Currently there is no hardware routers and firewall. Need to complete this task with Linux / Windows / AD.

Tested / Worked so far: Configured one PC with two NIC's With the IPS: NIC 1 : GW: Subnet: NIC 2 : GW: Empty Subnet:

Kindly provide any solution what should i do to get sharing enable on both Subnets.

Thank you All

  • Both subnets are on the same switched network i.e. the same broadcast domain? I hope not if you really want to keep them isolated. – gravyface Nov 23 '10 at 16:57
  • Why not just bind dual IP's to both hosts if they are in the same broadcast domain? – SpacemanSpiff Nov 23 '10 at 17:02
  • To be honest, it sounds like you're just digging yourself further into a hole with this brittle network design. You're talking about Active Directory, but yet you mention a workgroup? And all the machines on the same switch (broadcast domain) but different subnet? And no firewall? Yikes. – gravyface Nov 23 '10 at 17:50

What you've done in terms of the dual-NIC PC should work fine except you've set a default gateway on both NICs, any given machine should just have one DG - that's why it's the default. Also have you really set your servers to work on x.x.x.0 static IPs? if so why, I know it can work but that's a reserved address to denote the entire subnet - I'd move them to a 1-254 range right away, it could certainly cause routing problems - if I've misinterpreted your information please just update it.

I do have another question, for server 1 it's DG is the start of your client range (i.e. x.x.x.1), is that right? it sounds odd, is that what you really wanted to do?

  • Dear Chopper you miss judged my issue. I have mentioned x.x.x.x/0 just for an example. my pool is - 254 and - 254 and for your question... Yes default gateways for both the subnet clients is and and thats bcz.. i am assigning IP's linearly to further apply policies on them in small subnets using squid. I.e. to are blocked for internet and so on.... – Anonymous May 11 '10 at 10:21

"Current issue: i have to deploy a file and print server but this server will be accessed by both (192.168.2.x and 192.168.3.x)"

"Limitations: Currently there is no hardware routers and firewall."

A: You need a router...and you should probably use a firewall if you have clients accessing the internet. The Gateway IPs on each subnet (x.x.x.1)...do they actually exist on any device in your network? What you might be able to do is set the gateway IPs on your subnets to the PC with multiple NICs and have it act as the router between subnets, but if you have 400 clients and want to start divvying up the network into subnets, you should probably just get a hardware router...


I would use Vyatta Core located here, it is a free router, it is based on Linux and is easy to install and configure. All you would need is a host with with two nics if your switch supports VLANs and trunks or 3 nics (.2, .3, DSL connection) if not.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy