Date: Tue, 22 Aug 1995 00:05:46 +0000 () From: Brian Litzinger <brian@mediacity.com> To: freebsd-questions@freebsd.org Subject: A question of routing Message-ID: <199508220005.AAA18383@easy4.easynet.com>
next in thread | raw e-mail | index | archive | help
I have a machine with lots of network interfaces: ed0, ed1, tun0-15, de0. Also, the ed0 interface is aliased to all sorts of IP address while the rest are all the same IP. ed0 10.0.0.1 and 10.0.0.2 - 10.0.0.79 ed1 10.0.0.1 tun0-15 10.0.0.1 de0 10.0.0.1 -net 10.0.1 is reachable via ed1 -net 10.0.2 is reachable via de0 various nets on tun0, tun1, etc. machine 10.0.1.30 is on the "other side" of ed1 and have several other nets hooked to it via various interfaces. The problem I run into is route add -net 10.1.0 -netmask 255.255.255.0 10.0.1.30 results in the netstat entry 10.1.0.0 10.0.1.30 UG 3 275517 tun0 unfortunately, 10.0.1.30 is reachable via ed1 not tun0? I am uncertain why tun0 is being selected as the interface via which 10.0.1.30 is reachable. Pings, telnets, etc, to 10.0.1.30 go via ed1 just like they are supposed to. I suspect it has something to do with tun0 being the last interface to be (ifconfiged?, routed via?, who knows?) and thus it is being used as a default in some way. Anyone know what this is happening? Is there are way to specify which interface to use in adding the above route? Thanks, Brian Litzinger brian@easynet.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508220005.AAA18383>