Linux Development :  Bluewater Systems Support Forum
Covers issues with Linux development, such as tool chains, packages, kernel issues etc... 
DHCP
Posted by: mylesdw ()
Date: February 16, 2010 08:01PM

Can you point me in the direction of some instructions for getting an IP by DHCP during a 'normal' BOOTD of a Snapper 9260. I just want the IP without all the other dhcp_boot stuff.

I tried adding ip=any to the boot_args but this does not quite work...

Thanks
Myles

Options: ReplyQuote
Re: DHCP
Posted by: Ryan ()
Date: February 16, 2010 08:19PM

In U-Boot you can use the 'bootp' command to assign an IP address via DHCP. For example:
Snapper> bootp
BOOTP broadcast 1
DHCP client bound to address 192.168.2.61

For Linux, you should add "ip=dhcp" to your boot parameters.

~Ryan

Options: ReplyQuote
Re: DHCP
Posted by: mylesdw ()
Date: February 17, 2010 01:36PM

Got it now thanks; seems you also need to do

>setenv autoload no

in u-boot or it goes off and tries to load an image.

Options: ReplyQuote
Re: DHCP
Posted by: mylesdw ()
Date: February 17, 2010 02:31PM

Is there a way of forcing the IP to be set by DHCP after booting?

Options: ReplyQuote
Re: DHCP
Posted by: andre ()
Date: February 17, 2010 02:37PM

If you want to get Linux to set it during boot, use the ip=dhcp or ip=any command line argument. If you want to assign it from the Linux command line well after booting, try the udhcpc program.

Andre

Options: ReplyQuote


Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
This is a moderated forum. Your message will remain hidden until it has been approved by a moderator or administrator
This forum powered by Phorum.

Applications

rs1

rs_2

rs_3

rs_4