You are not logged in.
Hi, I can't get netctl to work after migrating from netcfg. Any suggestions as to how to solve this would be greatly appreciated:
[me@arch netctl]$ sudo netctl start ethernet-static
Job for netctl@ethernet\x2dstatic.service failed. See 'systemctl status netctl@ethernet\x2dstatic.service' and 'journalctl -xn' for details.[me@arch netctl]$ sudo systemctl status netctl@ethernet\x2dstatic.service
netctl@ethernetx2dstatic.service - Networking for netctl profile ethernetx2dstatic
Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
Active: inactive (dead)
Docs: man:netctl.profile(5)[me@arch netctl]$ sudo journalctl -xn
-- Logs begin at Wed 2013-02-27 21:41:31 GMT, end at Sat 2013-04-27 11:18:54 BST. --
Apr 27 11:16:26 arch systemd[1]: netctl@ethernet\x2dstatic.service: main process exited, code=exited, status=1/FAILURE
Apr 27 11:16:26 arch systemd[1]: Failed to start A basic static ethernet connection.
-- Subject: Unit netctl@ethernet\x2dstatic.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
--
-- Unit netctl@ethernet\x2dstatic.service has failed.
--
-- The result is failed.
Apr 27 11:16:26 arch systemd[1]: Unit netctl@ethernet\x2dstatic.service entered failed state
Apr 27 11:16:26 arch sudo[1475]: pam_unix(sudo:session): session closed for user root
Apr 27 11:17:42 arch sudo[1488]: me : TTY=pts/1 ; PWD=/etc/netctl ; USER=root ; COMMAND=/usr/bin/systemctl status netctl@ethernetx2dstatic.service
Apr 27 11:17:42 arch sudo[1488]: pam_unix(sudo:session): session opened for user root by me(uid=0)
Apr 27 11:17:42 arch sudo[1488]: pam_unix(sudo:session): session closed for user root
Apr 27 11:17:45 arch slim[262]: Installing breakpad exception handler for appid(steam)/version(1364601080_client)
Apr 27 11:18:54 arch sudo[1492]: me : TTY=pts/1 ; PWD=/etc/netctl ; USER=root ; COMMAND=/usr/bin/journalctl -xn
Apr 27 11:18:54 arch sudo[1492]: pam_unix(sudo:session): session opened for user root by me(uid=0)Netctl profile details:
[me@arch netctl]$ cat ethernet-static
Description='A basic static ethernet connection'
Interface=enp3s0
Connection=ethernet
IP=static
#Address=('192.168.0.155/24' '192.168.0.156/24')
Address=('192.168.0.155/24')
#Routes=('192.168.0.0/24 via 192.168.0.2')
Gateway='192.168.0.1'
DNS=('8.8.8.8')My netcfg profile which did work for comparison:
[me@arch netctl]$ cd /etc/network.d
[me@arch network.d]$ cat ethernet-static
CONNECTION='ethernet'
DESCRIPTION='A basic static ethernet connection using iproute'
INTERFACE='enp3s0'
IP='static'
ADDR='192.168.0.155'
#ROUTES=('192.168.0.0/24 via 192.168.0.2')
GATEWAY='192.168.0.1'
DNS=('8.8.8.8')‘sudo systemctl start dhcpcd@enp3s0‘ works and gets me an active internet connection so it’s not a general networking issue.
Thanks in advance.
EDIT: unredacted
Last edited by kaprikawn (2013-04-28 08:19:48)
Offline
Are those files literal, or did you redact the IP address? I note that your gateway is a private address space address (192.../24), so there is not much point in redacting it ![]()
Having said that, I see that the GATEWAY in netcfg may have been redacted. If it really is not a private network address, then that may be the problem with the netcfg vonfiguration.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
The profile you put looks like it was imported directly from your netcfg profile without changing the case from UPPERCASE to CamelCase as per the wiki
Edit this profile with your own information and see if it works:
*snip*
This is from /etc/netctl/examples/
Edit: nevermind, you posted your netcfg profile which confused me.
Last edited by jgreen1tc (2013-04-27 17:21:08)
Offline
Thanks for the pointers, I've un-redacted my post. It's literally what's in my files now.
What could be wrong with the Gateway entry? To generate the netctl profile I copied the example and amended it rather than migrate from my netcfg one so that I would be less likely to make a mistake. The Gateway entry in my netctl profile is in the same format as the example configuration file.
Offline
Nevermind, my required IP address was 192.168.1 when it should have been 192.168.0.
Offline