Cannot get Dynamic IP address

João Rasta freakforever at
Tue May 17 17:21:45 UTC 2011


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 ();

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        UGS         0        0      0 gr_eth1      U           0        0      4 gr_eth1                        UHL         1        0      4 gr_eth1
************ INTERFACE STATISTICS ************
***** gr_eth1 *****
Ethernet Address: 00:80:7F:22:61:79
Address:    Broadcast Address:   Net
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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list