Hi,<br><br>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:<br><br> rtems_bsdnet_initialize_network ();<br> rtems_bsdnet_show_inet_routes();<br> rtems_bsdnet_show_if_stats();<br><br>The stats allways show it recognizes the same gateway IP and allways attributes the same fixed IP:<br>
<br><br>greth: driver attached<br>**** PHY ****<br>Vendor: 5043 Device: c Revision: 2<br>Current Operating Mode: 100 Mbit Full Duplex<br>Autonegotiation Time: 1668ms<br>Destination Gateway/Mask/Hw Flags Refs Use Expire Interface<br>
default 192.168.0.1 UGS 0 0 0 gr_eth1<br>192.168.0.0 255.255.255.0 U 0 0 4 gr_eth1<br>192.168.0.1 UHL 1 0 4 gr_eth1<br>
************ INTERFACE STATISTICS ************<br>***** gr_eth1 *****<br>Ethernet Address: 00:80:7F:22:61:79<br>Address:192.168.0.67 Broadcast Address:192.168.0.255 Net mask:255.255.255.0<br>Flags: Up Broadcast Running Simplex<br>
Send queue limit:50 length:0 Dropped:0<br> Rx Interrupts:0 Rx Packets:0 Length:0 Non-octet:0<br> Bad CRC:0 Overrun:0 Tx Interrupts:0 Maximal Frags:1<br>
<br><br>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?<br><br><br>Best,<br>JM