Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-19-2006, 03:09 PM   #1
Registered: Nov 2005
Distribution: CentOS
Posts: 154

Rep: Reputation: 15
default gateway changes on reboot

I have a centos 4.2 web server that seems to be changing its default gateway every time it is rebooted. The DG has recently been changed to accomodate a new Shorewall firewall and now whenever the web server is rebooted it changes its DG to the one it had before the firewall was added.
I changed the DG using
route add default gw x.x.x.x

Can anyone please tell me why it is resetting the DG and where is the configuration stored?

Thanks to everyone for your assistance.
Old 04-19-2006, 03:19 PM   #2
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275

Rep: Reputation: 38
You can set a permanent gateway address in /etc/sysconfig/network (I think that's correct on RedHat based systems)
Old 04-19-2006, 04:04 PM   #3
Registered: Nov 2005
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
I was looking in /etc/sysconfig/network-scripts but you were right on the money. It was /etc/sysconfig/network

Thank you


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
lm10.0 gateway is set but when I reboot I have to set the gateway rharvey32 Mandriva 8 02-13-2006 02:35 PM
Default gateway dooda5555 Linux - Networking 1 06-17-2005 12:43 PM
HELP default gateway MrSavage Linux - Newbie 2 01-10-2005 08:46 AM
Default Gateway rrosenkoetter Linux - Networking 3 08-27-2004 09:41 AM
What's a default gateway and do I need one? Travis86 Linux - Newbie 8 05-25-2003 06:44 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration