[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Routing table question



On Wed, Jul 28, 1999 at 05:50:03PM -0400, Arcady Genkin wrote:
> Hi all:
> 
> I'm reading "TCP/IP Administration" by O'Reily, and have a question on 
> the routing table on my Debian box. It's quite simple:
> 
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
> 209.226.71.0    0.0.0.0         255.255.255.0   U         0 0          0 eth1
> 192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
> 0.0.0.0         209.226.71.1    0.0.0.0         UG        0 0          0 eth1
> 
> I have 2 nics in my computer. eth0 is connected to
> another computer (local net), and has IP 192.168.1.2, and another one
> is connected to the internet with DHCP.
> 
> My question is: why is the local network bound to default gateway?
> Shouldn't 192.168.1.0 be bound to 192.168.1.2?

The default is for addresses whose routes are not specified by the
routing table.  Packets destined for any computer with an IP in the
192.168.1.0 network will be sent out eth0.  Everything else will go
out the (default) eth1.


> I suspect that I misunderstand something, since the computers are able 
> to comunicate.
> 
> Any input highly appreciated,

Hope this made some sense.

-- 
David H. Silber  --   http://www.orbits.com/~dhs/   --   dhs@orbits.com

  For custom software, see:                http://www.SilberSoft.com/
  Palm OS / Linux Documentation:          http://www.orbits.com/Palm/  


Reply to: