Cannot get Dynamic IP address
Joel Sherrill
joel.sherrill at OARcorp.com
Tue May 17 22:15:22 UTC 2011
On 05/17/2011 05:12 PM, Eric Norum wrote:
> There's not enough information here to really determine the problem.
> What do your application's network configuration structure initializers look like? Are you sure that you've set them up to use DHCP to set the address dynamically?
>
I would suggest looking at the logs on the DHCP server.
You might find that you have a lab DHCP server and a building
DHCP server and things are not happening like you think.
--joel
> On May 17, 2011, at 10:21 AM, João Rasta wrote:
>
>> Hi,
>>
>> I have used rtems_bsdnet_initialize_network() to initialize the networking stack with success in an ad-hoc connection. However now i'm connecting the RTEMS system to a router, from where it should get a dynamic IP. However, when I do:
>>
>> rtems_bsdnet_initialize_network ();
>> rtems_bsdnet_show_inet_routes();
>> rtems_bsdnet_show_if_stats();
>>
>> The stats allways show it recognizes the same gateway IP and allways attributes the same fixed IP:
>>
>>
>> greth: driver attached
>> **** PHY ****
>> Vendor: 5043 Device: c Revision: 2
>> Current Operating Mode: 100 Mbit Full Duplex
>> Autonegotiation Time: 1668ms
>> Destination Gateway/Mask/Hw Flags Refs Use Expire Interface
>> default 192.168.0.1 UGS 0 0 0 gr_eth1
>> 192.168.0.0 255.255.255.0 U 0 0 4 gr_eth1
>> 192.168.0.1 UHL 1 0 4 gr_eth1
>> ************ INTERFACE STATISTICS ************
>> ***** gr_eth1 *****
>> Ethernet Address: 00:80:7F:22:61:79
>> Address:192.168.0.67 Broadcast Address:192.168.0.255 Net mask:255.255.255.0
>> Flags: Up Broadcast Running Simplex
>> Send queue limit:50 length:0 Dropped:0
>> Rx Interrupts:0 Rx Packets:0 Length:0 Non-octet:0
>> Bad CRC:0 Overrun:0 Tx Interrupts:0 Maximal Frags:1
>>
>>
>> After the Autonegotiation i would expect it to return an IP such as 10.101.etc. Also the gateway should be 10.101.etc. What am I missing?
>>
>>
>> Best,
>> JM _______________________________________________
>> rtems-users mailing list
>> rtems-users at rtems.org
>> http://www.rtems.org/mailman/listinfo/rtems-users
--
Joel Sherrill, Ph.D. Director of Research& Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list