You are not logged in.
I bought an external usb ethernet adaptor for my Dell XPS13
It is recognized by the system and I can manually get it up with ip link:
λ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
link/ether 7c:7a:91:27:73:ba brd ff:ff:ff:ff:ff:ff
3: enp0s20u2u1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:23:55:8c:31:60 brd ff:ff:ff:ff:ff:ffAt this point I don't have an IP for the interface. Since I want to use it with netctl-ifpluged I copied the example netctl config file and changed the interface name:
λ cat /etc/netctl/enp0s20u2u1-dhcp
Description='A basic dhcp ethernet connection'
Interface=enp0s20u2u1
Connection=ethernet
IP=dhcpI than modified ipfluged.conf to handle the interface:
λ cat /etc/ifplugd/ifplugd.conf
# Specify the interfaces to control here, separated by spaces.
# Ifplugd processes will be started for each of these interfaces when
# the ifplugd init script is called with the "start" argument. You may
# use the magic string "auto" to make the init script start or stop
# ifplugd processes for ALL eth and wlan interfaces that are available
# according to /proc/net/dev. Note that the list of interfaces
# appearing in /proc/net/dev may depend on which kernel modules you
# have loaded.
INTERFACES="enp0s20u2u1"
# Additional parameters for ifplugd.
# (Run "ifplugd -h" for further information.)
ARGS="-fwI -u0 -d10"I enabled the systemd service netctl-ifplugd@enp0s20u2u1.service and get the following:
λ systemctl status netctl-ifplugd@enp0s20u2u1.service
● netctl-ifplugd@enp0s20u2u1.service - Automatic wired network connection using netctl profiles
Loaded: loaded (/usr/lib/systemd/system/netctl-ifplugd@.service; enabled)
Active: active (running) since Di 2014-09-23 11:01:00 CEST; 3s ago
Docs: man:netctl.special(7)
Main PID: 1923 (ifplugd)
CGroup: /system.slice/system-netctl\x2difplugd.slice/netctl-ifplugd@enp0s20u2u1.service
├─1923 /usr/bin/ifplugd -i enp0s20u2u1 -r /etc/ifplugd/netctl.action -bfIns
├─1926 /bin/bash /etc/ifplugd/netctl.action enp0s20u2u1 up
├─1945 /bin/bash /usr/lib/network/network start enp0s20u2u1-dhcp
└─1951 dhcpcd -4 -q -t 30 -L enp0s20u2u1
Sep 23 11:01:00 sputnik3arch ifplugd[1923]: client: Reading profile 'wlp2s0-eduroam'
Sep 23 11:01:00 sputnik3arch ifplugd[1923]: client: Reading profile 'wlp2s0-britt'
Sep 23 11:01:00 sputnik3arch ifplugd[1923]: client: Reading profile 'enp0s20u2u1-dhcp'
Sep 23 11:01:00 sputnik3arch ifplugd[1923]: client: Reading profile 'wlp2s0-android'
Sep 23 11:01:00 sputnik3arch ifplugd[1923]: client: Starting network profile 'enp0s20u2u1-dhcp'...
Sep 23 11:01:00 sputnik3arch dhcpcd[1951]: version 6.4.3 starting
Sep 23 11:01:00 sputnik3arch dhcpcd[1951]: DUID 00:01:00:01:1a:aa:00:a7:7c:7a:91:27:73:ba
Sep 23 11:01:00 sputnik3arch dhcpcd[1951]: enp0s20u2u1: IAID 55:8c:31:60
Sep 23 11:01:01 sputnik3arch dhcpcd[1951]: enp0s20u2u1: soliciting a DHCP lease
Sep 23 11:01:02 sputnik3arch dhcpcd[1951]: enp0s20u2u1: offered 194.95.188.196 from 194.95.188.194 `saal.bbaw.de'at this point I can ping for example Google, some seconds later I can't anymore and the status of ifpluged is
λ systemctl status netctl-ifplugd@enp0s20u2u1.service
● netctl-ifplugd@enp0s20u2u1.service - Automatic wired network connection using netctl profiles
Loaded: loaded (/usr/lib/systemd/system/netctl-ifplugd@.service; enabled)
Active: active (running) since Di 2014-09-23 11:01:00 CEST; 1min 53s ago
Docs: man:netctl.special(7)
Main PID: 1923 (ifplugd)
CGroup: /system.slice/system-netctl\x2difplugd.slice/netctl-ifplugd@enp0s20u2u1.service
├─1923 /usr/bin/ifplugd -i enp0s20u2u1 -r /etc/ifplugd/netctl.action -bfIns
└─2040 dhcpcd -4 -q -t 30 -L enp0s20u2u1
Sep 23 11:01:00 sputnik3arch dhcpcd[1951]: DUID 00:01:00:01:1a:aa:00:a7:7c:7a:91:27:73:ba
Sep 23 11:01:00 sputnik3arch dhcpcd[1951]: enp0s20u2u1: IAID 55:8c:31:60
Sep 23 11:01:01 sputnik3arch dhcpcd[1951]: enp0s20u2u1: soliciting a DHCP lease
Sep 23 11:01:02 sputnik3arch dhcpcd[1951]: enp0s20u2u1: offered 194.95.188.196 from 194.95.188.194 `saal.bbaw.de'
Sep 23 11:01:07 sputnik3arch dhcpcd[1951]: enp0s20u2u1: leased 194.95.188.196 for 300 seconds
Sep 23 11:01:07 sputnik3arch dhcpcd[1951]: enp0s20u2u1: adding route to 194.95.188.192/26
Sep 23 11:01:07 sputnik3arch dhcpcd[1951]: enp0s20u2u1: adding default route via 194.95.188.193
Sep 23 11:01:07 sputnik3arch dhcpcd[1951]: forked to background, child pid 2040
Sep 23 11:01:07 sputnik3arch ifplugd[1923]: client: Started network profile 'enp0s20u2u1-dhcp'
Sep 23 11:01:07 sputnik3arch ifplugd[1923]: Program executed successfully.for some reason netctl-ifpluged starts a second dhcpd process 5 seconds after the first one and from this point I can not ping any external IP anymore. The Wifi interface on the other hand is going up and down all the time.
Offline
Not sure but shouldn't things normally NOT fork to the background if handled by systemd? I'm not sure since I don't use dhcpcd any longer (since it started to cause problems).
Have you tried dhclient in place of dhcpcd? I used the latter for ages but switched to dhclient a little bit ago when it started seeming to cause problems. I realise this isn't really an answer...
Do make sure that you have disabled all conflicting network services - whether systemd services or netctl profiles or whatever.
Last edited by cfr (2014-09-27 22:59:33)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline