Hi Alex,
The MQX_4.2 RTCS shell example allow you to issue shell commands to initialize the Ethernet interface and then to issue a DHCP command.
Ex:
shell> ipconfig
Ethernet device 0 not yet initialized.
shell>
shell> ipconfig 0 init
Ethernet device 0 initialization successful.
shell>
shell> ipconfig
Eth# : 0
Link : on
MTU : 1500
MAC : 00:00:5e:00:00:00
IP4 : 0.0.0.0 Type: UNBOUND
IP4 Mask : 0.0.0.0
IP4 Gate : 0.0.0.0
IP4 DNS : 0.0.0.0
IP6 : DISABLED
Link status task stopped
shell>
shell> ipconfig 0 dhcp
Bind via dhcp successful.
shell>
shell> ipconfig
Eth# : 0
Link : on
MTU : 1500
MAC : 00:00:5e:00:00:00
IP4 : 10.0.1.198 Type: DHCPNOAUTO
IP4 Mask : 255.255.255.0
IP4 Gate : 10.0.1.1
IP4 DNS : 10.0.1.1
IP6 : DISABLED
Link status task stopped
shell>
EDITed
I also updated the web_hvac for the TWR-K70F120M demo rtcs.c source and hvac.h header files in MQX_4.2 to enable checking for Ethernet cable attached, and then doing DHCP.
Those file are attached.
Shell (build: Jun 3 2015)
Copyright (c) 2013 Freescale Semiconductor;
shell>
shell>
Waiting for Ethernet cable plug in ... Cable connected
DHCP bind ... Successful!
shell>
Regards,
David