# Enabling DHCP support at runtime for WiFi / Ethernet interfaces

**URL:** <https://forums.digi.com/t/enabling-dhcp-support-at-runtime-for-wifi-ethernet-interfaces/18792>\
**Category:** Rabbit Software\
**Tags:** rcm6650w, tcpip, rabbit, dhcp\
**Created:** [October 9, 2017, 10:10pm UTC](https://forums.digi.com/t/enabling-dhcp-support-at-runtime-for-wifi-ethernet-interfaces/18792 "2017-10-09T22:10:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dilbertgod](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@dilbertgod](https://forums.digi.com/u/dilbertgod)\
**Post date:** [October 9, 2017, 10:10pm UTC](https://forums.digi.com/t/enabling-dhcp-support-at-runtime-for-wifi-ethernet-interfaces/18792/1 "2017-10-09T22:10:13Z")

</div>

I am currently designing a product using the RCM6650W, the design will feature the ability to select (at runtime) which interface to use for a network connection

The user will be able to choose either WiFi, or wired Ethernet

After reading the TCP/IP user’s manual, it appears I may be stuck having to choose a default interface at compile time, which leaves me unable to dynamically choose which interface will be capable of utilizing DHCP…

Am I missing something, or is there a way to dynamically choose which interface to enable DHCP support on at runtime?

Any help is appreciated

Thank you!

---

<div class="post-metadata">

**Author:** ![TomCollins](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/tomcollins/32/37_2.png) [@TomCollins](https://forums.digi.com/u/TomCollins)\
**Post date:** [October 10, 2017, 3:57pm UTC](https://forums.digi.com/t/enabling-dhcp-support-at-runtime-for-wifi-ethernet-interfaces/18792/2 "2017-10-10T15:57:49Z")

</div>

You can use ifconfig() for complete control of interfaces at runtime, including ifup/ifdown, static configuration vs. DHCP, support for link local addresses (169.254.x.x), and support for the “ADDP” protocol – a proprietary Digi protocol used to discover and configure network devices via UDP multicast (IIRC) packets.
