Inforce Computing Forums

inforce computing forums to discuss about inforce products

How is MAC Address Created

Questions and discussions related to Inforce 6601™ development kit

by tamo2 » Mon Feb 05, 2018 1:28 pm

Hi. If I flash a filesystem to the board and type ifconfig command, I get some mac address:
enP2p1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet netmask broadcast
inet6 fe80::779f:272e:bfba:73fd prefixlen 64 scopeid 0x20<link>
ether 62:aa:21:f4:05:23 txqueuelen 1000 (Ethernet)
RX packets 5501 bytes 393108 (383.8 KiB)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 422 bytes 32797 (32.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 1 collisions 0

If I flash a different filesystem to the board, my MAC address changes. Do you know where this MAC address is stored on the filesystem or how it is generated?
Posts: 29
Joined: Tue Jun 13, 2017 4:39 pm

by ashwin » Tue Feb 06, 2018 10:27 pm

Hi Tamo,

On Android you can set the ethernet mac address in /persist/

If the file is missing. Then you have to save the following as and add it to persist.

#script:eth0 mac programming from /persist
ifconfig eth0 down
#ifconfig eth0 hw ether <hw mac address specified on the board>
#enter the mac address in XX:XX:XX:XX:XX:XX format
ifconfig eth0 hw ether 58:FC:40:DB:44:55
ifconfig eth0 up

save as and change the mac address.

use following commands to push the file to persist.

adb root
adb remount
adb push /persist/
adb shell chmod 777 /persist/
adb reboot

Hope this helps.

Best Regards,
Posts: 60
Joined: Wed Jul 01, 2015 10:07 pm



Contact Us.