This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-J722S: MAC address will be changed after restart the system ?

Part Number: PROCESSOR-SDK-J722S

Hi Team , 

          On the entry EVM board,  use 9.2 SDK  , why the  MAC address  is different  everytime after poweron ?   In the folder : /letc/system/network  add the static information :

Address=192.168.0.10/24                                                                                                                                                                                                            
Netmask=255.255.255.0                                                                                                                                                                                                              
Gateway=192.168.0.1                                                                                                                                                                                                                
MACAddress=b6:e6:c4:ae:5d:72
the IP address can be set , but  mac address set not work, why?
Please give some advise , thank you.
  • hello Joey

         you can edit /etc/systemd/network/10-ether.conf to set the static MAC address

    root@j722s-evm:~#
    root@j722s-evm:~#
    root@j722s-evm:~# cat /etc/systemd/network/10-eth.network
    [Match]
    Name=eth0
    KernelCommandLine=!root=/dev/nfs
    [Network]
    DHCP=yes
    [Link]
    MACAddress=00:22:33:44:55:66
    root@j722s-evm:~#

    --------------

    root@j722s-evm:~#
    root@j722s-evm:~# ifconfig
    eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
    ether 00:22:33:44:55:66 txqueuelen 1000 (Ethernet)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
    inet 127.0.0.1 netmask 255.0.0.0
    inet6 ::1 prefixlen 128 scopeid 0x10<host>
    loop txqueuelen 1000 (Local Loopback)
    RX packets 92 bytes 7648 (7.4 KiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 92 bytes 7648 (7.4 KiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0