FreeRTOS+TCP DHCP or Static in runtime

Hi,

I saw this post https://forums.freertos.org/t/freertos-tcp-how-can-i-switch-dhcp-on-off-at-runtime/2733/4 using the function FreeRTOS_SetAddressConfiguration, i add the function FreeRTOS_NetworkDown before. So, after this, when i configure network i call this functions and the network up again with new configurations.