Traversing subnets without a default gateway - TechRepublic
Question
May 28, 2009 at 01:42 PM
barth.travis

Traversing subnets without a default gateway

by barth.travis . Updated 17 years, 1 month ago

Hello,

I don’t know that there is any way to get around my problem, but I figured this is the place to ask.

I have a computer with two NICs on the same subnet: NIC1 is 192.168.1.x and NIC2 is 192.168.1.y. NIC2 does not have a default gateway defined, so all of my day-to-day traffic goes out over NIC1.

I have a small HTTP file server running which people connect to via NIC2 (192.168.1.y). This way my main NIC is never clogged with traffic from those file transfers.

So far so good.

The problem, and an obvious one, is that if someone connects to NIC2 from another subnet, NIC2 can’t respond back to them because it has no default gateway.

Any ideas on how to get around this? In the end, I want all file transfer traffic from that HTTP file server to go out over NIC2, but I would like people from other subnets to be able to reach it.

This discussion is locked

All Comments