LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 06-16-2010, 09:30 AM   #1
ertl
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Rep: Reputation: 0
Static IP Initialization in Boot String


Is there is a way to specify a static IP address in the parameters supplied to the Linux kernel at boot time? I know that I can do it with a start-up script called from my rcS file but it would be really convenient to specify it in my boot parameters.

If there is a way to do this, can someone please supply an example or a link that describes how it is done?

Thanks
 
Old 06-16-2010, 04:49 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
Why do you want to do this out of curiosity? There may be better alternative methods, as far as I know there is no way to specify that information at boot as a kernel parameter.
 
Old 06-17-2010, 10:15 AM   #3
fpmurphy
Member
 
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 299

Rep: Reputation: 62
If you really want to go this route, you could write a startup script which parses /proc/cmdline to retrieve the IP address.
 
  


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
Static IP is wrong on Boot ShadowHywind Linux - Networking 6 01-24-2007 04:41 PM
LXer: LPI Exam 102: Boot, Initialization, Shutdown, and Runlevels LXer Syndicated Linux News 1 12-22-2006 06:38 AM
Parse --static string no delimiters DaFrEQ Programming 2 04-08-2005 02:06 PM
static initialization error wasp Programming 2 03-15-2005 05:11 AM
No boot, hangs in audio hardware initialization (FC3 in Toshiba 2800-S201) vrrp Linux - Hardware 4 11-25-2004 06:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:16 PM.

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