0
StarSurfer

Espressobin still dhcp no static

Recommended Posts

Armbianmonitor:

Hello everybody and a nice evening.

I have two EspressoBin 1GB at home and try desperately to change the static IP.
No matter if in the armbian-config or under /etc/systemd/network/10-br0.network I just can not get it.
Does anyone else have any advice?

I've already tried Google and the forum search but any attempt fails that the IP is constantly jumping or that I no longer get a gateway.

Armbian is a great distro and nobody has gotten the kernel to work so far.

I hope you can help me.

Alone a nice evening :-)

 

LG StarSurfer

Share this post


Link to post
Share on other sites

StarSurfer, are you trying to set a static IP on the "external" interface (/etc/systemd/network/10-wan.network) or the internal interface (br0)?  Will you paste your configuration file(s) in /etc/systemd/network/ ?

 

Additionally, beware the order of the ports.  It may be that the "wan" interface is the right port instead of the left one.  In your report, it shows lan0 is UP and wan is DOWN.

Share this post


Link to post
Share on other sites
On 9/23/2019 at 10:46 PM, StarSurfer said:
I have two EspressoBin 1GB at home and try desperately to change the static IP.

No matter if in the armbian-config or under /etc/systemd/network/10-br0.network I just can not get it.
Does anyone else have any advice?

how about setting the network via the nmtui utility for setting the network-manager-config?

On the IP of the device you have to add /24 like 192.168.6.16/24, but on the other IPs (Gateway/DNS) you dont need the /24

 

armbian is normally using the netmork-manager ;)

 

Share this post


Link to post
Share on other sites
On 9/25/2019 at 5:31 PM, guidol said:

armbian is normally using the netmork-manager ;)

 

That is true - but EspressoBin is an exception - systemd-networkd is used instead:

root@ebin:~# nmtui
NetworkManager is not running.

root@ebin:~# networkctl
IDX LINK             TYPE               OPERATIONAL SETUP     
  1 lo               loopback           carrier     unmanaged 
  2 eth0             ether              degraded    configured
  3 wan              dsa                degraded    configured
  4 lan0             dsa                no-carrier  configuring
  5 lan1             dsa                no-carrier  configuring
  6 br0              bridge             routable    configured

6 links listed.

@StarSurfer The default configuration is DHCP=ipv4. So your router determines the ip address:

root@ebin:/etc/systemd/network# cat 10-br0.network
[Match]
Name=br0

[Network]
DHCP=ipv4

You may specify a static IP in 10-br0.network. According to this explanation the following should work (change the address according to your needs):

root@ebin:/etc/systemd/network# cat 10-br0.network

[Match]
Name=br0

[Network]
Address=10.1.10.9/24
Gateway=10.1.10.1
DNS=10.1.10.1
#DNS=8.8.8.8

 

 

Share this post


Link to post
Share on other sites

Hey Guys thanks for your help.

 

It was initially the right way to edit 10-br0.network. The mistake ansich was PiHole because Pi Hole made the IP always the same IP. I have now uninstalled Pi Hole and lo and behold, everything works now. The IP is now static.

That's what it looks like now.

[Match]
Name = br0

[Network]
Address = 192.168.179.23 / 24
Gateway = 192.168.179.1
DNS = 192.168.179.1
# DNS = 8.8.8.8

Thanks for your help :-)

Have a nice weekend.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0