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 192.168.1.xxx) 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 xxx.xxx.xxx.xxx [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 "GATEWAY=xxx.xxx.xxx.xxx" 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@xxxxxxxxx bgSEC Seguridad y Consultoria de Sistemas Informaticos http://www.bgsec.com ESPAÃA 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"