On Wed, 21 Apr 2004 16:10:25 -0400, H. S. <(E-Mail Removed)> wrote:
>
> I am connected to the internet from my machine, hostname HomeRouter,
> through DSL modem, ppp0. I am doing masquarading and nat. HomeRouter has
> two NICs: eth0 takes in the connection from ppp0, and eth1 is connected
> to a switch. My internal home machine, hostname Home1, has it's eth0
> connected to the switch. Pictorially, it is like this:
>
>
> ----------- -------
> |HomeRouter| |Home1|
> ~~>pp0---->eth0,eth1---->Switch--------eth0
> |__________| | |_____|
> |
> |__eth0(Home2)
>
>
> The HomeRouter has (the following is from my /etc/network/interfaces file):
> auto eth0
> iface eth0 inet static
> address 192.168.1.0
> netmask 255.255.255.0
> network 192.168.0.0
> broadcast 192.168.0.25
The above settings appear to be incorrect (unless it is for pppoe, in
which case the eth0 IP is not used). I actually set ethernet to adsl
modem to netmask 255.255.255.255, network and broadcast same as IP, so
nothing would route out of it if it wanted to (pppoe handles the tcp/ip
traffic on that line). If it actually connects to a hardware
gateway/router or modem/router, its IP (address) should likely end with
something other than 0 or 255 for netmask 255.255.255.0 and network would
be 192.168.1.0, broadcast 192.168.1.255.
> ... and ....
> auto eth1
> iface eth1 inet static
> address 192.168.0.2
> netmask 255.255.255.0
> network 192.168.0.0
> broadcast 192.168.0.255
Appears correct.
> My internal machine, Home1, is running Win98, and has been given:
> IP: 192.168.0.10
> netmask: 255.255.255.0
> broadcast: 192.168.0.255
> gateway: 192.168.0.2
> and nameserves as given by my IP.
>
>
>
> The above configuration works fine. So, now I want to add a computer to
> my internal network, naming it Home2. So all I have to do is connect
> eth0 of Home2 to the switch and give the new computer 192.168.0.11 as
> its IP. THis should work, right? I just want to make sure this is
> supposed to work. The new computer doesn't, and if I am sure my
> networking is okay, I can then focus on the hardware.
If you used IP 192.168.0.11 for Home2 with same network, broadcast,
gateway and nameservers as Home1, it should work. Make sure it does not
have any other lingering gateways from past use, and if Windows is set to
NEVER dial a connection (or that it is on a LAN).
Note that if Home2 is Win98se, it originally had a problem where MSIE
failed to realize when it was connected to an existing network. In that
case if it asks if you want to work offline, just click "Try again" (until
you have a chance to do all Win updates, including MSIE version).
--
David Efflandt - All spam ignored
http://www.de-srv.com/