Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

2 NICs & 2 computers

Reply
 
Thread Tools Display Modes
  #1  
Old 08-10-2007, 05:21 PM
Default 2 NICs & 2 computers



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, 10:34 PM
ERACC
Guest
 
Posts: n/a
Default Re: 2 NICs & 2 computers

On Fri, 10 Aug 2007 09:21:57 -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


Configure PC1/eth1 as 192.168.2.1 also set up iptables for ip forwarding
(no I will not *tell* you how to do this, STW). PC2 then gets an address
in the range from 192.168.2.2-254 and sets 192.168.2.1 as the gateway.
You might also need to put in DNS hosts for PC2. You could also make PC1
a DHCP authoritative host and just pull an address and DNS from it with
PC2 but that is way overkill for just 2 systems IMO.

This is basic networking stuff. Perhaps you should "Get Rute". See
my .sig for a link to where you can buy the hard copy. The digital
version can be had from <http://rute.2038bug.com/index.html.gz>.

Gene (e-mail: gene \a\t eracc \d\o\t com)
--
Mandriva Linux release 2007.1 (Official) for i586
Got Rute? http://www.anrdoezrs.net/email-25465...sbn=0130333514
ERA Computers & Consulting - http://www.eracc.com/ <- get VOIP here!
eComStation, Linux, FreeBSD, OpenServer & UnixWare preloads & sales
Reply With Quote
Reply

Tags
computers, nics

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:55 AM.


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