LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-06-2005, 08:13 AM   #1
fireman949
Member
 
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 192.168.1.1 to 192.168.50.1.

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 192.168.50.1 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, 01:15 AM   #2
mcd
Member
 
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.
 
  


Reply


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


All times are GMT -5. The time now is 08:16 PM.

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