Date: Fri, 25 May 2001 08:51:43 +0200 From: "paffio" <ocnlba@tin.it> To: "Nick Rogness" <nick@rogness.net> Cc: <freebsd-questions@FreeBSD.org> Subject: Re: problems with a gateway Message-ID: <005001c0e4e7$56ee9af0$2b000b3e@nuovo> References: <Pine.BSF.4.21.0105231404400.98953-100000@cody.jharris.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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" <nick@rogness.net> To: "paffio" <ocnlba@tin.it> Cc: <freebsd-questions@FreeBSD.ORG> 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 <nick@rogness.net> > - 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?005001c0e4e7$56ee9af0$2b000b3e>