You can configure the network settings for the Arduino® Ethernet Shield on the Configuration Parameters dialog box. To do so, select Ethernet Shield properties.
To configure the network settings for the Arduino Ethernet Shield:
Go to Configuration Parameters > Hardware Implementation > Ethernet shield properties.
The Arduino board by default gets its IP address through DHCP. Alternatively, you can assign a static IP address to the board by the selecting the Use static IP address and disable DHCP check box and specifying the IP address. For the default mode, make sure that the network to which your hardware board connects, supports DHCP for IP address assignment.
The IP address assignment mode that you select holds good also for the External mode over TCP/IP.
When your model is deployed to the hardware, you can view the DHCP assigned IP address in the diagnostic viewer below the memory usage information. Alternatively, a MATLAB base workspace variable with the name <modelname _IPaddress> is created with the value of the IP address.
When you specify the Ethernet IP address, follow these guidelines:
IP address must be in the 4 octet format. For example, 192.168.0.20.
When connected to a computer, the IP address of the Arduino Ethernet Shield and the IP address of the computer must be in the same subnet so they can communicate with each other.
However, make sure they are different.
When connected to a router, the IP address must be in the valid range of the supported IP addresses and must not be in the filtered list for that router.
Specify the MAC (Media Access Control) address, the physical network address for the Arduino Ethernet Shield in MAC address.
When you specify the Ethernet MAC address, follow these guidelines:
MAC address must be in the 6 octet format. For example, DE:AD:BE:EF:FE:ED
If the Arduino hardware is connected to a router, the MAC address must not be in the filtered list for that router.
DHCP is not supported in External mode for Arduino Leonardo, Arduino Yun boards due to memory constraints.