• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

weird linux networking

gimlids

Member
i've ended up with two nic's for one comp, so i want to know if i can use them in a linux box instead of buying a switch:

i'll have a homepna router (linksys hpro200 or so) with one lan port. can i plug one of the nics on the linux box into there, and plug another computer into the second nic, and set the linux box to act as a sort of pass-through or switch? i want the computer connected to the linux box to have a different ip from the linux box so that machines on the other side of the router (the homepna section, not wan) can see the two seperately.
 
[EDIT[

Oops didnt' read your post well enough.

Yeah you could get that working (it's called masquerading) pretty easily, but I couldnt tell you exactly.

zs
 
Check out SmoothWall. I use it and it works really well IMHO.

It may not do what you want after all. Are you looking for a firewall-type machine or just a way to connect the computers?
 
I want it to be *as if* they were simply plugged into the same switch, on the network *individually* (unique ips).
 
Ah. I'm not sure if NAT or IP masquarading will do that. What you want is closer to an IP bridge. I've never done that in linux - in FreeBSD the command is 'ipfw' with an option for bridging but I don't think linux uses the same command.
 
A linux machine can do this. It sounds to me like you just want a machine to do firewalling (even if you dont want any real firewall rules in there). The machine behind it will have its own unique ip and so will the firewall machine. It will basically forward packets correct? If so, its possible. Look at iptables docs because I have no clue on how to do stuff like that in linux. (could be as simple as turning on ip forwarding 😛)
 
(could be as simple as turning on ip forwarding 😛 )

Other than the fact that each NIC has to be on it's own network because you can't forward between the same network, it should be as easy as "echo 1 > /proc/sys/net/ipv4/ip_forward" to enable IP forwarding. I think ipchains or iptables would only be necessar if he wanted to add rules.
 
didnt you ask this in Networking, and someone answered it very thoroughly? .. if you didnt, someone asked the exact same question, and someone answered step-by-step what to do, do a search ..
-neural
 
Yea, I asked in networking, but there was further discussion as to whether the solution was what I relly wanted to do.
 
Back
Top