Default routing setup

Jose Maria Lopez jkerouac at
Sat Sep 4 00:13:26 CEST 2004

El vie, 03 de 09 de 2004 a las 23:38, Sunny Shum escribió:
> Hi all,
> I am a newbie into the Linux world, and I recently built a firewall box (2
> NICs, internal network as with RedHat 9.  Everything works
> fine, except the routing table.  Every time when the system has reboot, I
> have to do the following command:
> prompt>route del default
> prompt>route add default gateway [external gateway IP]
> Because I don't do that, and if I just type "route" at the prompt, the
> default is point back to the internal NIC.  Is there a way to make this
> permanent?  I tried to edit the file /etc/sysconfig/network by adding the
> line "" but it doesn't work.
> Thanks!
> Sunny Shum

Maybe you should edit /etc/sysconfig/static-routes, I have there two
default routes for two networks with their gateways.

Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
jkerouac at
bgSEC Seguridad y Consultoria de Sistemas Informaticos

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
                -- Jack Kerouac, "On the Road"

More information about the netfilter mailing list