From owner-freebsd-questions Thu May 24 23:50:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.tiscalinet.it (mail-6.tiscalinet.it [195.130.225.152]) by hub.freebsd.org (Postfix) with ESMTP id 8964B37B422 for ; Thu, 24 May 2001 23:50:06 -0700 (PDT) (envelope-from ocnlba@tin.it) Received: from nuovo (62.11.0.43) by mail.tiscalinet.it (5.5.025) id 3AB8933800E7B2A4; Fri, 25 May 2001 08:49:55 +0200 Message-ID: <005001c0e4e7$56ee9af0$2b000b3e@nuovo> From: "paffio" To: "Nick Rogness" Cc: References: Subject: Re: problems with a gateway Date: Fri, 25 May 2001 08:51:43 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-Mimeole: Produced By Microsoft MimeOLE V5.00.2919.6700 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 A 142.114.10.210 B 142.114.10.8 G 142.114.10.215 netmask (A,B,G): 0xFFFF0000 they are all on the same logical network. on A(142.114.10.210): ping -c 1 142.114.10.8 output: PING 142.114.10.8 (142.114.10.8): 56 data bytes 36 bytes from 142.114.10.215: Redirect Host (New addr:142.114.10.8) Vr HL Tos Len ID Flg off TTL Pro cks src dst 4 5 00 5414 0111 0 000 fl 01 a1d9 142.114.10.210 142.114.10.8 64 bytes from 142.114.10.8: icmp_seq=0 ....... but if now I do another ping it doesn't go through the host G paffio ----- Original Message ----- From: "Nick Rogness" To: "paffio" Cc: Sent: Wednesday, May 23, 2001 9:09 PM Subject: Re: problems with a gateway > 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