This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Temporary IP address assignment trick


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 at visi dot 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]