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

Re: Network routing



On Mon, May 25, 1998 at 09:08:44PM +0200, Martin Str|mberg wrote:
> Hello.
> 
> I'm running Debian 1.something. I've some trouble with my network
> setup.
> 
> First a picture on my network:
> 
> -----------------  eth0  -----------------   eth1  -----------------
> I  192.168.1.2  I <----> I  192.168.0.1  I  <----> I  192.168.0.2  I
> -----------------        I  192.168.1.1  I         -----------------
>                          -----------------
> 
> Now on 192.168.1.2 I run "/usr/sbin/traceroute 192.168.0.2":
> traceroute to 192.168.0.2 (192.168.0.2), 30 hops max, 40 byte packets
>  1  * * *
>  2  * * *
>  3  * * *
> [The other 27 are just the same.]
> 
> On 192.168.1.2 "/sbin/route -n" reports:
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref Use Iface
> 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0     3 eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U     0      0     2 lo
> 0.0.0.0         192.168.1.1     0.0.0.0         UG    1      0   872 eth0
> 
> On 192.168.0.1/192.168.1.1 "/sbin/route -n" reports:
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref Use Iface
> 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0     4 eth0
> 192.168.0.0     0.0.0.0         255.255.255.0   U     0      0     0 eth1
> 127.0.0.0       0.0.0.0         255.0.0.0       U     0      0     6 lo
This is strange, because up to now, everything is ok, and traceroute should
at least proceed from 1.2 to 1.1

- what does ping 192.168.1.1 give when issued on 192.168.1.2 ?
- Are you sure, IP-Forwarding is enabled on 192.168.1.1 ? You need to
  compile a custom kernel for this, the debian ones don't have it enabled.
- The routes on 192.168.0.2 need to be

  ifconfig eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255
  route add -net 192.168.0.0
  route add default gw 192.168.0.1

- what does ping 192.168.0.1 give when issued on 192.168.0.2 ?

Nils

--
*-----------------------------------------------------------------------------*
| Quotes from the net:  L> Linus Torvalds, W> Winfried Truemper               |
| L>this is the special easter release of linux, more mundanely called 1.3.84 |
| W>Umh, oh. What do you mean by "special easter release"?. Will it quit      |
* W>working today and rise on easter?                                         *

Attachment: pgpwZ4jtEylNg.pgp
Description: PGP signature


Reply to: