AnsweredAssumed Answered

MAC and IP addresses change on every reboot

Question asked by Shiva Pandit on Jul 24, 2017
Latest reply on Aug 7, 2017 by Shiva Pandit

I have an LS2088ardb and running the bits (SDK-v2.0-1703) from fsl-image-core installed on a SATA disk (not ramdisk). I have added following lines to /etc/network/interfaces:

auto ni0
iface ni0 inet dhcp

However, on every reboot the network interface gets a new ip address. I also noticed that the HWaddr changes on every reboot.

After first reboot:

ni0 Link encap:Ethernet HWaddr 4e:70:bb:65:ab:8c
inet addr:172.29.10.71 Bcast:172.29.10.255 Mask:255.255.255.0
inet6 addr: fe80::4c70:bbff:fe65:ab8c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10701 errors:0 dropped:40 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1668361 (1.5 MiB) TX bytes:1332 (1.3 KiB)

 

After 2nd reboot:

ni0 Link encap:Ethernet HWaddr 9a:9f:2c:40:51:f0
inet addr:172.29.10.38 Bcast:172.29.10.255 Mask:255.255.255.0
inet6 addr: fe80::989f:2cff:fe40:51f0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:931 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:160286 (156.5 KiB) TX bytes:1332 (1.3 KiB)

 

 

Any idea why this is happening and how to prevent it?

 

thanks,

-Shiva 

Outcomes