This application demonstrates the use of a DHCP client. The terminal- window should print on success:
DSP IP-address before initializing: 0.0.0.0 Link status changed: Linked at 100Mbit full duplex assigned DSP IP-address:192.168.168.123 success DHCP demo running on address 192.168.168.123 MAC address: 02-00-c1-31-00-34 IP address: 192.168.168.123 Host name: mydemo Domain name: dsignt.net DNS Server: 192.168.168.1 Gateway: 192.168.168.1 Subnetmask: 255.255.255.0 now ping the dsp: >ping 192.168.168.123 or >ping mydemo
The real assigned IP address depends on your DHCP configuration. If the DSP hangs for a while after the first line, your DHCP configuration may be wrong or no DHCP-server is reachable. In this case after about 20-30 seconds (and a few retries) a link-local address is assigned and a warning should appear on the screen:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! warning: no DHCP server available !!! !!! assigned IP address is a link-local address !!! !!! make sure your host is in the same local !!! !!! subnet: 169.254.x.x !!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!