Not a question this time: just some info on how to do what the forum topic title says.
I have a custom application running on Xilinx-xlnx linux.
It boots from the micro SD card and there is an "init.sh" file on that to start my application etc...
For testing I needed multiple MicroZed boards with different MAC and IP addresses.
to change the MAC addresses just add these three lines to the "init.sh" file:
ifconfig eth0 down
ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx
ifconfig eth0 up
"xx:xx:xx:xx:xx:xx" being the MAC address you need.
Changing the IP address is even simpler this single line will do it:
ifconfig eth0 X.X.X.X netmask NM.NM.NM.NM
X.X.X.X and NM.NM.NM.NM being the desired IP address and netmask.
All in all nothing new or spectacular about any of it but it may come in handy when grouped together like this.