jiapei100 Posted February 3, 2018 Posted February 3, 2018 (edited) Hi, I met another weird issue: I tried to setup a static IP address for my NanoPi NEO, which should actually bundle the NanoPI NEO's GigE MAC address and the static IP. Whenever I reboot the NanoPI NEO, its GigE MAC address changes, and an random IP address is automatically allocated, via DHCP. I mean, the previous MAC address did bundle to the static IP address that I allocated. However, there always exists a 2nd HOST name NanoPINEO which has a NEW MAC address and is allocated to a NEW IP address automatically. I'm not sure if this is an issue of the latest kernel I've just built? Or it is an issue of the FriendlyARM BSP for AllWinner H3 ? I posted the question on armbiam, FriendlyARM and AllWinner H3. About the current NanoPiNEO (I'm still able to ssh into the random allocated IP address): Welcome to ARMBIAN 5.38 stable Ubuntu 16.04.3 LTS 4.14.16-sunxi System load: 0.10 0.03 0.01 Up time: 2:53 hours Memory usage: 11 % of 240MB IP: 192.168.0.221 CPU temp: 40°C Usage of /: 16% of 15G Last login: Sat Feb 3 10:16:26 2018 from 192.168.0.10 jiapei@nanopineo:~$ uname -a Linux nanopineo 4.14.16-sunxi #1 SMP Thu Feb 1 14:17:29 CST 2018 armv7l armv7l armv7l GNU/Linux jiapei@nanopineo:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial jiapei@nanopineo:~$ ifconfig eth0 Link encap:Ethernet HWaddr 7e:f0:16:00:3c:a7 (**this MAC address changes**) inet addr:192.168.0.221 (this IP address changes randomly as well) Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::ad9e:7328:d3ae:8681/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9133 errors:0 dropped:0 overruns:0 frame:0 TX packets:2356 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3621111 (3.6 MB) TX bytes:194164 (194.1 KB) Interrupt:33 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:44 errors:0 dropped:0 overruns:0 frame:0 TX packets:44 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4043 (4.0 KB) TX bytes:4043 (4.0 KB) jiapei@nanopineo:~$ Edited February 3, 2018 by jiapei100
Nick Posted February 3, 2018 Posted February 3, 2018 I believe that the various PI boards do choose a random MAC address most / all of the time. If it helps you can specify a MAC address in the /etc/interfaces file Something like this should do it: # Network interfaces allow-hotplug eth0 iface eth0 inet dhcp hwaddress ether 08:00:00:00:00:01 2
jiapei100 Posted February 3, 2018 Author Posted February 3, 2018 Thank you very much... Problem solved... Cheers Pei
Recommended Posts