Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Disable dhcp< Next Oldest | Next Newest >
sassi67 Offline





Group: Members
Posts: 12
Joined: May 2005
Posted: Aug. 31 2005,14:13 QUOTE

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.
Back to top
Profile PM 
friedgold Offline





Group: Members
Posts: 122
Joined: Mar. 2005
Posted: Aug. 31 2005,14:29 QUOTE

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
Back to top
Profile PM 
hawki Offline





Group: Members
Posts: 175
Joined: Jan. 2004
Posted: Aug. 31 2005,14:45 QUOTE

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
Back to top
Profile PM 
2 replies since Aug. 31 2005,14:13 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Disable dhcp

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code