LinuxQuestions.org
Help answer threads with 0 replies.
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 04-16-2003, 05:49 PM   #1
cijunet
Member
 
Registered: Nov 2002
Location: Vancouver
Distribution: Slackware 9.0
Posts: 43

Rep: Reputation: 15
rc.inet1 question


Hi
It's me again.... with another newbie question. I want to modify the rc.inet1 script in order to be able to set a permanent IP (192.168.0.1) for my second network card. I can do it with no problem, but a question arise...
If I write in rc.local a line like "modprobe eth1", which command will be loaded first at boot time, the one from rc.inet1 that will set the IP for eth1, or the one from rc.local which loads the eth1 module? As a common sense rule, probably, the module for eth1 should be loaded first followed by IP address allocation, right?
In conclusion, how can I load first the module and after that to set the IP for that interface?

Lots of thanks
 
Old 04-16-2003, 06:26 PM   #2
notAcoolNick
Member
 
Registered: Apr 2003
Location: Oxford, MA, USA
Distribution: Slackware
Posts: 89

Rep: Reputation: 15
the best way for you to go and read about System Init:
http://www.slackware.com/config/init.php
And about network configuration:
http://www.slackware.com/config/init.php
modprobe eth1 will not work.
first of all during init there are very few environment variables are set so you probably need to have explicit path:
/sbin/modprobe <module_for_your_card> :P
but this is actually written for you in the /etc/rc.d/rc.modules
you just have to find out what module you need for your card and uncomment apropriate line in /etc/rc.d/rc.modules.
initialization of you interface then should be done ni /etc/rc.d/rc.inet1
something along the line:
ifconfig eth1 YOUR_IP_ADDRESS up (plus some other optioins you might need)
 
Old 04-16-2003, 06:49 PM   #3
cijunet
Member
 
Registered: Nov 2002
Location: Vancouver
Distribution: Slackware 9.0
Posts: 43

Original Poster
Rep: Reputation: 15
Sorry for being not very explicit in my "presentation" :0)
I forgot to mention that before I do "modprobe eth1" I have already written in /etc/modules.conf a line like "alias eth1 8139too". This is the reason I use only modprobe eth1 (much easyer).
I agree with you regarding full path in rc.local (sbin/modprobe).
 
Old 04-16-2003, 07:57 PM   #4
notAcoolNick
Member
 
Registered: Apr 2003
Location: Oxford, MA, USA
Distribution: Slackware
Posts: 89

Rep: Reputation: 15
dude, you don't have to agree with me you have to agree with your box
 
Old 04-16-2003, 08:39 PM   #5
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 45
The NIC module should be loaded from the rc.netdevice script or at least from rc.modules to be available in the rc.inet1 script. The rc.local script is the last script called from the rc.M script that is the very end of the startup procedure.

You stated you had two NIC adapters, if they use different drivers and both are module based, then be sure to load the NIC desired for eth0 first. Another good reason to use rc.netdevice so the load order will be explicit and correct for the proper identification of the networks.
 
  


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
rc.inet1 not starting? pnellesen Slackware 10 11-27-2005 09:23 PM
/etc/rc.d/rc.inet1 ratmz Slackware 1 11-10-2005 12:38 PM
rc.inet1 and rc.inet1.conf edafe Slackware 0 02-16-2005 09:51 AM
rc.inet1 Query... Choppsta Slackware 4 08-11-2003 09:25 PM
rc.inet1 Half_Elf Linux - Networking 2 01-26-2002 11:23 PM


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

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