Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Feb 2001 10:40:47 -0600 (CST)
From:      Nick Rogness <nick@rogness.net>
To:        Placi Flury <flury@tik.ee.ethz.ch>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: static routing (Freebsd 4.2)
Message-ID:  <Pine.BSF.4.21.0102091034260.55998-100000@cody.jharris.com>
In-Reply-To: <Pine.GSO.4.21.0102090925480.5619-100000@kom25>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 9 Feb 2001, Placi Flury wrote:

> 
> Hello,

	hello.
> 
> I'm trying to set up static routes within a subnet (for some tests). The
> net-topology looks like:
> 
> 	HA2<------>RA<------->RB<----..
> 		    \        /	
> 		     \      /	
> 	              ->RC<-
> 			 |
>                          |(Interface xl2)
> 			
> where RA, RB and RC are the routers. I started to define my routing
> table with 'route'. On router RC this looks like:
> 
> Destination    Gateway           Flags  Refs  Use  Netif Expire
> localhost     localhost           UH     0    0    lo0     	
>  RB_RC      0:50:da:47:43:67     UHLS    1    0    xl1
>  HA2	        RB_RC		 UGHS	 0    0    xl2
>    .... 	
> 
> The queer (and wrong) think hapens when I define that the route to 'HA2'
> has to use the gateway RB_RC (which is the interface of router RB to
> router RC), since packets with destination HA2 are sent to interface xl2, 
> which points somewhere in Nirwana. 
> 

	Why is the route for H2 already pointing out xl2 ?  WHat is your
	IP addressing scheme?

> To my questions: how can I explicitely force freebsd to avoid to
> assign a netinterface (Netif) to route HA2 when the gateway (with a
> differen Netif) is already defined in the routing table? 
Or is there any
> way to change the netinterface without modifying the route?     
> 

	I don't know what you are trying to do with the details you
	provided.  Does HA2 reside on a directly connected interface as
	well as hanging off the RA network.


> Remark: what I already tried (unsuccessfully)  
> on router RC:
> 1. route add -host HA2 RB_RC   (corresponds to  routing table above) 	
> 2. route add -host HA2 -iface xl1  (assigns directly a Mac-address, but
> 				   this is wrong)	
> 

	#1 should work fine.  Make sure you add a route in RB->RA for the
	host HA2.

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.0102091034260.55998-100000>