Networking Forums

Networking Forums > Computer Networking > Linux Networking > simple network Problem

Reply
Thread Tools Display Modes

simple network Problem

 
 
onkar
Guest
Posts: n/a

 
      08-10-2007, 04:33 PM
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

 
Reply With Quote
 
 
 
 
Robert Harris
Guest
Posts: n/a

 
      08-10-2007, 06:20 PM
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
 
Reply With Quote
 
ray
Guest
Posts: n/a

 
      08-10-2007, 06:54 PM
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Another newbie ... probably a simple problem...! Lost.Joey@gmail.com Wireless Internet 3 12-27-2005 05:11 PM
Simple Home Network (not so simple) Patrick White Home Networking 4 07-30-2005 10:48 PM
problem with simple network using wireless Des Home Networking 14 05-02-2005 10:58 PM
a simple DNS problem???? Jared Linux Networking 1 09-14-2004 08:22 PM
simple routing problem Martin Baumann Linux Networking 4 06-25-2003 02:59 PM



1 2 3 4 5 6 7 8 9 10 11