Question

Locked

Traversing subnets without a default gateway

By barth.travis ·
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 conversation is currently closed to new comments.

8 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

to me

by shasca In reply to Traversing subnets withou ...

It doesn't seem possible, but I won't say that for sure until I see others remarks.
Because.....
"I don't know what I don't know".

Collapse -

If this is a Windows machine...

by tmalo627 In reply to Traversing subnets withou ...

you can enable routing and remote access and configure NIC 2 to route its outgoing traffic through NIC 1.

Collapse -

Trying to avoid just that.

by barth.travis In reply to If this is a Windows mach ...

I can see how that would work, but I want none of NIC2's traffic to go over NIC1. I wan't the file transfers on NIC2 to have no impact on NIC1, which is how it works now, but only for the local subnet.

Collapse -

you can't get there from here

by jdclyde In reply to Traversing subnets withou ...

Why do you think the answer would be any different than it was a few weeks ago?

http://techrepublic.com.com/5208-6230-0.html?forumID=101&threadID=309153

You want to route this, buy a router or make a router out of a linux box.

Windows is not a router.

Collapse -

Not the same question.

by barth.travis In reply to you can't get there from ...

That setup is working just fine now. People connect to NIC2 on port 80 and are able to download files. All of that traffic goes over NIC2.

IF they are on the same subnet.

*This* question is about getting it to work if they are connection from a different subnet. I don't expect to find an answer, but I don't give up without at least asking. As someone else already said, "I don't know what I don't know." Never hurts to ask!

Thanks for the reply.

EDIT: There is already a router in the mix. That's how people from the other subnet are getting to this machine in the first place. However, NIC2 can't connect back to them because of it' s lack of a default gateway. I can see the packets being forwarded through the router to this machine, they just never come back.

Collapse -

Simple

by scott_heath In reply to Traversing subnets withou ...

Add a gateway. It's just that easy. If you want your personal traffic to go out NIC1 make the default route on your system go to NIC1.

Traffic that comes in NIC2 shouldn't jump to NIC1 any more than it would if you had an IP address from another subnet.

Regards,
Scott

http://scottisageek.spaces.live.com

Collapse -

Dual-homing?

by barth.travis In reply to Simple

Hi Scott,

I like this answer, but I've always thought that having two NICs with default gateways on the same subnet caused problems...? I understand that traffic that contacts NIC2 will be returned over NIC2, but how is traffic generated on the local machine handled in regards to which NIC it uses on the way out? If that's the default route you are referring to defining, I just don't know how to do it. It sounds ideal though!

Back to Networks Forum
8 total posts (Page 1 of 1)  

Related Discussions

Related Forums