Ethernet DHCP issue

if you use begin with static IP setting, DHCP will be off.

are you on Mbed Core 4.1.1?