Subject: Re: Routing problem
To: Jaap Boender <jaapb@kerguelen.org>
From: village idiot <village_ldi0t@yahoo.com>
List: netbsd-help
Date: 04/29/2002 09:40:37
Jaap,

I think you also have a too strict netmask. If your
router can ping both network, and everything else
seems to work, my guess is on the netmask. 

Try 255.255.0.0

Do a "route show" on the affected machines. End nodes
and router, and see which links they send out on.

Please keep in mind I am not sure, seeing how I have
never configed a router.



--- Jaap Boender <jaapb@kerguelen.org> wrote:
> Hi all,
> 
> This might, of course, just be something silly, but
> I've looked hard at it and
> I can't even locate the problem, let alone find a
> solution to it.
> 
> The situation: I have two networks, one UTP
> (172.16.0/24) and one BNC
> (172.16.1/24) with a gateway between them (gallieni,
> whose two NICs are
> 172.16.0.3 and 172.16.1.1). All machines in the
> 172.16.0 network (including
> gallieni) have courbet (172.16.0.2) as their
> defaultroute; on courbet I set up
> a static route with 'route add -net 172.16.1
> 172.16.0.3'.
> 
> However, when I try to ping 172.16.1.1 from courbet,
> I get the error:
> 'ping: sendto: No route to host', and I can't figure
> out why. All the relevant
> things seem to be all right:
> 
> - pinging 172.16.0.3 from 172.16.0 works;
> - pinging 172.16.1.1 from 172.16.1 works;
> - netstat -r | grep 172 gives:
> 172.16/24          link#3             UC          4 
>       0   1500  ne0
> 172.16.0.255       link#3             UHLc        3 
>      55   1500  ne0
> 172.16.1/24        gallieni           UGS         0 
>       1   1500  ne0
> (ne0 is the correct network card, with IP 172.16.0.2
> and netmask 255.255.255.0)
> - route -n get 172.16.1.1 gives:
>    route to: 172.16.1.1
> destination: 172.16.1.0
>        mask: 255.255.255.0
>     gateway: 172.16.0.3
>  local addr: 172.16.0.2
>   interface: ne0
>       flags: <UP,GATEWAY,DONE,STATIC>
>  recvpipe  sendpipe  ssthresh  rtt,msec    rttvar 
> hopcount      mtu     expire
>        0         0         0         0         0    
>     0      1500         0 
> 
> So, I'm stumped. Perhaps the gateway is broken? But
> when I asked a guru, he said
> that the problem was that traffic to 172.16.1 was
> not routed right on courbet
> (an Alpha with NetBSD); besides, the gateway is an
> i386 running FreeBSD and
> I did set gateway_enable="YES" in /etc/rc.conf,
> which is all it should take...
> 
> Any help would be greatly appreciated.
> 
>   Jaap Boender
> -- 
> Un jour de canicule sur un véhicule où je circule,
> gesticule un funambule au
> bulbe minuscule, à la mandibule en virgule et au
> capitule ridicule.
>   -- Raymond Queneau, Exercices de style


__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com