IP Routing Question
fbsd at douville.net
Wed Feb 15 04:29:57 PST 2006
Well, the solution ended up just setting up the rule for the subnet, not the
route add aaa.bbb.ccc.200/29 aaa.bbb.ccc.200 -interface
Had to move some IP addresses, but at least the traffic is going to the
right ethernet controller now.
Thanks for the help!
----- Original Message -----
From: "Drew Tomlinson" <drew at mykitchentable.net>
To: "Steve Douville" <fbsd at douville.net>
Cc: "FreeBSD Questions" <freebsd-questions at freebsd.org>
Sent: Tuesday, February 14, 2006 2:57 PM
Subject: Re: IP Routing Question
On 2/14/2006 11:43 AM Steve Douville wrote:
> By default, it sets the netif to em0
OK, then what about 'route add -host aaa.bbb.ccc.209 aaa.bbb.ccc.200'?
And if that doesn't work, can I please see 'netstat -rn'? You can
obfuscate the IPs if you wish.
> ----- Original Message -----
> From: "Drew Tomlinson" <drew at mykitchentable.net>
> To: "Steve Douville" <steve at douville.net>
> Cc: "FreeBSD Questions" <freebsd-questions at freebsd.org>
> Sent: Tuesday, February 14, 2006 2:40 PM
> Subject: Re: IP Routing Question
> On 2/14/2006 11:17 AM Steve Douville wrote:
>> Weird stuff...
>> route add -host aaa.bbb.ccc.209 aaa.bbb.ccc.196 -ifp em1
> What happens if you leave off the "-ifp em1"?
>> doesn't work even if i've already set
>> aaa.bbb.ccc.196 link#2 em1
>> The only way things work well is if the gateway is set to link#2. The
>> way I can set it to link#2 is if the address was accessed,
>> creating a record with link#1 as the gateway and then issuing a route
>> command to move it to link#2.
>> it'd be much easier if i could just type
>> route add -host aaa.bbb.ccc.xxx link#2 -ifp em1
>> but it doesn't recognize link#2 as a valid address, even though it uses
>> in the table by default!!
>> Haven't tried the ipfilter yet. Maybe i'll give that a whirl, too.
>> ----- Original Message -----
>> From: "Drew Tomlinson" <drew at mykitchentable.net>
>> To: "Steve Douville" <fbsd at douville.net>
>> Cc: <freebsd-questions at freebsd.org>
>> Sent: Tuesday, February 14, 2006 1:45 PM
>> Subject: Re: IP Routing Question
>> What happens with a simple 'route add <certain ip address>
>> aaa.bbb.ccc.196? Or am I misinterpreting what you wish to achieve?
freebsd-questions at freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions