Networking :: Disable dhcp
Hello everybody. I need to start DSL 1.0.1 remastered and hd-installed so that I can assign a static IP to my box and not using dhcp (my box lies in a LAN).
So I modified /opt/bootlocal.sh adding this lines:
sudo ifconfig eth0 "IP1" netmask 255.255.255.0 broadcast "IP2" up
sudo route add default gw "IP3"
sudo echo nameserver "IP4" > /etc/resolv.conf
When I restart my box i can't connect to the lan.
In the list of running processes I see "pump -i eth0".
If I use "netcardconfig" everthing works.
Any suggestion?
Thanks in advance.
You could try using the cheatcode 'nodhcp' or commenting out the network setup part of /etc/init.d/knoppix-autoconfig. Or you could just kill the pump process by adding killall pump into bootlocal.sh.
PS there's no need to used sudo in /opt/bootlocal.sh since this script is ran as root
Hi
I think you are making this a lot harder than it needs to be.
1. commands in bootlocal.sh don't need to be run with sudo.
2. if you have an hd-install you shouldn't need to reconfigure the network everytime you boot.
3. If you use a frugal install you can use the backup/restore device to save your network settings.
If you have an hd-install and eth0 is not starting cleanly you may want to add the following lines to bootlocal.sh
ifconfig eth0 down
ifconfig eth0 up
If you have a frugal install try adding those lines above but also add the following lines to .filetool.lst and configure a backup device.
etc/sysconfig/network-scripts/ifcfg-eth0
etc/network/interfaces
etc/resolv.conf
That should save and restore your network settings and then stop and restart eth0.
good luck
original here.