Static IP Not Working After System Update

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

Static IP Not Working After System Update

Postby haroldjclements » Tue Jan 27, 2015 12:11 pm

Hello forum,

I have just did a full system update to a fresh install of Arch on the Raspberry Pi. After adding rw at the front of cmdline.txt to get my system out of read-only mode I have another issue. My static IP (using ethernet) now not working and I am not too sure how to get it back. I have tried disabling dhcpcd@eth0 and issuing a netctl start / enable (I have checked my /etc/netctl/eth0 config file). However, this has not worked. I have also noticed that my UK keyboard setting have also been wiped out.

Any idea's of what is causing the lack of network / how to get it back?

Kind Regards,
Harold Clements
haroldjclements
 
Posts: 15
Joined: Sun Jan 25, 2015 5:33 pm

Re: Static IP Not Working After System Update

Postby pepedog » Tue Jan 27, 2015 1:57 pm

Harold, I don't know
dhcpcd@eth0 should never have been there, systemctl disable dhcpcd@eth0

The only thing, if your file in /etc/netctl is right is systemctl enable netctl-auto@eth0
That eth0 does not refer to filename but file(s) where Interface=eth0
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Static IP Not Working After System Update

Postby haroldjclements » Tue Jan 27, 2015 4:35 pm

I will have to try your suggestion in a couple of hours when I get home.

Yes, It was systemctl disable dhcpcd@eth0 that I issued. However, that was more our of desperation that anything else.

What I don't understand is that it was all working fine until I did the full system update. After this update, the OS was left read-only - I was wondering if this had anything to do with it (as in, if I needed to edit the cmdline.txt to fix the read-only issue, what else has this update trashed?). On that note, I did notice that my UK keyboard has been changed to US!

Kind Regards,
Harold Clements
haroldjclements
 
Posts: 15
Joined: Sun Jan 25, 2015 5:33 pm

Re: Static IP Not Working After System Update

Postby pepedog » Tue Jan 27, 2015 7:06 pm

Have you fixed the rw issue?
Simply put rw just before rootwait in cmdline.txt
All other arm devices I have encountered have needed this in the bootargs, rpi this a new thing
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Static IP Not Working After System Update

Postby haroldjclements » Tue Jan 27, 2015 7:22 pm

Yes, I have fixed the read-only issue (thanking you for the solution).

The systemctl enable netctl-auto@eth0 command created another link, but after a reboot and a start for good measure the problem still exists.

Below is the output from ip addr if that helps?

$this->bbcode_second_pass_code('', '1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: ifb0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 32
link/ether 7a:f0:2f:bd:39:c4 brd ff:ff:ff:ff:ff:ff
3: ifb1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 32
link/ether 46:f7:d2:13:77:96 brd ff:ff:ff:ff:ff:ff
4: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state DORMANT group default qlen 1000
link/ether b8:27:eb:20:8d:c0 brd ff:ff:ff:ff:ff:ff
')

Thanks once more,
Harold Clements
haroldjclements
 
Posts: 15
Joined: Sun Jan 25, 2015 5:33 pm

[SOLVED] Re: Static IP Not Working After System Update

Postby haroldjclements » Tue Jan 27, 2015 8:16 pm

Woohoo...

Thanks to the following thread (very last post), I have sorted the issue. However, I am not 100% sure what I have actually done! http://www.raspberrypi.org/forums/viewtopic.php?p=414426#p414426

I will outline the basics:

systemctl stop netctl-ifplugd@eth0
systemctl disable netctl-ifplugd@eth0
netctl stop-all
netctl disable eth0
nano /etc/netctl/eth0
Removed the brackets from around the Address field: Address = '192.168.1.10/24''
Add brackets around the Gateway filed: Gateway=('192.168.1.1')
systemctl start netctl@eth0
At this command I get an error.
netctl start eth0
netctl enable eth0
Reboot

$this->bbcode_second_pass_code('', '4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether b8:27:eb:20:8d:c0 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.10/24 brd 192.168.1.255 scope global eth0
valid_lft forever preferred_lft forever
')

Thank you once more for your help, it was very much appreciated
Harold Clements
Last edited by haroldjclements on Tue Jan 27, 2015 10:56 pm, edited 3 times in total.
haroldjclements
 
Posts: 15
Joined: Sun Jan 25, 2015 5:33 pm

Re: Static IP Not Working After System Update

Postby pepedog » Tue Jan 27, 2015 8:40 pm

Whoops, I put netctl-auto@eth0, I get them two mixed up.
Sorry
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Static IP Not Working After System Update

Postby haroldjclements » Tue Jan 27, 2015 9:48 pm

No need to apologise, I am just grateful for the help...
haroldjclements
 
Posts: 15
Joined: Sun Jan 25, 2015 5:33 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 42 guests