From owner-freebsd-net Mon Jul 19 12:13:10 1999 Delivered-To: freebsd-net@freebsd.org Received: from xylan.com (postal.xylan.com [208.8.0.248]) by hub.freebsd.org (Postfix) with ESMTP id 0FCCB14DBC; Mon, 19 Jul 1999 12:13:05 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from mailhub.xylan.com by xylan.com (8.8.7/SMI-SVR4 (xylan-mgw 2.2 [OUT])) id MAA09158; Mon, 19 Jul 1999 12:11:09 -0700 (PDT) Received: from omni.xylan.com by mailhub.xylan.com (SMI-8.6/SMI-SVR4 (mailhub 2.1 [HUB])) id MAA25244; Mon, 19 Jul 1999 12:10:57 -0700 Received: from softweyr.com (dyn2.utah.xylan.com) by omni.xylan.com (4.1/SMI-4.1 (xylan engr [SPOOL])) id AA20769; Mon, 19 Jul 99 12:11:02 PDT Message-Id: <37937846.55C1867E@softweyr.com> Date: Mon, 19 Jul 1999 13:11:02 -0600 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.1-RELEASE i386) X-Accept-Language: en Mime-Version: 1.0 To: Wim Livens Cc: freebsd-hackers@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Subject: Re: bug in ip_forward() ? References: <19990719172546.C1676@rc.bel.alcatel.be> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Wim Livens wrote: > > I suspect a bug in IP forwarding. I'm using FreeBSD 2.2.8-RELEASE. > > This is our network: > > +------+ +------+ +------+ +------+ > | |4.2 4.1| |2.1 2.2| |5.1 5.2| | > |btm22t|---------|btm22q|---------|btm22r|---------|btm22u| > | | | | | | | | > +------+ +------+ +------+ +------+ > > And this is what I do: > > btm22t# ping 192.168.5.2 > ok, it works... > btm22q# route delete -net 192.168.5.0 -netmask 255.255.255.252 192.168.2.2 > ok, ping stops. > btm22q# route add -net 192.168.5.0 -netmask 255.255.255.252 192.168.2.2 > ping doesn't work And it shouldn't, you haven't given it an appropriate route. From route(8): The other commands have the following syntax: route [-n] command [-net | -host] destination gateway where destination is the destination host or network, gateway is the next-hop intermediary via which packets should be routed. There's the important part right there: gateway is the *next-hop* intermediary via which packets should be routed. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://softweyr.com/ wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message