Hi Smitha,

actually it should work as normal

On 12/30/2011 1:51 PM, smitha.va...@wipro.com wrote:
Its constant. Am not able to change this mac -address in linux once the target 
is up with LINUX.
How do I change the MAC address.

actually it should work as normal:
ifconfig ethX down
ifconfig ethX hw ether 00:11:22:33:44:55
ifconfig ethX up

  If different targets boards are connected on the network then every board 
will have the same MAC address as  the .dtb file is the same. How to go about 
this problem?

Depends on your setup: normally the real MAC is stored on some onboard configuration space (eeprom or flash). Afterwards there are multiple ways you could work aroun the problem: most elegant: make your bootloader replace the fake MAC with the real one within the dtb. Most simple one: have a startup script that reads the real MAC and does the ifconfig magic.

Regards,

Lorenz
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to