|
||||||||
|
|
#1
|
|
I have an internet connection on eth0 on computer PC1 and I want to
connect another computer PC2 to eth1 on PC1. PC1 is a Linux box and PC2 is a Windows box. Please help me to bring PC1 & PC2 on the internet. suppose PC1/eth0 is 192.168.1.3 Primary DNS - 203.94.227.70 Sec DNS - 203.94.243.70 how should I configure PC1/eth1 ? and PC2 settings. thanks & regards, Onkar onkar |
|
#2
|
|||
|
|||
|
onkar wrote:
> I have an internet connection on eth0 on computer PC1 and I want to > connect another computer PC2 to eth1 on PC1. PC1 is a Linux box and > PC2 is a Windows box. > > Please help me to bring PC1 & PC2 on the internet. > > suppose PC1/eth0 is 192.168.1.3 > Primary DNS - 203.94.227.70 > Sec DNS - 203.94.243.70 > > how should I configure PC1/eth1 ? > and PC2 settings. > > thanks & regards, > Onkar > PC1/eth1 should have a private IP address outsize your network mask range for PC1/eth0, like IP address: 10.0.0.1 Netmask 255.255.255.0 Then, easiest for PC2, is to run dhcpd on the Linux PC, listening omn eth1 and giving out IP addresses in the range, say, 10.0.0.10 to 10.0.0.100. Specify the router as 10.0.0.1 and the domain-name-servers as the same as the ones in /etc/resolv.conf. Run ipmasq on the Linux PC1 to set up iptables to do the IP network address translation. PC2 can then get its IP address automatically from PC1 through DHCP. If you have a problem, post the Linux distribution that you run on PC1. Robert |
|
#3
|
|||
|
|||
|
On Fri, 10 Aug 2007 09:33:45 -0700, onkar wrote:
> I have an internet connection on eth0 on computer PC1 and I want to > connect another computer PC2 to eth1 on PC1. PC1 is a Linux box and > PC2 is a Windows box. > > Please help me to bring PC1 & PC2 on the internet. > > suppose PC1/eth0 is 192.168.1.3 > Primary DNS - 203.94.227.70 > Sec DNS - 203.94.243.70 > > how should I configure PC1/eth1 ? > and PC2 settings. > > thanks & regards, > Onkar set ms to use linux as gateway. crossover cable - static addresses. |
![]() |
| Tags |
| network, problem, simple |
| Thread Tools | |
| Display Modes | |
|
|