LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 07-19-2002, 03:14 AM   #1
matruschka
LQ Newbie
 
Registered: Jul 2002
Posts: 22

Rep: Reputation: 15
Post Slackware 8.1 rc.inet1 shell script problems


Hi again! In my "Slackware 8.1 DHCP trouble"-thread,I posted this message,as I at the time due to some problem with dhcp server response was unable to connect to my ISP through eth0:

Quote:
Hi!Recently installed Slackware 8.1 and I can't get my internet connection to work properly.I connect to my ISP Bredbandsbolaget through eth0 using the module 3c59x.o and I've configured my network to use DHCP to obtain an dynamic IP address.
However,when the kernel is loaded at boot,I get this message:

dhcpcd[63] broadcasting DHCP_DISCOVER
dhcpcd[63] timed out waiting for a valid DHCP server response

Using lsmod,I get the loaded modules list and the 3c59x.o module is on it.And network card probing within netconfig finds my card right away,so the card is working properly.

3Com EtherLink XL PCI TPC NIC (3C900B-TPC) with
3Com 3C920 Integrated Fast Ethernet Controller (3C905C-TX Compatible)

Anyone got any suggestion on how to fix this?
Later on,since I never manage to get the eth0 connection to work in Slackware 8.1 and knew it worked in 8.0,I re-installed that earlier version.Making a long story short,I later on installed Slackware 8.1 again and replaced its' default rc.inet1 shell script with the one from 8.0 and then the eth0 ISP connection worked!

For now this works just fine,but the rc.inet1 script I use now only supports a one network-card hardware configuration and since I perhaps I later on wants to take advantage of the dual network-card support in Slackware 8.1's default rc.inet1 script,I post this message hoping to get some help on what might be malfunctioning in the 8.1 default script.

The two rc.inet1 scripts are available here:
http://hem.spray.se/matruschka/subfils/rc.inet1.80org
http://hem.spray.se/matruschka/subfils/rc.inet1.81org


 
Old 07-19-2002, 05:03 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
Well the way they added support for another interface in the second script is just to copy everything and do the same thing for the second interface. Kinda primitive because if you keep adding an interface it will get bigger and bigger.
You could just do the same for the 8.0 script to add a second interface. Just copy paste the code and change the variables to make them unique for each interface.

Well I don't know where in the script it is failing but they have set the -d flag when they call dhcpcd so it should contain info in the log files on why it's going wrong there.
They also add -t 10 and an optional hostname. But that all looks pretty normal.

Maybe you could just run the script and then post the output you get. And the errors you get in the log files.
 
Old 07-20-2002, 02:40 AM   #3
matruschka
LQ Newbie
 
Registered: Jul 2002
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Well the way they added support for another interface in the second script is just to copy everything and do the same thing for the second interface. Kinda primitive because if you keep adding an interface it will get bigger and bigger.
You could just do the same for the 8.0 script to add a second interface. Just copy paste the code and change the variables to make them unique for each interface.

Well I don't know where in the script it is failing but they have set the -d flag when they call dhcpcd so it should contain info in the log files on why it's going wrong there.
They also add -t 10 and an optional hostname. But that all looks pretty normal.

Maybe you could just run the script and then post the output you get. And the errors you get in the log files.
I'll be happy to run the script and post it's output and also to post the events logged in the logfiles,but I'm still a very unexperienced Linux user.Maybe you can tell me how to run the script (can it be done inside Linux?) and which logfiles to fetch?

 
Old 07-22-2002, 02:37 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
Just get yourself to a command prompt and type the full name of the script with the path to run it. Or go to the directory and type the name of the script with a leading ./

Well it depends where it's going wrong and how your system is configured for which log files to check. But you could always run a 'ls -lt /var/log' to find out which log files have been modified since you ran the script. Should probably be some info in /var/log/messages.
 
  


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
shell script problems BC1 Linux - General 1 05-01-2005 11:42 PM
Copy of Slackware 9.1 rc.inet1 Looking_Lost Slackware 3 10-30-2003 08:57 AM
shell script problems mtest Programming 8 10-25-2003 04:26 PM
slackware not running rc.inet1 at boot? razormonkey Linux - Networking 2 10-06-2003 05:05 AM
Slackware 9.1 Rc.inet1 help Psyman014 Slackware 3 10-03-2003 08:10 AM


All times are GMT -5. The time now is 11:46 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