Type: Answers

Area: Embedded

IP Product: Other

Why am I unable to connect my Nios board over DHCP to the local DHCP Server?


In order to connect the Nios board with a DHCP server, the ne_plugs_flag_ethernet_broadcast flag should be set in plugs_dhcp.c (r_dhcp_new):

// |
// | create our UDP plug
// |

result = nr_plugs_create
ne_plugs_flag_ip_all | ne_plugs_flag_ethernet_broadcast
//+ ne_plugs_flag_debug_rx

The ne_plugs_flag_ethernet_broadcast flag is not set causing the ethernet MAC to ignore the broadcast messages (MAC ADDRESS:FF-FF-FF-FF-FF-FF). Setting this flag should enable a proper connection to a DHCP server.