[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Problem switching to static IP address

I use a VERY basic script to set a static IP address on my
LiveCD's...here is the script I use:

# Get Static IP Information

printf "What IP Address do you want to assign to this computer?  "
printf "What Subnetmask do you want to assign to this computer?  "
printf "What Gateway do you want to assign to this computer?  "

# Shutdown networking and create a new INTERFACES file
ifdown eth0
/etc/init.d/networking stop
rm -f /etc/network/interfaces

cat <<INTERFACES > /etc/network/interfaces
auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet static
	address $IPADDR
	netmask $SUBNET
	gateway $GATEWAY


# Bring networking back online
/etc/init.d/networking start
ifup eth0

# End IP Configuration

-Stephen (AKA Screwba)

-----Original Message-----
org] On Behalf Of Thomas H. George
Sent: Monday, June 16, 2008 5:09 PM
To: debian-user@lists.debian.org;
Subject: Problem switching to static IP address

I have built a very nice Debian Live CD but with two problems.

One, I can't switch to the static IP addressed used by my lan.  I 
included a copy of my interfaces file in chroot_local-includes.  When I 
boot from the CD I can substitute this file in /etc/network but I can't 
find a way to shutdown the network and restart it with the substituted 
file.  I must have failed to include some package as there is no network

entry in the Debian/Applications drop down list.

(Bringing along my special config files does work very nicely in other 
cases.  Specifically, I have an xorg.conf file which allows me to use a 
Wacom tablet.  After booting from the cd I substitute a copy of this 
file and restart gdm and the Wacom tablet works perfectly.)

My second problem must also be an omitted package as only root has a 
terminal window.

The CD is 575 MB.  I hope a couple small packages might correct these 
problems without taking more than the remaining space.


debian-live-devel mailing list

Reply to: