Re: Static route for a specific IP adress "bozothedeathmachine" <bozothedeathmachine@gmail.com> writes:
> Hi, all I'm having an issue creating a route for a specific IP
> address. I need all info coming from a specific IP (172.30.10.85/26)
> to use 172.30.10.100 as it's gateway, but everything else on that
Routing doesn't have a "come from" option. Packets are forwarded
based on the IP destination address alone.
If you need to do something more complex than that, then you probably
need to look into IP Filter's 'to' mechanism. See ipfilter(5) and
ipf(4).
> segment (172.30.10.64/26) to use the standard gateway at
> 172.30.10.65. To make it all the more interesting 172.30.10.85 is a
> virtual IP addressed assigned to ce2:1. I have tried just adding a
> route with destination 172.30.10.100 and gateway 172.30.10.85, but it
> was attempting to send packets out of ce0 and not ce2. Is there a way
> to manually configure the interface to be used also? I'm pretty
> confused here. The network configuration stats are below.
[...]
> 0.0.0.0 172.30.10.85 UG 1 0
That's a suspicious entry. It looks like someone did a "route add
0.0.0.0/32 172.30.10.85" on this system. That's unlikely to be
helpful.
Perhaps it would help to explain what higher-level problem you're
trying to solve.
--
James Carlson, Solaris Networking <james.d.carlson@sun.com>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677 |