Static IP Setup [SOLVED]

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

Static IP Setup [SOLVED]

Postby MotoTom » Wed Nov 19, 2014 8:37 pm

After running an order version of ALARM for about 18 months because upgrading to Samba 4 broke my configuration and I didn't have the time to fix it, I'm now starting from scratch on a spare Pogoplug. My first step is to try to set up a static IP which was very easy when I first set up my system. It no longer easy ... for me. :)

To me it looked like the easiest way to proceed was to replace the contents of '/etc/systemd/network/eth0-network' with

$this->bbcode_second_pass_code('', 'Description='A basic static ethernet connection'
Connection=ethernet
Interface=eth0
IP=static
address='192.168.1.8/24'
broadcast='192.168.1.255'
gateway='192.168.1.1'
DNS=('8.8.8.8' '8.8.4.4')
')

and reboot.

No joy.

I had plug the flash drive into my Linux box and replace the modified 'eth0-network' with the original.

I also tried using the instructions for Persistent configuration on boot using systemd which just caused the system to hang requiring a hard reboot.

I also tried the instructions in the Wiki Beginners Guide (Staic IP | Using netctl).

No joy with either.

I suspect there is a step I should be doing that is not in the instruction because I should already know about if I'm this far along.

I sure would appreciate some guidance.

Many thanks.
Last edited by MotoTom on Thu Nov 20, 2014 8:32 pm, edited 1 time in total.
MotoTom
 
Posts: 27
Joined: Sun Feb 03, 2013 4:37 pm

Re: Static IP Setup

Postby pepedog » Wed Nov 19, 2014 9:04 pm

That file does match the type of config that goes with netctl.
And it should go in /etc/netctl for a start
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Static IP Setup

Postby mpadilla2 » Thu Nov 20, 2014 4:34 pm

Try this, in a chroot (assumes you are root. you can always add sudo to the beginning of each command if you prefer sudo). Note in the below it is eth0.network not eth0-network as stated in your post. Systemd-networkd uses *.network files.

$this->bbcode_second_pass_code('', 'nano /etc/systemd/network/eth0.network')

Then paste this in:
$this->bbcode_second_pass_code('', '
[Match]
Name=eth0

[Network]
Address=192.168.1.8/24
Gateway=192.168.1.1
DNS=8.8.8.8
DNS=8.8.4.4
')

You will then need to disable netcl. To find out what is enabled that is netctl related, run this:
$this->bbcode_second_pass_code('', 'systemctl list-unit-files')

Once you identify all netctl related stuff. Go through and disable all netctl related stuff. You may have more to disable than just the below:
$this->bbcode_second_pass_code('', 'systemctl disable netctl@eth0.service')

You will then need systemd-networkd enabled:
$this->bbcode_second_pass_code('', 'systemctl enable systemd-networkd')
mpadilla2
 
Posts: 44
Joined: Sat Mar 08, 2014 6:59 pm

Re: Static IP Setup

Postby MotoTom » Thu Nov 20, 2014 8:32 pm

Thanks so very much, mpadilla2.

That did it. Looks like I had already disabled all netctl services as none showed as enabled.

I've been looking everywhere for such a simple set of instructions.

Again many thanks.
MotoTom
 
Posts: 27
Joined: Sun Feb 03, 2013 4:37 pm

Re: Static IP Setup [SOLVED]

Postby mpadilla2 » Thu Nov 20, 2014 8:39 pm

You're very welcome. I'm glad I could help!
mpadilla2
 
Posts: 44
Joined: Sat Mar 08, 2014 6:59 pm

Re: Static IP Setup [SOLVED]

Postby bernieatarchlinuxarm » Sat Dec 06, 2014 1:07 am

This is my first posting in your forum. I would like to praise all folks working on archlinux|ARM
and/or answering questions in this forum. Please continue your good work!

@mpadilla2
Thanks a lot for this posting. I've fought for hours and hours with netctl and I would have never figured this one out. Appreciated very much :-)

bernie
bernieatarchlinuxarm
 
Posts: 1
Joined: Sat Dec 06, 2014 12:54 am


Return to ARMv5

Who is online

Users browsing this forum: No registered users and 5 guests