Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Feb 2001 09:58:06 +0100 (MET)
From:      Placi Flury <flury@tik.ee.ethz.ch>
To:        freebsd-questions@freebsd.org
Subject:   static routing (Freebsd 4.2)
Message-ID:  <Pine.GSO.4.21.0102090925480.5619-100000@kom25>

next in thread | raw e-mail | index | archive | help

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. 

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?     

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)	


Thanx a lot,

Placi


- 
+--------------shoot for the moon-------------------------+
| Placi Flury                                             |
| Tel: +41 1 63 27545                                     |
| email: flury@tik.ee.ethz.ch                             |
|                                                         |
+----------even if you miss, you'll land among the stars--+




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.GSO.4.21.0102090925480.5619-100000>