You are not logged in.

#1 2013-07-02 19:55:36

Myshkin
Member
From: Tanzania
Registered: 2012-10-11
Posts: 37

netctl problem - No connection on interface 'enp1s0'

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

#2 2013-07-02 20:06:59

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

Re: netctl problem - No connection on interface 'enp1s0'

What's the output of 'ip link'

You sure you using the correct interface name?


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

#3 2013-07-02 20:13:10

Myshkin
Member
From: Tanzania
Registered: 2012-10-11
Posts: 37

Re: netctl problem - No connection on interface 'enp1s0'

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

#4 2013-07-02 20:16:49

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: netctl problem - No connection on interface 'enp1s0'

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

#5 2013-07-02 20:25:26

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

Re: netctl problem - No connection on interface 'enp1s0'

Myshkin wrote:

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 smile I just wanted to check if you were using the correct interface name


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

#6 2013-07-02 20:29:11

Myshkin
Member
From: Tanzania
Registered: 2012-10-11
Posts: 37

Re: netctl problem - No connection on interface 'enp1s0'

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

#7 2013-07-02 21:00:41

Myshkin
Member
From: Tanzania
Registered: 2012-10-11
Posts: 37

Re: netctl problem - No connection on interface 'enp1s0'

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

#8 2013-07-03 05:43:47

Myshkin
Member
From: Tanzania
Registered: 2012-10-11
Posts: 37

Re: netctl problem - No connection on interface 'enp1s0'

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

#9 2013-07-03 06:00:44

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: netctl problem - No connection on interface 'enp1s0'

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

#10 2013-07-03 06:35:41

Myshkin
Member
From: Tanzania
Registered: 2012-10-11
Posts: 37

Re: netctl problem - No connection on interface 'enp1s0'

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

#11 2013-07-03 07:22:27

Myshkin
Member
From: Tanzania
Registered: 2012-10-11
Posts: 37

Re: netctl problem - No connection on interface 'enp1s0'

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

#12 2013-07-03 17:37:20

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 331

Re: netctl problem - No connection on interface 'enp1s0'

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

#13 2013-07-03 19:48:50

Myshkin
Member
From: Tanzania
Registered: 2012-10-11
Posts: 37

Re: netctl problem - No connection on interface 'enp1s0'

Routes is commented out so it doesn't matter what is there.  I just need the machine on the LAN for now.

Offline

#14 2013-07-04 04:16:04

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 331

Re: netctl problem - No connection on interface 'enp1s0'

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

#15 2013-07-04 08:39:02

Myshkin
Member
From: Tanzania
Registered: 2012-10-11
Posts: 37

Re: netctl problem - No connection on interface 'enp1s0'

Then I get "The interface of network profile 'mynet' is already up." status=1/FAILURE

Offline

#16 2013-07-04 11:56:55

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 331

Re: netctl problem - No connection on interface 'enp1s0'

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

#17 2014-01-19 10:13:55

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,071

Re: netctl problem - No connection on interface 'enp1s0'

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

https://bbs.archlinux.org/viewtopic.php … 3#p1328423

https://bbs.archlinux.org/viewtopic.php?pid=1309378


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#18 2014-01-19 15:41:56

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: netctl problem - No connection on interface 'enp1s0'

@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

#19 2014-01-19 16:58:58

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,071

Re: netctl problem - No connection on interface 'enp1s0'

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


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#20 2014-10-31 18:08:25

t11230
Member
Registered: 2014-10-31
Posts: 1

Re: netctl problem - No connection on interface 'enp1s0'

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

Board footer

Powered by FluxBB