Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

simple network Problem

Reply
 
Thread Tools Display Modes
  #1  
Old 08-10-2007, 05:33 PM
Default simple network Problem



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
Reply With Quote
  #2  
Old 08-10-2007, 07:20 PM
Robert Harris
Guest
 
Posts: n/a
Default Re: simple network Problem

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
  #3  
Old 08-10-2007, 07:54 PM
ray
Guest
 
Posts: n/a
Default Re: simple network Problem

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

Tags
network, problem, simple

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
Forum Jump


All times are GMT. The time now is 08:20 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.