Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Home network with two pcs
Message
General information
Forum:
Linux
Category:
Networking, Installation and Administration issues
Miscellaneous
Thread ID:
00700198
Message ID:
00705199
Views:
12
>Hey sorry for my lack of knowledge:
>but i got three network cards, one in on the w2k pc, the other two are on the linux-box, if i do static in all 3, 192.168.0.1 goes on card to the cable-modem
>192.168.0.2 goes on the second card to be connected to the w2k machine and in the w2k machine i could go 192.168.0.3.
>Now the gateway would be the card going to the cable modem, is this right?
>
>But I tried static , non-static (DCHP), combination of both and still cannot connect these two machines. Is there some kind of standard architecture to accomplish what i am trying to do.
>Thanks for the reply,

First, we are all ignorant... some of onething, some of another. (Will Rogers)

It would be interesting to know what distro you are using. The latest releases of RH, SuSE and Mandrake do this stuff automatically.

But, it seems you are making the connections manually. First thing you have to be sure of is that the Linux box(the one with the two NICs) has IP_FORWARD set to 1.
as root
echo "1" > /proc/sys/net/ipv4/ip_forward
Then make sure the HOST and NETWORK files know about the other two NIC addresses. The /etc/resolv.conf file should be set with the DNS ip addresses automatically by the DHCPD after you assign the NIC connected to the modem as a DHCPD connection.
See http://www.neilgunton.com/network_howto/part1 (the old standby: http://www.tldp.org/HOWTO/Net-HOWTO is a little dated) for more details.
Don't forget to setup IP Masquerading and firewalling. The old method used ip_chains, more recent ones use ip_tables.
jlk
Nebraska Dept of Revenue
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform