[ECOS] Temporary IP address assignment trick

Grant Edwards grante@visi.com
Wed Mar 19 22:54:00 GMT 2003


I've noticed that a couple embedded devices I've played with
allow you to assign an IP address temporarily using an arp
trick...

If the device starts up with no IP address, and it subsequently
receives an Ethernet frame with its MAC address, the IP stack
will adopt the IP address in that frame as its own.  Typically
one then points a telnet client or web browser at the device
and configures its IP address permanently.

The host-end sequence for this is:

 # arp -s 10.0.0.77 00:11:22:33:44:55
 # ping 10.0.0.77
 # telnet 10.0.0.77
 <configure device>

This is a very handy way to get a brand-new-out-of-the-box
embedded device up and running without requiring a DHCP server.

How hard would it be to get either of the eCos stacks to behave
like that?

-- 
Grant Edwards
grante@visi.com

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list