Ethernet resets after boot, losing my static IP

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Ethernet resets after boot, losing my static IP

Postby ajhlinuxuser » Sun Jan 19, 2014 3:23 am

Hello,

I have a default install of Arch Linux ARM from the raspberry Pi site. I followed the instructions for creating a static IP at archlinux.org, and it seemed to work.

However, on reboot, or when the ethernet cable is (accidentally) unplugged and plugged back in, I lose my static IP address.

If I log in fast enough, I can see that the static IP is set. But after 10 seconds, the network LEDs turn off, and on again, and I have lost my static IP.

Does anyone know how I can prevent this from happening?



FYI, I don't think there is a problem with the static IP config file, since I can run:
$this->bbcode_second_pass_code('', '# systemctl stop network@eth0.service
# systemctl start network@eth0.service')

Also, here are the processes running at the time I experience the failure:
$this->bbcode_second_pass_code('', '[root@alarmpi ~]# pstree
systemd-+-agetty
|-avahi-daemon---avahi-daemon
|-avahi-dnsconfd
|-crond
|-dbus-daemon
|-haveged
|-ifplugd
|-login---bash
|-rngd
|-sshd---sshd---bash---pstree
|-systemd---(sd-pam)
|-systemd-journal
|-systemd-logind
`-systemd-udevd
')
Last edited by ajhlinuxuser on Sun Jan 19, 2014 3:30 am, edited 1 time in total.
ajhlinuxuser
 
Posts: 5
Joined: Sun Jan 19, 2014 2:55 am

Re: Ethernet resets after boot, losing my static IP

Postby WarheadsSE » Sun Jan 19, 2014 3:24 am

Do you still have dhcp enabled? Or ifplugd?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Ethernet resets after boot, losing my static IP

Postby ajhlinuxuser » Fri Jan 24, 2014 11:32 pm

Yes, ifplugd is running on the default install! I only knew to look for dhcpcd, which was not running. I had no clue what ifplugd was.


Oh, and I found this: https://wiki.archlinux.org/index.php/Network_Configuration#ifplugd_for_laptops

I will disable it and see what happens.
ajhlinuxuser
 
Posts: 5
Joined: Sun Jan 19, 2014 2:55 am

Re: Ethernet resets after boot, losing my static IP

Postby pepedog » Sat Jan 25, 2014 7:59 am

Don't disable ifplugd, just make sure there is only one profile in /etc/netctl where interface=eth0
Don't confuse the file with a name of eth0 with that statement, although you could edit that file and make static

Explanation, netctl-ifplud@eth0 goes thru all profiles in that folder, looking at Interface= line, seeing if it matches eth0
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Ethernet resets after boot, losing my static IP

Postby ajhlinuxuser » Tue Jan 28, 2014 5:41 am

Hmm,

to be clear, I followed the section https://wiki.archlinux.org/index.php/Ne ... IP_address, titled Manual connection at boot using systemd, so it seems that I had better disable ifplugd anyway, since my usage of systemd makes ifplugd redundant.

In my case, I have created the following files per the wiki:
  • /etc/conf.d/network@eth0
  • /etc/systemd/system/network@.service
So I have not set up anything under /etc/netctl at all.

I can see an alternate arrangement that you are trying to explain, which does *not* use systemd at all. Sorry guys, as a newbie, I'm just doing whats in the wiki.

So I will run
$this->bbcode_second_pass_code('', 'systemctl disable netctl-ifplugd@eth0.service')
and see if that works.

If I'm at a total loss getting this to work, I'll remove the systemd files and tweak with the /etc/netctl folder. If anyone has a link to documentation on this "netctl" method, post it please, or point to the correct section of the archlinux wiki.
ajhlinuxuser
 
Posts: 5
Joined: Sun Jan 19, 2014 2:55 am

Re: Ethernet resets after boot, losing my static IP

Postby moonman » Tue Jan 28, 2014 8:41 am

Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Ethernet resets after boot, losing my static IP

Postby PeterAOBell » Sat Mar 15, 2014 7:00 am

$this->bbcode_second_pass_quote('ajhlinuxuser', 'S')o I will run
$this->bbcode_second_pass_code('', 'systemctl disable netctl-ifplugd@eth0.service')
and see if that works.


I have just encountered exactly the same problem and can confirm that the above suggestion works a treat.
PeterAOBell
 
Posts: 11
Joined: Sat Mar 15, 2014 6:49 am


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 3 guests