static ip wont work

Ask questions about Arch Linux ARM. Please search before making a new topic.

static ip wont work

Postby kingi » Sat Oct 12, 2013 6:40 am

My static netctl profile wont turn on. Here's paste of the profile and error messages. Tried googling it but didnt find any fixes that would fix my problem, ideas? edit: cant paste properly cause it contains too many urls

$this->bbcode_second_pass_quote('', '[')root@kingrasp netctl]# cat kingistat
Description='A basic static ethernet connection'
Interface=eth0
Connection=ethernet
IP=static
Address='192.168.1.30/24'
#Routes=('192.168.0.0/24 via 192.168.1.2')
Gateway='192.168.1.1'
DNS=('192.168.1.1')

## For IPv6 autoconfiguration
#IP6=stateless

## For IPv6 static address configuration
#IP6=static
#Address6=('1234:5678:9abc:def::1/64' '1234:3456::123/96')
#Routes6=('abcd::1234')
#Gateway6='1234:0:123::abcd'
[root@kingrasp netctl]# netctl start kingistat
Job for netctl@kingistat.service failed. See 'systemctl status netctl(at)kingistat.service' and 'journalctl -xn' for details.
netctl@kingistat.service - A basic static ethernet connection

Process: 313 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)

Oct 12 06:33:18 kingrasp systemd[1]: netct(at)kingistat.service: main process exited, code=exited, sta...ILURE
Oct 12 06:33:18 kingrasp systemd[1]: Failed to start A basic static ethernet connection.
Oct 12 06:33:18 kingrasp systemd[1]: Unit netctl(at)kingistat.service entered failed state.
[root@kingrasp netctl]# journalctl -xn
-- Logs begin at Thu 1970-01-01 00:00:04 UTC, end at Sat 2013-10-12 06:33:20 UTC. --
Oct 12 06:24:29 kingrasp network[293]: The interface of network profile 'kingistat' is already up
Oct 12 06:24:29 kingrasp systemd[1]: netctl(at)kingistat.service: main process exited, code=exited, status=1/FA
Oct 12 06:24:29 kingrasp systemd[1]: Failed to start A basic static ethernet connection.
-- Subject: Unit netctl@kingistat.service has failed
-- Defined-By: systemd

-- The result is failed.
Oct 12 06:24:29 kingrasp systemd[1]: Unit netctl@kingistat.service entered failed state.
Oct 12 06:33:18 kingrasp systemd[1]: Starting A basic static ethernet connection...
-- Subject: Unit netctl(at)kingistat.service has begun with start-up
-- Defined-By: systemd
-- Support:
--
-- Unit netctl@kingistat.service has begun starting up.
Oct 12 06:33:18 kingrasp systemd[1]: netctl(at)kingistat.service: main process exited, code=exited, status=1/FA
Oct 12 06:33:18 kingrasp systemd[1]: Failed to start A basic static ethernet connection.

-
-- The result is failed.
Oct 12 06:33:18 kingrasp systemd[1]: Unit netctl(at)kingistat.service entered failed state.
Oct 12 06:33:20 kingrasp network[313]: Starting network profile 'kingistat'...
Oct 12 06:33:20 kingrasp network[313]: The interface of network profile 'kingistat' is already up
kingi
 
Posts: 2
Joined: Sat Oct 12, 2013 6:31 am

Re: static ip wont work

Postby kingi » Sun Oct 13, 2013 3:00 pm

got it to work , not sure how but one part was -> systemctl disable dhcpcd@eth0.service
kingi
 
Posts: 2
Joined: Sat Oct 12, 2013 6:31 am

Re: static ip wont work

Postby mverbist » Sun Dec 22, 2013 8:48 pm

I experienced the same error.
$this->bbcode_second_pass_quote('', 'T')he interface of network profile 'eth0' is already up


The interface was being set to up by a service that started before this one : netctl-ifplugd@eth0.service

Disabling that service worked for me.
mverbist
 
Posts: 1
Joined: Sun Dec 22, 2013 8:39 pm

Re: static ip wont work

Postby glnds » Thu Feb 20, 2014 11:10 pm

By default the service netctl-ifplugd@interface.service is indeed running.
The behaviour of this service includes the following:
$this->bbcode_second_pass_quote('', 'n')etctl-ifplugd@interface.service will prefer profiles which use DHCP. To prefer a profile with a static IP, you can use AutoWired=yes

So in order to get your config working you should add the line:
$this->bbcode_second_pass_code('', 'AutoWired=yes')
to your profile.

Here's the a complete tutorial: http://blog.pixxis.be/post/77298179924/ ... arch-linux
glnds
 
Posts: 1
Joined: Thu Feb 20, 2014 11:05 pm
Top

Re: static ip wont work

Postby pepedog » Fri Feb 21, 2014 12:32 am

This is interesting
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: static ip wont work

Postby kmihelich » Fri Feb 21, 2014 3:31 am

You guys make this much harder than it has to be. Just replace /etc/netctl/eth0 with with the examples/ethernet-static file, edit the eth0 file to set the IP and all, reboot, done.

Seriously, that's it.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 2 guests