Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
01-30-2003, 04:44 PM
|
#1
|
|
LQ Newbie
Registered: Jan 2003
Location: Texas
Distribution: RedHat 8
Posts: 3
Rep:
|
for a year now... interface ppp0: failed
This is my first question to ever ask the linux community, and I've been "trying out" linux on an extra drive for a year --- please help it's uber-annoying....
I have ADSL with SBC (formerly swbell) and I can't get linux (redhat 8) to connect on boot. Once linux is up, I can go to [system tools] > [network device control] in the menu and then click on ppp0 and then "activate" it. That connects me just fine.
I've checked the "activate device on startup" box for it, but on startup it just says:
-------------------------------------------------------
ifup: /sbin/adsl-start: line 217: 607 Terminated $CONNECT "$@" >/dev/null 2>&1
Bringing up interface ppp0: failed
--------------------------------------------------------
Now, under the "network device control" thing there's also the eth0 which is always Inactive and can't be started. I have no idea what it does, it doesn't do any good to start it on boot either, it fails too.
Why such serious looking errors on bootup? why can't it just do a virtual "clicking on the activate button for ppp0" instead of whatever it's trying to do. It seems like they're the same thing, no?
Any solution to this? because I'm getting sick of clicking "activate" every day....
Thanks,
Lee
|
|
|
|
02-04-2003, 12:42 PM
|
#2
|
|
Member
Registered: Dec 2002
Posts: 187
Rep:
|
I think you can accomplish this via a sript in the rc.d startup scripts. It could be that redhat is trying to bring up the eth0 too early (might have something to do with ADSL?)
anyway add a file in /etc/rc.d/rc3.d
called something like S75network
make sure the script can handle "start" and "stop" as parameters. make sure root owns the script and it has perms 777
make sure the script executes the folllowing line for the "start" parameter:
/sbin/ifup eth0
(replace the path with where your ifup lives if needed and the eth0 with the name of yourconnection name.)
upon the next reboot the eth0 should come up.
Note the S indicates a startup process and the number (75) indicates in what order the system will bring them up.
hope this helps...
Let me know if it would help and I'll whip up a script for you and send it your way.
Last edited by kkempter; 02-04-2003 at 12:44 PM.
|
|
|
|
02-04-2003, 08:22 PM
|
#3
|
|
LQ Newbie
Registered: Jan 2003
Location: Texas
Distribution: RedHat 8
Posts: 3
Original Poster
Rep:
|
hmm... scripts...
okay here's what I've done... I deleted that eth0 from my "network device control" application. there was pretty much no effect. the ppp0 thing sometimes starts at boot, sometimes doesn't. I can always just click connect button to do it though.
I think all I need to start DSL ever is "/sbin/ifup ppp0" --- that seems to do it. Is that unusual? you mentioned "ifup eth0" which doesn't do much of anything sense I through away "eth0." So apparently it's not important? (sorry, I through eth0 away before I could try it).
"ifup" sounds conditional not commanding... why the "if" part?
What's the deal with eth0? Is it my ethernet card? isn't the card pretty vital to my dsl modem (which goes through it)? now ppp0 is just what? an imaginary "device" that represents the internet connection? How can I just delete and never start the network card and yet it all still works?
The main thing I want to know more about now is scripts.... Am I to understand that all the scripts in a certain folders are loaded depending on their names? I'd like to just go in and tell it to do a "ifup ppp0" like you described. I don't know enough about these scripts to write one just yet I think.
Also what's with the weird names? "rc.d/rc3.d"? how did you know to pick that one? Why no "rc2.d"?
|
|
|
|
02-04-2003, 11:39 PM
|
#4
|
|
Member
Registered: Dec 2002
Posts: 187
Rep:
|
eth0
don't worry about eth0 - it's the standard name for an ethernet connection
just add the /sbin/ifup ppp0 to the startup script.
The rc.d scripts are what Linux runs at boot time. Generally rc3.d and rc6.d are reserved for user scripts they represent unix run levels. Give me a day or so and I'll send you a script. btw ifup is not conditional, its the same as running /sbin/ifup but without the path. its the set of internet config related scripts. you can run ifconfig to see what internet connections are active and ifup/ifdown to activate/deactivate the connections.
|
|
|
|
02-05-2003, 08:03 PM
|
#5
|
|
LQ Newbie
Registered: Jan 2003
Location: Texas
Distribution: RedHat 8
Posts: 3
Original Poster
Rep:
|
Thanks
Thanks, I'd appreciate any script you could send if you could. This is one of those things that's a little more difficult in linux I think, but at the same time I'm glad I have the ability (at least someday I will) to just go in a change it as I please.
I was setting up linux on a computer on a big network a few days ago and I noticed it didn't list a ppp --- it just had an eth, which went over without any problems. Interesting stuff...
|
|
|
|
02-06-2003, 10:23 PM
|
#6
|
|
Member
Registered: Dec 2002
Posts: 187
Rep:
|
put this script in your /etc/rc.d/rc3.d directory
as root run 'chown root.root /etc/rc.d/rc3.d/S75network'
then run 'chmod 777 /etc/rc.d/rc3.d/S75network'
Let me know if it works out.
I couldn't figure out how to attach a file so here it is, just copy this section below and name it /etc/rc.d/rc3.d/S75network
#/usr/bin/bash
case "$1" in
start)
/sbin/ifup ppp0
;;
stop)
/sbin/ifdown ppp0
;;
restart)
/sbin/ifup ppp0
/sbin/ifdown ppp0
;;
*)
echo "You must enter a paramater (start, stop or restart)"
esac
|
|
|
|
02-06-2003, 11:59 PM
|
#7
|
|
Member
Registered: Dec 2001
Location: Oklahoma City, OK, USA
Distribution: Xubuntu 12.04 LTS
Posts: 156
Rep:
|
Re: hmm... scripts...
Quote:
Originally posted by Lee_Beck
"ifup" sounds conditional not commanding... why the "if" part?
Also what's with the weird names? "rc.d/rc3.d"? how did you know to pick that one? Why no "rc2.d"?
|
The "if" stands for "InterFace" rather than the word "if" and comes from the ancient Unix tradition of abbreviating most everything to only 2 or 3 keystrokes.
The number following "rc" indicates the "runlevel" used at the boot process. "rc3.d" is the directory of scripts that run when booting to runlevel 3, which is the non-GUI command line. Exact meaning of the various runlevels varies from one distribution to another; on my Mandy boxes runlevel 5 boots directly into the GUI without a command line, using rc5.d. Runlevel 6 shuts down the system. Sorry but I don't know what "rc" stands for though...
Incidentally, I'd put the network script into rc.local rather than any of the other init-related directories. The rc.local directory runs after all the others, and so allows more time for your network to be initialized before trying to connect.
|
|
|
|
03-31-2003, 03:34 AM
|
#8
|
|
Member
Registered: Dec 2002
Posts: 102
Rep:
|
Maybe
rc = runlevel commands ??
Do this script work or not. I will try it with my gprs modem.
I will let you know
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:10 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|