From owner-freebsd-questions Wed May 23 10:54:49 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id 6C83837B422 for ; Wed, 23 May 2001 10:54:44 -0700 (PDT) (envelope-from nick@rogness.net) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id f4NJ9sa99974; Wed, 23 May 2001 14:09:56 -0500 (CDT) (envelope-from nick@rogness.net) Date: Wed, 23 May 2001 14:09:54 -0500 (CDT) From: Nick Rogness X-Sender: nick@cody.jharris.com To: paffio Cc: freebsd-questions@FreeBSD.ORG Subject: Re: problems with a gateway In-Reply-To: <000c01c0e3ae$b9cd0650$65010b3e@nuovo> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 23 May 2001, paffio wrote: > > I've a lan with some hosts. I want that all the packets going from the > host A to the host B don't go directly to it but through the host G. Are A,B,and G all on the same logical network. WHat are their IP addresses and netmasks? > > I did it, but I've a problem with my configuration, it works only a > time. What happens when you ping it (not traceroute)? DO you get an ICMP redirect? > > I did this (A,B,G are the IP addresses): > > host A : > > route add B G > > host B : > > gateway_enable="YES" (/etc/rc.conf) > > > Now, if I execute "traceroute B" on the host A, it works, that's the > resulting route is A-G-B. > > On the contrary the second time it is: A-B. > > I executed also "netstat -r", the first time there is the right entry > > > destination gateway ...... > B G ...... > > > > the second time it is so splitted: > > > > destination gateway ...... > B B_ethernet_address ...... > G G_ethernet_address ... > > > > Can I avoid this splitting ? Are B and A on the same IP network? Nick Rogness - Keep on Routing in a Free World... "FreeBSD: The Power to Serve!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message