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: nodhcp not holding, switches to a dhcp address later on< Next Oldest | Next Newest >
lxzndr Offline





Group: Members
Posts: 4
Joined: Sep. 2006
Posted: Nov. 03 2006,21:25 QUOTE

I've set up a wyse terminal as a DSL box (using the info provided from linked pages here that I don't recall at the moment) booting from a usb stick.

Problem is, during boot up, even with nodhcp in the menu.lst file, it still reports that it is getting dhcp.
in my boot messages:
Scanning for Harddisk partitions and creating /etc/fstab... Done.
Network device eth0 detected, DHCP broadcasting for IP. (Backgrounding)

then it uses my bootlocal.sh info to change the card info as requested.  but it must be using the info retrieved from the initial dhcp request as to when to renew, and then it renews at some point, but it gets a IP address in our DHCP range, not keeping the static address.

Where should I look to stop this from happening.  I'm trying to use this machine to process snmp trap messages, and it doesn't work well when it changes its IP address.
Back to top
Profile PM 
Winter Knight Offline





Group: Members
Posts: 146
Joined: April 2006
Posted: Nov. 04 2006,22:32 QUOTE

Odd. nodhcp boot option works for me. Are you using any other boot options that might possibly be conflicting? I guess, what is your kernel boot line?

As a workaround, try:
Code Sample
killall pump


after you boot, and before you assign a new address. pump is responsible for giving you a dynamic address. No pump, no dynamic address.
Back to top
Profile PM 
lxzndr Offline





Group: Members
Posts: 4
Joined: Sep. 2006
Posted: Nov. 10 2006,20:58 QUOTE

my kernel line in menu.lst is:
kernel /boot/linux24 root-/dev/dha2 quiet vga=normal noacpi noapm nodma noscsi nodhcp frugal 2

and in bootlocal I have the following eth0 info:
ifdown eth0
ifconfig eth0 x.x.x.x netmask 255.255.0.0
route add default gw x.x.x.x
echo search domain.com > /etc/resolv.conf
echo domain domain.com >> /etc/resolv.conf
echo name server x.x.x.x y.y.y.y z.z.z.z >> /etc/resolv.conf
ifup eth0

I also have these settings in /etc/network/interfaces
auto lo eth0
iface lo inet loopback
eth0 auto
iface eth0 inet static
 address, etc...

I did see that pump was running, I've killed it as suggested.  Will it work to also put that command in bootlocal.sh?
Back to top
Profile PM 
Winter Knight Offline





Group: Members
Posts: 146
Joined: April 2006
Posted: Nov. 10 2006,22:00 QUOTE

Quote (lxzndr @ Nov. 10 2006,12:58)
Will it work to also put that command in bootlocal.sh?

I think so. Try it. The best place to execute killall pump is before you assign a new address.

Maybe nodhcp boot option doesn't work in frugal install.
Back to top
Profile PM 
lxzndr Offline





Group: Members
Posts: 4
Joined: Sep. 2006
Posted: Nov. 13 2006,21:44 QUOTE

It held its IP address all weekend, so far so good.  and killall pump appears to work just fine in bootlocal.sh

Thanks, i think it will now work as desired since we shouldn't have any dchp renewal going on now.
Back to top
Profile PM 
4 replies since Nov. 03 2006,21:25 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: nodhcp not holding

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