Networking Forums

Networking Forums > Computer Networking > Linux Networking > 2 NICs & 2 computers

Reply
Thread Tools Display Modes

2 NICs & 2 computers

 
 
onkar
Guest
Posts: n/a

 
      08-10-2007, 04:21 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
 
 
 
 
ERACC
Guest
Posts: n/a

 
      08-10-2007, 09:34 PM
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

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
What do I have to do to the Win98 computers to make sharing possible with XP computers **Developer** Windows Networking 4 08-17-2005 10:45 PM
2 nics 2 IPs 1 lan Tony Windows Networking 3 09-24-2004 02:01 AM
2 nics Hernan s Windows Networking 1 03-02-2004 01:09 PM
2 nics Hernan s Windows Networking 0 03-02-2004 12:30 PM
Dsl -> switch -> 3 computers & wireless router -> laptop -- problems seeing all 4 computers in "Network Neighborhood" Kraw Wireless Internet 0 06-26-2003 11:18 PM



1 2 3 4 5 6 7 8 9 10 11