Share your knowledge at the LQ Wiki.
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 09-06-2005, 09:13 AM   #1
Registered: Dec 2003
Location: Walls
Distribution: Slackware 10.1;CentOS 4
Posts: 51

Rep: Reputation: 15
Slack drops 'route' after reboot. Manual config required - but why?

Here is my situation:

My Slackware 10.1 box has been 'fat and happy' for the past 200 days or so. I changed the network it was on from 192.168.1.x to 192.168.50.x, thus the default gateway changed from to

I thought I had it figured out by changing the IP address on the NIC with "ifconfig" and then using 'route':
route delete default
route add default gw eth0

Everything works well until a reboot (every 200 days or so) when it fails to connect to the public. I can get into it from my LAN, but from outside my network it is unreachable until I execute the 'route' commands as listed above.

Is this a problem with slack or is there a .conf file I need to put the new information in?
Old 09-07-2005, 02:15 AM   #2
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
quite possibly. put it in /etc/rc.d/rc.inet1.conf (after all the eth0, eth1, etc. there's an entry for gateway). sometimes i have to restart rc.inet1 a couple times for it to take effect.


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
Connection drops out, must reboot? tmpatrick Linux - Wireless Networking 6 03-03-2011 09:13 PM
route settings get changed after reboot brynjarh Linux - Newbie 1 07-08-2004 02:03 PM
Anybody know how to use slack-required when creating slack pakages? linuxlah Slackware 1 02-10-2004 03:27 PM
module required for net card switches on reboot byronholldorf Linux - Hardware 0 07-25-2003 05:38 PM
manual network config chosmer Linux - Networking 3 07-26-2002 10:46 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:24 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration