N00b alert - static IP woes on Banana Pi

This forum is for supported devices using an ARMv7 Allwinner SoC.

N00b alert - static IP woes on Banana Pi

Postby cpcnw » Sun Aug 23, 2015 8:47 am

Hi All, first post / request for help here :)

I am using the ArchLinux_For_BananaPi_v2_0.img

Can anyone with working systemd networkd give me some pointers? On my Arch Raspi's I would just;

$this->bbcode_second_pass_code('', '
# touch /etc/netctl/eth0
# nano /etc/netctl/eth0')
populate with my LAN settings settings then;

$this->bbcode_second_pass_code('', '
# systemctl disable dhcpcd@eth0.service
# netctl enable eth0
# shutdown -r now')
I did this on the Banana and thought I was good to go however I noticed that the dhcpd service was still running following a few reboots. Since then I have read through lots of posts and tried various things to get systemd networkd to work - which I have only partially done. So far then;

$this->bbcode_second_pass_code('', '
# systemctl stop netctl@eth0.service
# systemctl stop dhcpcd.service
# systemctl stop systemd-networkd.socket
# systemctl stop systemd-networkd.service
# systemctl stop systemd-resolved
# systemctl disable netctl@eth0.service
# systemctl disable dhcpcd.service')
I then removed my eth0 file
$this->bbcode_second_pass_code('', '
# rm /etc/netctl/eth0')
I then created /etc/systemd/network/10.eth0.network - populated with my LAN settings followed by;

$this->bbcode_second_pass_code('', '
# systemctl disable systemd-networkd.socket
# systemctl disable systemd-networkd.service
# systemctl disable systemd-resolved
# systemctl enable systemd-networkd.socket
# systemctl enable systemd-networkd.service
# systemctl enable systemd-resolved
# systemctl start systemd-networkd.socket
# systemctl start systemd-networkd.service
# systemctl start systemd-resolved')
I then rebooted but still no connection. I then tried;
$this->bbcode_second_pass_code('', ' ifconfig eth0 up') which showed link up but still no ping to outside so I ran the last 3 start commands above again and I have success! However, this does not survive a reboot. :(

If any seasoned Arch user can advice on systemd networking and how to make this work at boot up that would be great!

Edit: with the exception of the hex equivalent of the ip4 address (which is not shown in the non active state)

$this->bbcode_second_pass_code('', '# networkctl status -a')
shows "State: routable (configured)" - following running ifconfig up - the command also shows the full details of my setup at /etc/systemd/network/10.eth0.network - prior to that it shows "State: off (configured)"

In summary, static ip is working as long as I run $this->bbcode_second_pass_code('', '# ifconfig eth0 up') following a reboot
cpcnw
 
Posts: 6
Joined: Sun Aug 23, 2015 8:31 am

Re: N00b alert - static IP woes on Banana Pi

Postby WarheadsSE » Sun Aug 23, 2015 5:17 pm

What kernel version?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: N00b alert - static IP woes on Banana Pi

Postby cpcnw » Sun Aug 23, 2015 6:40 pm

$this->bbcode_second_pass_code('', 'uname -a')

says 3.4.90 if that helps?
cpcnw
 
Posts: 6
Joined: Sun Aug 23, 2015 8:31 am

Re: N00b alert - static IP woes on Banana Pi

Postby WarheadsSE » Sun Aug 23, 2015 8:03 pm

That is why.

Your kernel does not have the plumbing needed to control the up/down state of the adapter by systemd-networkd

Your kernel is too old.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: N00b alert - static IP woes on Banana Pi

Postby cpcnw » Sun Aug 23, 2015 8:19 pm

I just today did $this->bbcode_second_pass_code('', 'pacman -Syu') - does that not get me the latest and greatest?
cpcnw
 
Posts: 6
Joined: Sun Aug 23, 2015 8:31 am

Re: N00b alert - static IP woes on Banana Pi

Postby cpcnw » Mon Aug 24, 2015 6:35 am

Guess that means I go back to goofing around with netctl :|

ok, will give that another try [unless someone knows better?]
cpcnw
 
Posts: 6
Joined: Sun Aug 23, 2015 8:31 am


Return to Allwinner

Who is online

Users browsing this forum: No registered users and 5 guests