Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netctl-ifplugd Unable to get ip address #163

Closed
eatradish opened this issue Oct 18, 2018 · 3 comments
Closed

netctl-ifplugd Unable to get ip address #163

eatradish opened this issue Oct 18, 2018 · 3 comments

Comments

@eatradish
Copy link

eatradish commented Oct 18, 2018

Hi,
When I tried to use the Android phone network USB share to use with Arch Linux, I could not get the ip address.
I first used netctl-ifplugd to connect to the network, using the interface of the mobile network device enp0s29u1u1 , the configuration file is as follows:

sakiiily in ~ at 20:30:56 λ cat /etc/netctl/enp0s29u1u1
Description='A basic dhcp ethernet connection'
Interface=enp0s29u1u1
Connection=ethernet
IP=dhcp
#DHCPClient=dhcpcd
#DHCPReleaseOnStop=no
## for DHCPv6
#IP6=dhcp
#DHCP6Client=dhclient
## for IPv6 autoconfiguration
#IP6=stateless

Then I use sudo systemctl enable netctl-ifplugd@enp0s29u1u1 --now to ping again to test whether the network is connected, and found that the connection is not up, the ip output is as follows:

sakiiily in ~ at 20:37:31 λ ip -c -br a 
lo               UNKNOWN        127.0.0.1/8 ::1/128 
enp0s25          DOWN           
wlp3s0           UP             192.168.1.100/24 fe80::7ee9:d3ff:fef1:2cb3/64 
enp0s29u1u1      UNKNOWN        fe80::b0d1:3bff:fea5:a7ad/64 

netctl-ifplugd service output:

● netctl-ifplugd@enp0s29u1u1.service - Automatic wired network connection using netctl profiles
   Loaded: loaded (/usr/lib/systemd/system/netctl-ifplugd@.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2018-10-18 20:37:19 CST; 1min 10s ago
     Docs: man:netctl.special(7)
 Main PID: 3839 (ifplugd)
    Tasks: 1 (limit: 4915)
   Memory: 2.5M
   CGroup: /system.slice/system-netctl\x2difplugd.slice/netctl-ifplugd@enp0s29u1u1.service
           └─3839 /usr/bin/ifplugd -i enp0s29u1u1 -r /etc/ifplugd/netctl.action -bfIns

Oct 18 20:37:19 eat-x220i dhcpcd[3860]: DUID 00:04:c8:58:59:01:51:fd:11:cb:85:03:f3:9e:7a:88:e0:f0
Oct 18 20:37:19 eat-x220i dhcpcd[3860]: enp0s29u1u1: IAID 3b:a5:a7:ad
Oct 18 20:37:20 eat-x220i dhcpcd[3860]: enp0s29u1u1: soliciting a DHCP lease
Oct 18 20:37:49 eat-x220i dhcpcd[3860]: timed out
Oct 18 20:37:49 eat-x220i ifplugd[3839]: client: timed out
Oct 18 20:37:49 eat-x220i dhcpcd[3860]: dhcpcd exited
Oct 18 20:37:49 eat-x220i ifplugd[3839]: client: <3>DHCP IPv4 lease attempt failed on interface 'enp0s29u1u1'
Oct 18 20:37:49 eat-x220i ifplugd[3839]: client: <3>Failed to bring the network up for profile 'enp0s29u1u1'
Oct 18 20:37:49 eat-x220i ifplugd[3839]: client: <3>Could not start any suitable profile
Oct 18 20:37:49 eat-x220i ifplugd[3839]: Program execution failed, return value is 1.

But there is no problem with networkmanager
The problem is as above, thank you for helping solve the problem.

@joukewitteveen
Copy link
Owner

Hi,
That is very weird. I am currently working on improvements for removable devices, but your issue seems unrelated. Are you sure that the connection is a simple DHCP connection? Your log only shows the DHCP client timing out.

@eatradish
Copy link
Author

eatradish commented Oct 19, 2018

@joukewitteveen
Usually it should be, my understanding is that the phone here only acts as a ethernet network adapter.

@joukewitteveen
Copy link
Owner

Does starting the profile manually (netctl start <your-profile>) make any difference?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants