Cannot get Dynamic IP address

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


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20110517/0a7e9472/attachment.html>


More information about the users mailing list