Re: How-to set static IP address for debian live image
Daniel Baumann wrote:
Jonathan Murray wrote:
LH_BOOTAPPEND_INSTALL="ip=eth0,128.128.204.73,255.255.255.0"
but it always comes up as DHCP. Any ideas welcome.
which target distribution and which live-initramfs version?
ii initramfs-tools 0.92o
tools for generating an initramfs
debian:/proc# more version
Linux version 2.6.26-2-686 (Debian 2.6.26-21) (dannf@debian.org) (gcc
version 4.1.3 20080704 (prerelease) (Deb
ian 4.1.2-25)) #1 SMP Sat Dec 26 09:01:51 UTC 2009
I think I figured it out. I seem to have changed the incorrect field in
config/binary.
It seems I needed to make
LH_BOOTAPPEND_LIVE="ip=192.168.0.2,255.255.255.0,192.168.0.1"
then run lh_clean
then lh_build
to make the live debian image use the static ip address.
it seems to take that and use it in the image now. However, the user has
decided they need to be able to change that address at will and remember
those changes for next boot, so I don't think I can use live debian for
this application. He wants parts of the filesystem to be changeable,
like for example, /etc. So I don't think this will cut it.
thank you,
Jonathan Murray
Reply to: