LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-13-2005, 11:01 PM   #1
imurch01
LQ Newbie
 
Registered: Jan 2005
Location: Adelaide, Australia
Distribution: FC6
Posts: 8

Rep: Reputation: 0
Network service startup


I'm trying to find a way (preferrably neat and not requiring me to re-compile my kernel) that I can set up my Fedora Core 1 so I can choose whether to start network services at bootup without going through interactive setup...

Only way I can think of involves editting /etc/inittab - I'm not too keen!!

Thanks in advance
 
Old 01-13-2005, 11:36 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
You could type the command: neat and highlight your nic. Then select Edit....
Uncheck [ ] Activate device when computer starts.
The after you boot up and decide to use the device, type the command:
ifconfig eth0 up
 
Old 01-13-2005, 11:58 PM   #3
imurch01
LQ Newbie
 
Registered: Jan 2005
Location: Adelaide, Australia
Distribution: FC6
Posts: 8

Original Poster
Rep: Reputation: 0
Yeah, problem is that if I do that then my IP address isn't configured correctly via DHCP, so unless you can tell me a way to get around that ...

Thanks anyway
 
Old 01-14-2005, 12:18 AM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
If you set it to use dhcp then using that method will get the needed info when you type
ifconfig eth0 up
 
Old 01-16-2005, 09:08 PM   #5
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Quote:
Yeah, problem is that if I do that then my IP address isn't configured correctly via DHCP, so unless you can tell me a way to get around that ...
I see what you were saying now.
By using the command: ifconfig eth0 up the nic gets an ip address ok but for some reason it doesn't get everything it needs.
So I used the command: ifup eth0 and presto! it gets the dns info needed for internet connection.

If you want to deactivate that nic again, use the command: ifdown eth0
 
Old 01-16-2005, 10:25 PM   #6
imurch01
LQ Newbie
 
Registered: Jan 2005
Location: Adelaide, Australia
Distribution: FC6
Posts: 8

Original Poster
Rep: Reputation: 0
Yeah, I'd figured that one out - thanks.

It's a bit strange - it still doesn't set my hostname correctly, but I've figured out a way to do it with /etc/init.d/network start as long as I edit a few other files around the place to fool it into thinking I start eth0 at boot-up.

Nothing that can't be done with a little script here and there.

Thanks for your help homey - I think I've got it from here.
 
Old 01-16-2005, 10:37 PM   #7
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Thumbs up

Quote:
Nothing that can't be done with a little script here and there.
Glad ya got it going.
 
  


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
Startup Programs as a Service? keithieopia Linux - Newbie 4 02-26-2005 09:44 PM
startup the service automatically ashley75 Linux - General 4 09-24-2003 02:14 AM
how to interrupt service at startup mehlkelm Linux - General 9 05-03-2003 10:35 AM
Running a service at startup correro Linux - General 14 02-18-2003 07:00 PM
Stopping a startup service MrJoshua Linux - General 1 05-15-2002 02:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06: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
Open Source Consulting | Domain Registration