Re: Default routing setup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2004-09-03 at 17:38, Sunny Shum wrote:
> 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
>  

look for a "GATEWAY=192.168.1.xxx" entry in one of your:

  /etc/sysconfig/network-scripts/ifcfg-eth?

files.

-j

-- 
Jason Opperisano <opie@xxxxxxxxxxx>



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux