Jump to content

banana pi pro creates new network conf after every reboot


fux

Recommended Posts

Dear all

 

I have the problem that when I reboot my banana pi pro it always creates a new eth0 config.  Which as default has ip4 disabled hence I cant see it directly. At the moment I always access the pi via ip6 and than delete the config via nmtui.

 

My question: How can I turn the creation of a new eth0 config on reboot off?

 

ARMBIAN 5.60 stable Ubuntu 18.04.1 LTS 4.14.70-sunxi

 

Thanks

Link to comment
Share on other sites

Check the MAC address of eth0 - is it steady?

 

One of the common issues with the DesignWare MAC/GMAC on AllWinner and other SoC's that use the same IP block, is that they have a random MAC address - with IPv6, this obviously will have some challenges.

 

Check the ethaddr in uboot - you can set a value there... it's supposed to be a fixed address after first boot, but many of the DWMAC/GMAC implementations let it float...

 

 

Link to comment
Share on other sites

Thanks for your replies guy:

@Igor

fux@bananapipro:~$ cat /etc/network/interfaces
source /etc/network/interfaces.d/*
# Network is managed by Network manager
auto lo
iface lo inet loopback
dns-nameservers 192.168.1.1 8.8.8.8

fux@bananapipro:~$ cat /etc/netplan
cat: /etc/netplan: No such file or directory

fux@bananapipro:~$ /etc/networkmanager/system-connections
-bash: /etc/networkmanager/system-connections: No such file or directory

fux@bananapipro:~$ cat /etc/networkmanager/system-connections
cat: /etc/networkmanager/system-connections: No such file or directory

I just used nmtui as far I am aware.

 

@sfx2000

 

No seems to be stable. Neither deleting the newly created eth0 configs nor the reboot changes the mac address.

 

Oh and what is interesting is that it always greats the same new ip6 addres.

 

Thanks
 

Link to comment
Share on other sites

5 hours ago, fux said:

seems to be stable.


If MAC is not changing, than the problem is most likely outside of Armbian domain. Do some general investigation. 

 

ls -l /etc/netplan/* -> 01-netcfg.yaml


One of my machines:
 

Spoiler

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
    ethernets:
        ens3:
            addresses: [172.16.100.38/24]
            gateway4: 172.16.100.1
            optional: true
            nameservers:
                addresses: [8.8.8.8,8.8.4.4]
    version: 2

 


ls -l /etc/NetworkManager/system-connections is empty

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines