On 2 Apr 2000, Adam Johnson wrote:
> Hmm, couldn't you configure a static route in each computer for the other
> subnet, so they all know that both subnets are on the same wire?

  I think a host needs to be configured with an address on a particular subnet
in order to send or receive traffic on it.  Otherwise, it needs a gateway on
its local subnet to forward the traffic.  A static route just tells the kernel
where to send a packet; there still has to be a way for that packet to get
there.

  For example, I've got two hosts on my ethernet LAN.  One is a Windoze
machine with address 192.168.10.5, the other is my Linux machine with
192.168.10.1 for the address.  I can ping either box right now.  But if I do
the following:

# ifconfig eth0 192.168.20.1
# route add -net 192.168.10.1 netmask 255.255.255.0 dev eth0

... then I can no longer pass traffic between the two.

# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:10:5A:20:55:F1  
          inet addr:192.168.20.1  Bcast:192.168.20.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          Interrupt:11 Base address:0xb800 

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
X.X.X.X         *               255.255.255.255 UH    0      0        0 ppp0
192.168.20.0    *               255.255.255.0   U     0      0        0 eth0
192.168.10.0    *               255.255.255.0   U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         X.X.X.X         0.0.0.0         UG    0      0        0 ppp0
# 

-- 
Ben Scott <[EMAIL PROTECTED]>
| "When we try to pick out anything by itself, we find it hitched to |
|  everything else in the universe."  -- John Muir                   |


**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to