LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-31-2015, 09:11 AM   #1
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Rep: Reputation: 32
IP defaults on reboot (Slack 8.1)


Quick one, I'm finding on this one box (8.1) that when machine is rebooted the IP address changes back to a 192.*
when I run /etc/rc.d/rc.inet1 it again sets it us as intended.

Any ideas where to look to see why this is happening?

rc.inet1 is executable and does indeed set IP as intended when run.

Thanks in advance...
 
Old 07-31-2015, 11:43 AM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
What is the IP address supposed to be? What do you have in your rc.inet1.conf pertaining to that device?
 
Old 07-31-2015, 01:41 PM   #3
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
I'm not near the machine but the rc.inet1 config is correct as in when run it sets the IP, NetMask and GW as I expect, but this should happen at boot time, as it does on all my other slackware variants but for some reason on this machine when rebooting, this is not happening and IP remains 192.whatver. Yet, I can login and run rc.inet1 and all is as expected.
 
Old 07-31-2015, 01:59 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
What is your normal IP address for the computer? Do you notice any output from dhcpcd when you boot the machine? Has the machine always done this or did it just start happening recently?
 
Old 08-01-2015, 06:14 AM   #5
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
Its a process machine, was never networked until recently (didnt need to be). The default IP would have been 192.168.1.1 (I think). The correct entries have been added to the rc.inet1 file (no rc.inet1.conf file on 8.1 I recal)

It is executable, when I run it, IP changes and all works as intended until reboot.

dhcpd not running

can't always be near mahicne when rebooted, part of my issue and dmesg doesnt show much or far enough back to boot.
 
Old 08-01-2015, 06:22 AM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Does the I ever change? Else why not set it statically (not sure if that's what you did already), and after that even make the relevant files non writable?

Last edited by Didier Spaier; 08-01-2015 at 06:23 AM.
 
Old 08-01-2015, 08:58 AM   #7
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
It's set as a static IP in rc.inet1

I'm not so sure would be best idea to make rc.inet1 non writable, but guess I could backup and do so.

I'll test rebooting on Mon and see if I can see where it is defaulting back to 192.168. I'm assuming it must be happening after rc.inet1 is run as when I run that manually, it does as expected and sets IP etc.
 
Old 08-01-2015, 02:16 PM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Maybe you could run a grep in the rc.d directory for 192.168 and see if something else sets it later (like rc.local). Can you also post your rc.inet1 file?

Sorry if I'm not correct on files/folders. I didn't start using Slack until the 10 series, so I have no experience with Slack 8 (and even if I did, it would've been long enough ago I doubt I'd remember it very well).
 
Old 08-02-2015, 04:15 AM   #9
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
The box has never been able to mount a usb stick, so getting any files from there isnt so easy, but thats another story. It is networked but not to the outside world so to speak.

That said, I checked all of the rc.d dir and found nothing that looked as though it was changing the IP, nothing in rc.local (related anyway).

My dirty work around was to cron rc.inet1 but that gives me shivers LOL

I had hoped there would be a log somewhere that showed IP changes etc, but never really had the need for such before and been running slack for too many years.
 
Old 08-02-2015, 04:47 AM   #10
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by plisken View Post
I had hoped there would be a log somewhere that showed IP changes etc
There isn't one, but that doesn't prevent you from making your own. Instead of thinking of the init system as a black box, just think of it as some dodgy shell scripts that need debugging, because that's exactly what it is. Edit rc.M and/or rc.inet1 to write stuff to /tmp. Read, digest, refine, repeat, understand, solve. And then give thanks unto "Bob" that Slackware-8.1 did not feature systemd.

Here's a start to get you thinking. I won't tell you exactly what edits to make because strangely enough I find myself without access to a Slackware-8.1 system this morning.

Code:
echo "rc.inet1 called at $(date)" >> /tmp/inet1-debug.txt
ifconfig -a >> /tmp/inet1-debug.txt
[...]
echo "rc.inet1 finished at $(date)" >> /tmp/inet1-debug.txt
ifconfig -a >> /tmp/inet1-debug.txt
 
1 members found this post helpful.
Old 08-03-2015, 03:24 AM   #11
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
Solved, was hidden in an application startup script called from rc.local (doh)

Thanks for all help folks...

Last edited by plisken; 08-03-2015 at 02:04 PM.
 
  


Reply



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
I have just installed Slackware with defaults settings, on reboot i get GRUB Error 14 aybe Linux - Software 2 01-05-2006 04:01 AM
Slack 10 Winblows 98- Reboot sovietpower Linux - Security 3 08-29-2004 12:57 AM
Uncontrolled reboot in Slack 9.1 tika Linux - Newbie 1 02-01-2004 10:45 AM
how do you make the route table/defaults stick on reboot? piratebiter Linux - Networking 3 09-05-2003 06:57 PM
Slack reboot my computer laurentbon Slackware 4 08-29-2003 04:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:46 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration