How does one save static IP information?


Forum: Networking
Topic: How does one save static IP information?
started by: green

Posted by green on Feb. 26 2005,02:33
Using: LiveCD - toram - backup/restore

I've been searching the forums in hopes of coming across something to "save" that would allow restoration of static IP information upon the next reboot. I've seen "ifup -a" or "ifup eth0" added to bootlocal.sh.  However, where does it save the actual static IP information? I understand about booting with "nodhcp" and all that business, but am wondering where all this neat static IP info is placed before reboot and how to retain it.

Any suggestions?

Thank you sirs/madams.

The Eternal N00b.

Posted by roberts on Feb. 26 2005,04:26
You also put the following in your /opt/bootlocal.sh

ifconfig eth0 ip xx.xx.xx.xx
route add default gw yy.yy.yy.yy
echo nameserver aa.aa.aa.aa > /etc/resolv.conf
echo nameserver bb.bb.bb.bb >> /etc/resolv.conf

Posted by green on Feb. 26 2005,05:07
i should have figured that out.  Doh!

Thank you kind, Sir.

Posted by dexdex on Feb. 28 2005,10:28
you only have to add nodhcp to the lilo.conf

edit the lilo.conf where the row begins with:

append .... nodhcp

thats all.

do not forgett to confirm the change with command:

lilo

Posted by Joeri on Mar. 29 2005,18:05
Using dsl 1.0 rc1.

Just the nodchp didn't do the job for me, so i did both and now its working.
I also added lampp start and ssh start to bootlocal.sh they start before login on my multiuser install.
Now it can run without login, it is just in use as a webserver

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.