[LBo] Viewing PC on separate sub-net...
Douglas Orchard
duglas at twcny.rr.com
Mon Aug 27 22:45:07 CEST 2007
> I'm having a problem accessing a PC on a separate sub-net on my home
> network. Here's how it's setup:
>
> Modem (192.168.1.1)
> |
> |
> Router (192.168.2.1) --> House PC (192.168.2.100)
> |
> |
> Linux Box in Radio Room (192.168.2.101, Gateway NIC 192.168.3.1)
> |
> |
> Windows PC in Radio Room (192.168.3.100)
>
>
Here's how I would set it up:
Start with a switch or hub ---- and plug everything into it (except the modem).
The router has 2 nics, 1 plugs into the switch, the other plugs into the
modem.
If the router is a commercial router like my Linksys it will have a port
labeled "Internet", thats the one for the modem, it may even have 4 (or
more) ports labeled "LAN", thats your switch.
Modem
|
|
(IP add from ISP) Router (192.168.1.1)
|
|
House PC---------Switch------Linux PC in Radio room
192.168.1.2 | 192.168.1.3
|
|
Win PC in Radio room
192.168.1.4
The 3 PCs use the router as the gateway to the internet.
Now the 3 PCs and the router will "talk to each other". The software that you use is up
to you.
I always start my testing by pinging the PCs and the routers internal
IP. If that works and the router is set up, try pinging an external
address (69.147.114.210), if that works try a domain name
(www.yahoo.com) to test your DNS.
Internal communication can be NFS or Samba, (thats what I use).
Here is an alternative diagram using a very long cable for 1 leg.
Modem
|
|
Router
|
|
Switch-------PC
|
|
(very long cable)
|
|
PC-----2nd Switch----PC
|
|
PC
All the PCs and the router are on the same subnet.
One "very long cable" is cheaper than 2 and probably runs from downstairs
to upstairs, or wherever you want.
Subnetting is usually only used to hide the Payroll subnet from the
Shopfloor subnet, or just to reduce traffic through a bottleneck.
Happy pinging.
--
Douglas Orchard
Registered Linux User
# 206698
More information about the QnA
mailing list