Well, what I *need* e.g. on the gateway is something like this:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.0.3     0.0.0.0         255.255.255.255 UH    0      0        0
eth2
192.168.0.2     0.0.0.0         255.255.255.255 UH    0      0        0
eth1
213.118.248.0   0.0.0.0         255.255.252.0   U     0      0        0
eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0
lo
0.0.0.0         213.118.248.1   0.0.0.0         UG    0      0        0
eth0

However, by default those upper 2 rules aren't there, and instead
there's a rule like this:

192.168.0.0     0.0.0.0         255.255.255.0 U    0      0       
0       eth2

So in other words, by default ALL LAN traffic is routed through eth2,
while obviously traffic with 192.168.0.2 should be routed via eth1.

Did that make it any clearer?

Thanks,

Hans

On Sat, 2003-06-28 at 20:18, Bill Mullen wrote:
> On Sat, 28 Jun 2003, SainTiss wrote:
> 
> > I just changed my network configs here, and it seems the routing table
> > got messed up...
> > 
> > I know the solution (ie adding some rules and deleting some), but I was
> > wondering if there was some file or something where I could specify the
> > right rules, so that the table is setup correctly at boot?
> > 
> > what's the default way to do this? I'm guessing some file which is then
> > processed by ifup or something, but I'm not sure...
> 
> Depends on what's messed up. :)
> 
> Most settings draw on the information in the "/etc/sysconfig" directory, 
> specifically the "network" file and the various "ifcfg-<interface>" ones 
> in the "network-scripts" subdirectory. For simpler setups, these are all 
> you'll need to adjust, but we have no idea how complicated your normal 
> routing table actually is ... care to offer a hint? ;)
-- 
In a world without walls and fences, who needs windows and gates?

Is the essence that the light pulse lives longer?

Hans Schippers
1LIC INF
UIA 2002-2003

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to