View Single Post

   
  #3 (permalink)  
Old 01-16-2008, 09:36 AM
Stefan Jankowski
 
Posts: n/a
Default Re: Specific default routes for each interface

Ben <ben@en-ninguna-parte.com> writes:

> Ian Chard wrote:
>> Hi,
>>
>> I have a V240 connected to two different subnets, and I want to
>> be able to specify a different default route for each
>> interface. If I don't have a /etc/defaultrouter I end up with
>>
>> default 163.1.13.254 UG 1 6 bge1
>> default 163.1.62.254 UG 1 3 bge0
>>
>> which is what I want. However, I'd like to do this without
>> relying on router broadcasts, but I can't figure out how to do
>> this. Is it even possible?

>
> Touch /etc/notrouter and terminate in.routed. The file's
> existence will prevent in.routed from starting.


Note that this will also (and primarily) disable IP forwarding in the
kernel by forcing the ip_forwarding parameter to 0; it is normally set
to 1 if more than one interface (excluding loopback) is configured for
IPv4 (see /etc/init.d/inetinit on Solaris <= 9).

So this will have an additional (and rather drastic) side effect on
the system's IP configuration (which may either break or fix the
setup, depending on what the system is supposed to do in the first
place

--
Stefan Jankowski
Sysadmin, University of Freiburg, CS Dpt.
s/spambucket//
s/dave\.null/${FORENAME}.${LASTNAME}/
Reply With Quote