Networking Forums

Networking Forums > Computer Networking > Linux Networking > Re: 2 nics; 1 pc; 2 networks

Reply
Thread Tools Display Modes

Re: 2 nics; 1 pc; 2 networks

 
 
Bit Twister
Guest
Posts: n/a

 
      06-30-2009, 03:14 PM
On Tue, 30 Jun 2009 07:33:46 -0700 (PDT), nestwasright wrote:
> Here's what I'm trying to get done. I need two networks; local and
> internet. I have 2 nics installed on all machines. Each nic has an
> RJ45 runining from it to the local router that does not go online and
> the other router that goes online. I'm using the LAN ports on the
> local router. I can't go online with this setup, however. I first have
> to disconnect the local cable before I could go online. The local
> router is to serve files locally and seen by all machines with dual
> nics and connected to it; the local router. Ideas? Is this possible?


Should be easy enough. Configure ethx for static ip address.
Give every PC a Fully Qualified Domain Name.
If you do not have registered Domain Name I recommend .test and/or .invalid.

You configure Internet router with LAN Ip address 192.168.1.1
Configure PC eth1 Ip address 192.168.1.x, gateway 192.168.1.1

Configure the LAN Router for 192.168.20.1
Configure LAN Server as 192.168.20.2

You configure each PC eth0 with an ip address like 192.168.20.x, no gateway.

You then create a /etc/hosts with everybody's ip address, copy to each PC.
You reboot all PCs.

Here x.x.13x is a single PC which I multi-boot into one of 3 different
releases or XP Home.

Example: /etc/hosts file:
127.0.0.1 localhost.localdomain localhost
192.168.1.1 gateway.home.test cm
192.168.1.130 wm80.home.test wm80
192.168.1.131 wm81.home.test wm81
192.168.1.132 wcooker.home.test wcooker
192.168.1.139 wxp.home.test wxp
192.168.3.1 lrouter.lan.invalid lrouter
192.168.3.102 server.lan.invalid server

 
Reply With Quote
 
 
 
 
Bill Marcum
Guest
Posts: n/a

 
      06-30-2009, 08:27 PM
On 2009-06-30, nestwasright <(E-Mail Removed)> wrote:
>
>
> On Jun 30, 9:14Â*am, Bit Twister <BitTwis...@mouse-potato.com> wrote:
>> On Tue, 30 Jun 2009 07:33:46 -0700 (PDT), nestwasright wrote:
>> > Here's what I'm trying to get done. I need two networks; local and
>> > internet. I have 2 nics installed on all machines. Each nic has an
>> > RJ45 runining from it to the local router that does not go online and
>> > the other router that goes online. I'm using the LAN ports on the
>> > local router. I can't go online with this setup, however. I first have
>> > to disconnect the local cable before I could go online. The local
>> > router is to serve files locally and seen by all machines with dual
>> > nics and connected to it; the local router. Ideas? Is this possible?

>>
>> Should be easy enough. Configure ethx for static ip address.
>> Give every PC Â*a Fully Qualified Domain Name.
>> If you do not have registered Domain Name I recommend .test and/or .invalid.
>>
>> You configure Internet router with LAN Ip address 192.168.1.1
>> Configure PC eth1 Ip address 192.168.1.x, gateway 192.168.1.1
>>
>> Configure the LAN Router for 192.168.20.1
>> Configure LAN Server as 192.168.20.2
>>
>> You configure each PC eth0 with an ip address like 192.168.20.x, no gateway.
>>
>> You then create a /etc/hosts with everybody's ip address, copy to each PC.
>> You reboot all PCs.
>>
>> Here x.x.13x is a single PC which I multi-boot into one of 3 different
>> releases or XP Home.
>>
>> Example: /etc/hosts file:
>> 127.0.0.1 Â* Â* Â* Â* Â* Â* Â* localhost.localdomain localhost
>> 192.168.1.1 Â* Â* Â* Â* Â* Â* gateway.home.test cm
>> 192.168.1.130 Â* Â* Â* Â* Â* wm80.home.test wm80
>> 192.168.1.131 Â* Â* Â* Â* Â* wm81.home.test wm81
>> 192.168.1.132 Â* Â* Â* Â* Â* wcooker.home.test wcooker
>> 192.168.1.139 Â* Â* Â* Â* Â* wxp.home.test wxp
>> 192.168.3.1 Â* Â* Â* Â* Â* Â* lrouter.lan.invalid lrouter
>> 192.168.3.102 Â* Â* Â* Â* Â* server.lan.invalid server

>
> I'm curious; there's one machine that's XP in the network, how should
> that be configured?


XP can have a hosts file too. I forget exactly where it's located, maybe
in \windows\system32.

 
Reply With Quote
 
Allodoxaphobia
Guest
Posts: n/a

 
      07-01-2009, 02:52 AM
On Tue, 30 Jun 2009 13:45:14 -0700 (PDT), nestwasright wrote:
> On Jun 30, 2:42?pm, Wing <lost95...@yahoo.com> wrote:
>> On 6/30/2009 1:27 PM, Bill Marcum wrote:
>> > On 2009-06-30, nestwasright <nestami...@gmail.com> wrote:
>> >> On Jun 30, 9:14 am, Bit Twister <BitTwis...@mouse-potato.com> wrote:
>> >>> On Tue, 30 Jun 2009 07:33:46 -0700 (PDT), nestwasright wrote:
>> >>>> Here's what I'm trying to get done. I need two networks; local and
>> >>>> internet. I have 2 nics installed on all machines. Each nic has an
>> >>>> RJ45 runining from it to the local router that does not go online and
>> >>>> the other router that goes online. I'm using the LAN ports on the
>> >>>> local router. I can't go online with this setup, however. I first have
>> >>>> to disconnect the local cable before I could go online. The local
>> >>>> router is to serve files locally and seen by all machines with dual
>> >>>> nics and connected to it; the local router. Ideas? Is this possible?
>> >>> Should be easy enough. Configure ethx for static ip address.
>> >>> Give every PC ?a Fully Qualified Domain Name.
>> >>> If you do not have registered Domain Name I recommend .test and/or .invalid.

>>
>> >>> You configure Internet router with LAN Ip address 192.168.1.1
>> >>> Configure PC eth1 Ip address 192.168.1.x, gateway 192.168.1.1

>>
>> >>> Configure the LAN Router for 192.168.20.1
>> >>> Configure LAN Server as 192.168.20.2

>>
>> >>> You configure each PC eth0 with an ip address like 192.168.20.x, no gateway.

>>
>> >>> You then create a /etc/hosts with everybody's ip address, copy to each PC.
>> >>> You reboot all PCs.

>>
>> >>> Here x.x.13x is a single PC which I multi-boot into one of 3 different
>> >>> releases or XP Home.

>>
>> >>> Example: /etc/hosts file:
>> >>> 127.0.0.1 ? ? ? ? ? ? ? localhost.localdomain localhost
>> >>> 192.168.1.1 ? ? ? ? ? ? gateway.home.test cm
>> >>> 192.168.1.130 ? ? ? ? ? wm80.home.test wm80
>> >>> 192.168.1.131 ? ? ? ? ? wm81.home.test wm81
>> >>> 192.168.1.132 ? ? ? ? ? wcooker.home.test wcooker
>> >>> 192.168.1.139 ? ? ? ? ? wxp.home.test wxp
>> >>> 192.168.3.1 ? ? ? ? ? ? lrouter.lan.invalid lrouter
>> >>> 192.168.3.102 ? ? ? ? ? server.lan.invalid server
>> >> I'm curious; there's one machine that's XP in the network, how should
>> >> that be configured?

>>
>> > XP can have a hosts file too. I forget exactly where it's located, maybe
>> > in \windows\system32.

>>
>> For WinXP, it is in
>> \Windows\system32\drivers\etc\- Hide quoted text -
>>
>> - Show quoted text -

>
> I presume that notepad will open and edit the hostfile...anyone here
> know the name of the file...there are a lots of files in this
> directory. Thanks!


Well, dooh, \Windows\system32\drivers\etc\hosts
 
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
Re: 2 nics; 1 pc; 2 networks terryc Linux Networking 5 07-03-2009 12:36 AM
Re: 2 nics; 1 pc; 2 networks Bill Marcum Linux Networking 0 06-30-2009 09:01 PM
2 NICs 2 Networks 1 Computer Omega_Red Windows Networking 3 12-01-2006 04:24 PM
3 NICS, 3 NETWORKS, 2 SERVERS. taylor.gaffney@gmail.com Windows Networking 15 09-18-2006 04:46 AM
Dual Nics on different networks? Michael Giorgio - MS MVP Windows Networking 11 09-10-2004 03:35 PM



1 2 3 4 5 6 7 8 9 10 11