You are not logged in.
I'm trying to switch from netcfg to netctl. Since the network won't come up, it would be difficult to post actual logs so I'm typing all this in.
/etc/netctl/mynet looks like:
Description='My net'
Interface=enp1s0
Connection=ethernet
IP=static
Address=('192.168.1.102/24')
When I try to start it, I get from systemctl status netctl@mynet.service:
...
... network[1877]: Starting network profile 'mynet' ...
... network[1877]: No connection on interface 'enp1s0'
and then some failed/exited messages.
Sorry that's not much to go on, but perhaps someone can point me in the right direction.
Offline
What's the output of 'ip link'
You sure you using the correct interface name?
bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
Hopefully this is enough to answer your question without typing everything:
1: lo: <LOOPBACK,...
2: wlp2s0: <BROADCAST,...
3: enp1s0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
link/ether <<MAC addr>> brd <<all ff's>>
The computer I'm typing this on has an almost identical config, just different iface and IP address. I've stared at it quite a bit and all quotes and parentheses match.
Offline
Did you take a look at the directory full of examples in /etc/netctl (aptly named "examples")? It would seem that you have a good start to your configuration, but that it is not complete. You are missing a couple key pieces of information there.
Offline
Hopefully this is enough to answer your question without typing everything:
1: lo: <LOOPBACK,... 2: wlp2s0: <BROADCAST,... 3: enp1s0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000 link/ether <<MAC addr>> brd <<all ff's>>
The computer I'm typing this on has an almost identical config, just different iface and IP address. I've stared at it quite a bit and all quotes and parentheses match.
Sorry I didn't realize you couldn't copy and paste I just wanted to check if you were using the correct interface name
bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
Yes, I did. Ini fact, I copied ethernet-static and made the necessary changes. The only things I see missing are Gateway and DNS but surely they aren't required for a local network. The computer I'm trying to get working is my normal gateway so anything I put in there would be bogus. But, for the record, plugging 192.168.1.1 for them as per ethernet-static gives the same result.
Offline
Heh, it just dawned on me that I could use the modem even if the network is down. Just in case someone can see a typo I'm missing, here's the actual config without the commented lines:
Description='My net'
Interface=enp1s0
Connection=ethernet
IP=static
Address=('192.168.1.102/24')
#Routes=('192.168.0.0/24 via 192.168.1.2')
Gateway='192.168.1.1'
DNS=('192.168.1.1')
Results of 'netctl start mynet ; systemctl status netctl@mynet.service:
netctl@mynet.service - My net
Loaded: loaded (/etc/systemd/system/netctl@mynet.service; enabled)
Active: failed (Result: exit-codesder) since Tue 2013-07-02 23:33:03 EAT; 8min ago
Docs: man:netctl.profile(5)
Process: 6726 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)
Jul 02 23:32:58 chanan002 network[6726]: Starting network profile 'mynet'...
Jul 02 23:33:03 chanan002 network[6726]: No connection on interface 'enp1s0'
Jul 02 23:33:03 chanan002 systemd[1]: netctl@mynet.service: main process exited, code=exited, status=1/FAILURE
Jul 02 23:33:03 chanan002 systemd[1]: Failed to start My net.
Jul 02 23:33:03 chanan002 systemd[1]: Unit netctl@mynet.service entered failed state.
Finally, since the wiki mentions possible conflicts, here's the output from 'systemctl list-units'. Hopefully there's nothing confidential in there.
UNIT LOAD ACTIVE SUB DESCRIPTION
proc-sys...misc.automount loaded active waiting Arbitrary Executable File Formats File System Automount Point
sys-devi...d-card0.device loaded active plugged 5 Series/3400 Series Chipset High Definition Audio
sys-devi...-enp1s0.device loaded active plugged NetLink BCM57780 Gigabit Ethernet PCIe
sys-devi...-wlp2s0.device loaded active plugged AR9485 Wireless Network Adapter
sys-devi...\x2d1.2.device loaded active plugged MFC-7420
sys-devi...ttyUSB0.device loaded active plugged E180v
sys-devi...9u1u3i1.device loaded active plugged E180v
sys-devi...ttyUSB1.device loaded active plugged E180v
sys-devi...ttyUSB2.device loaded active plugged E180v
sys-devi...ock-sr1.device loaded active plugged Mass_Storage
sys-devi...ock-sdb.device loaded active plugged SD_Storage
sys-devi...da-sda1.device loaded active plugged WDC_WD3200BPVT-22JJ5T0
sys-devi...da-sda2.device loaded active plugged WDC_WD3200BPVT-22JJ5T0
sys-devi...ock-sda.device loaded active plugged WDC_WD3200BPVT-22JJ5T0
sys-devi...ock-sr0.device loaded active plugged HL-DT-ST_DVDRAM_GT51N
sys-devi...y-ttyS0.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS0
sys-devi...y-ttyS1.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS1
sys-devi...y-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2
sys-devi...y-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3
sys-devi...et-ppp0.device loaded active plugged /sys/devices/virtual/net/ppp0
sys-modu...onfigfs.device loaded active plugged /sys/module/configfs
sys-subs...-enp1s0.device loaded active plugged NetLink BCM57780 Gigabit Ethernet PCIe
sys-subs...es-ppp0.device loaded active plugged /sys/subsystem/net/devices/ppp0
sys-subs...-wlp2s0.device loaded active plugged AR9485 Wireless Network Adapter
sys-subs...9u1u3i1.device loaded active plugged E180v
-.mount loaded active mounted /
dev-hugepages.mount loaded active mounted Huge Pages File System
dev-mqueue.mount loaded active mounted POSIX Message Queue File System
sys-kernel-config.mount loaded active mounted Configuration File System
sys-kernel-debug.mount loaded active mounted Debug File System
tmp.mount loaded active mounted Temporary Directory
cups.path loaded active running CUPS Printer Service Spool
systemd-...d-console.path loaded active waiting Dispatch Password Requests to Console Directory Watch
systemd-...word-wall.path loaded active waiting Forward Password Requests to Wall Directory Watch
avahi-daemon.service loaded active running Avahi mDNS/DNS-SD Stack
colord.service loaded active running Manage, Install and Generate Color Profiles
cronie.service loaded active running Periodic Command Scheduler
cups.service loaded active running CUPS Printing Service
dbus.service loaded active running D-Bus System Message Bus
dictd.service loaded active running Dictd Dictionary Server Daemon
getty@tty1.service loaded active running Getty on tty1
iptables.service loaded active exited Packet Filtering Framework
netctl@mynet.service loaded failed failed My net
pacserve.service loaded activating auto-restart Pacserve
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running Login Service
systemd-...s-load.service loaded active exited Load Kernel Modulessystemd-...unt-fs.service loaded active exited Remount Root and Kernel File Systems
systemd-sysctl.service loaded active exited Apply Kernel Variables
systemd-...-setup.service loaded active exited Recreate Volatile Files and Directories
systemd-...rigger.service loaded active exited udev Coldplug all Devices
systemd-udevd.service loaded active running udev Kernel Device Manager
systemd-...e-utmp.service loaded active exited Update UTMP about System Reboot/Shutdown
systemd-...ssions.service loaded active exited Permit User Sessions
systemd-...-setup.service loaded active exited Setup Virtual Console
avahi-daemon.socket loaded active listening Avahi mDNS/DNS-SD Stack Activation Socket
cups.socket loaded active listening CUPS Printing Service Sockets
dbus.socket loaded active running D-Bus System Message Bus Socket
dmeventd.socket loaded active listening Device-mapper event daemon FIFOs
lvmetad.socket loaded active listening LVM2 metadata daemon socket
systemd-initctl.socket loaded active listening /dev/initctl Compatibility Named Pipe
systemd-journald.socket loaded active running Journal Socket
systemd-shutdownd.socket loaded active listening Delayed Shutdown Socket
systemd-...control.socket loaded active listening udev Control Socket
systemd-...-kernel.socket loaded active running udev Kernel Socket
basic.target loaded active active Basic System
cryptsetup.target loaded active active Encrypted Volumes
getty.target loaded active active Login Prompts
graphical.target loaded active active Graphical Interface
local-fs-pre.target loaded active active Local File Systems (Pre)
local-fs.target loaded active active Local File Systems
multi-user.target loaded active active Multi-User System
network.target loaded active active Network
paths.target loaded active active Paths
printer.target loaded active active Printer
remote-fs.target loaded active active Remote File Systems
sockets.target loaded active active Sockets
sound.target loaded active active Sound Card
swap.target loaded active active Swap
sysinit.target loaded active active System Initialization
timers.target loaded active active Timers
systemd-...es-clean.timer loaded active waiting Daily Cleanup of Temporary Directories
As you can see, it's late here and at my age, I turn into a pumpkin at midnight, so I'm off. Any suggestions would be much appreciated.
Offline
This morning, I tried reverting to netcfg and it also is saying "No connection." I just noticed that the light for that port on the network switch isn't on so this may be a hardware or driver problem. That it would fail while changing to netctl seems odd, though.
Offline
It might just be inactive. There are a couple things that can do this. One is via 'ip' (see the wiki), and there is also a functionality called rfkill (again, see the wiki).
It might also be a good step to see if the device is being recognized. Use lspci to see if it shows up (or lsusb if it is a usb device).
Last edited by WonderWoofy (2013-07-03 06:01:28)
Offline
Thanks! The device shows up in lspci:
01:00.0 Ethernet controller: Broadcom Corporation NetLink BCM57780 Gigabit Ethernet PCIe (rev 01)
The drivers appear in lsmod (tg3, broadcom).
I disabled all systemd network stuff and did a system upgrade (pacman -Syu). When I reboot the link light on the switch is on. When I entered "netcfg enp1s0-config" which I've been using for months, the link light goes off and I get the "No connection" message. I removed netcfg and reinstalled netctl, rebooted, and the link light was back on again. When I entered "netctl start mynet" the link light goes off and I get the "No connection on interface 'enp1s0'" message. I'm baffled. I'll look through the wiki pages you mentioned.
Offline
Ok, I can set up the connection manually just fine with ip.
ip link set enp1s0 up ; ip addr add 192.168.1.102/24 dev enp1s0
so I guess I'll just start the network manually for now.
Offline
Why is your ethernet-static
Address=('192.168.1.102/24')
#Routes=('192.168.0.0/24 via 192.168.1.2')
not the same as
ip link set enp1s0 up ; ip addr add 192.168.1.102/24 dev enp1s0
Should the ip address in #Routes not be 192.168.1.102?
Offline
Routes is commented out so it doesn't matter what is there. I just need the machine on the LAN for now.
Offline
Edit: wrong information, didn't work
Edit 2: could you try it like this on startup:
sytemctl disable netctl@mynet.service
ip link set enp1s0 up
systemctl enable netctl@mynetservice
**if needed**
systemctl start netctl@mynetservice
Last edited by henk (2013-07-04 04:32:49)
Offline
Then I get "The interface of network profile 'mynet' is already up." status=1/FAILURE
Offline
You could give netctl together with ifplugd a try:
https://wiki.archlinux.org/index.php/Ne … e_Profiles
I've used ifplugd from the moment I started using Arch, and to be honest,
I never had a problem so far.
Offline
I have started getting this very same problem on my machine wherein netctl just cannot start up the ethernet connection whereas manually setting it up works.
The only thing I did was move the cable modem to a different room and pulled a longer ethernet wire through an ethernet-extender to the computer instead of a small ethernet wire before.
I had the profile name with a hyphen before and did not have a problem before (even though the service name showed up as 'ethernet\x2ddhcp'. However I found a couple of threads which mentioned that the hyphen may be the problem so I changed the profile namd to 'wired' and disabled the older systemd file and created a new one for the new 'wired' profile, but it still doesn't work.
I was hoping to use netctl, because I use it for wireless management on another machine...so I thought I would use the same on my desktop too.
I suppose if this doesn't work then I could just enable the dhcpcd.service or the dhcpcd@.service, but I was curious as to why it stopped working.
A few threads I found on this :
https://bbs.archlinux.org/viewtopic.php?pid=1328472
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
@Inxsible, are you using netctl@wired.service or are you using the netctl-ifplug@.service? I ask because in my mind, if you are using the regular netctl@.service you are just running far more scripting to achieve the exact same thing as the dhcpcd@.service. Some people who wish to have a faster boot time use netctl-ifplugd@.service so that it "completes" as soon as it loads the profiles. But the regular netctl@.service actually saits for an address just like dhcpcd@.service does. So there is really no advantage the way I see it, and in fact it might be worse since you are just greatly increasing the potenial for fail points in the process.
Edit: Oh, and sorry this doesn't help you solve your actual problem at all. Its just my two cents... maybe just one cent.
Last edited by WonderWoofy (2014-01-19 15:42:43)
Offline
meh....this machine of mine is always on as it is a server for my media as well as it being my dev machine...so my local webserver is also always up. So I am not concerned which way is "faster" as I rarely reboot the machine
I am not using netctl-ifplugd. In fact I dont even have ifplugd installed
I might just end up using dhcpcd@.service, well because it just works. But the curiousness in me still wants to find out as to why netctl stopped working
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Im not sure if you were having the same problem as me, or if you have solved it. But what worked for me was setting
SkipNoCarrier=yes
TimeoutCarrier=10
Offline