LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-18-2006, 07:33 PM   #1
LDZ420
LQ Newbie
 
Registered: Apr 2004
Location: Fontana, California
Distribution: Ubuntu
Posts: 27
Blog Entries: 1

Rep: Reputation: 15
help with understanding /ect/init.d/network script


Hello,

This question is to enlighten me on the network script inside of the init.d folder.

I am currently using Ubuntu 5.10. While trying to exercise my skillz with Linux I tried to use the stop command with the /etc/init.d/network script. As I anticipated the nic device (eth0) would not longer communicate. I then proceeded to try using the start command to start the network service back up. When doing this I realized that the eth0 was not longer communicating to the rest of the network. commands like [ifconfig eth0 up], and route -n (which displayed nothing). The only way that I could get my nic card working again was to restart the computer.

can someone help, or at least point me in a direction of a good tutorial

-Landon
 
Old 05-19-2006, 01:03 AM   #2
pda_h4x0r
Member
 
Registered: Feb 2006
Location: somewhere in cyberspace
Distribution: Debian, Familiar
Posts: 380

Rep: Reputation: 30
Could you display your /etc/network/interfaces file?
 
Old 05-19-2006, 05:07 PM   #3
LDZ420
LQ Newbie
 
Registered: Apr 2004
Location: Fontana, California
Distribution: Ubuntu
Posts: 27
Blog Entries: 1

Original Poster
Rep: Reputation: 15
You know what, when you asked me to display the /etc/network/interfaces file it got me wondering and I started doing a little investigation.

First I looked into the /etc/init.d/network script to looked what was going on when executing the script. I noticed when using the start argument command ifup -a was being invoked.

Than I went to the man pages to take a look what it said. I noticed that when using the ifup command with option -a it said this command affect all interfaces that are marked auto in /etc/network/interfaces.

I then took a look at /etc/network/interfaces and noticed that the loopback interface lo was marked auto and the eth0 interface was not. [shaking my head while looking at the computer desk and saying "I am such a newbie"]

I would have not never even looked unless you had asked me to display the file.

Thanks Bratha
-Landon

Last edited by LDZ420; 05-19-2006 at 05:09 PM.
 
  


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
network init script bug? ardya Slackware 8 05-11-2006 02:08 AM
Setting a home network, need a little understanding.. araldit Linux - Networking 2 01-31-2005 11:53 AM
Which script overwrites /ect/motd? Nerox Debian 6 12-29-2004 03:25 PM
Need help understanding script....? jmr0311 Mandriva 3 08-08-2004 08:42 AM
Startup script, help understanding it..? jmr0311 Linux - Software 1 08-07-2004 06:59 PM


All times are GMT -5. The time now is 05:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration