Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2001 14:09:54 -0500 (CDT)
From:      Nick Rogness <nick@rogness.net>
To:        paffio <ocnlba@tin.it>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: problems with a gateway
Message-ID:  <Pine.BSF.4.21.0105231404400.98953-100000@cody.jharris.com>
In-Reply-To: <000c01c0e3ae$b9cd0650$65010b3e@nuovo>

next in thread | previous in thread | raw e-mail | index | archive | help
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?Pine.BSF.4.21.0105231404400.98953-100000>