Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Gentoo IPv4 adresses not working properly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
keen4e
n00b
n00b


Joined: 20 Nov 2021
Posts: 19

PostPosted: Sun Dec 17, 2023 8:13 pm    Post subject: [Solved] Gentoo IPv4 adresses not working properly Reply with quote

Essentially I can't connect to any IPv4 address on my system. (Mysteriously IPv6 Addresses are still working).

A long time ago when I installed Gentoo, I configured my network with Netifrc. My /etc/conf.d/net only contains:

Code:

config_enp4s0="dhcp"


I created the symlink

Code:

ln -s /etc/init.d/net.lo /etc/init.d/net.enp4s0


and finally added

Code:
rc-update add net.enp4s0 default


Everything was working fine until this morning, when my internet is really acting up: essentially for reasons unknown to me, I can only connect to ipv6 addresses and that includes my local network.

When I try the command
Code:
sudo /etc/init.d/net.enp4s0 restart

I get:

Code:

Caching service dependencies ...                                                                 [ ok ]
 * Bringing down interface enp4s0
 * Bringing up interface enp4s0
 *   Starting ifplugd on enp4s0 ...
ifplugd: unrecognized option '--iface=enp4s0'
BusyBox v1.36.1 (2023-07-09 22:23:37 EDT) multi-call binary.

Usage: ifplugd [OPTIONS]

Network interface plug detection daemon

   -n      Run in foreground
   -s      Don't log to syslog
   -i IFACE   Interface
   -f/-F      Treat link detection error as link down/link up
         (otherwise exit on error)
   -a      Don't up interface at each link probe
   -M      Monitor creation/destruction of interface
         (otherwise it must exist)
   -A      Don't up newly appeared interface
   -r PROG      Script to run
   -x ARG      Extra argument for script
   -I      Don't exit on nonzero exit code from script
   -p      Don't run "up" script on startup
   -q      Don't run "down" script on exit
   -l      Always run script on startup
   -t SECS      Poll time in seconds
   -u SECS      Delay before running script after link up
   -d SECS      Delay after link down
   -m MODE      API mode (mii, priv, ethtool, wlan, iff, auto)
   -k      Kill running daemon
 *   start-stop-daemon: failed to start `ifplugd'                                                   [ !! ]
 * WARNING: net.enp4s0 has started, but is inactive


I was able to resolve the problem by running dhcpcd as a service, but it looks like my network services are in a messy state, so I would like to understand what is happening here. Any help would be greatly appreciated.


Last edited by keen4e on Sun Dec 17, 2023 9:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1693

PostPosted: Sun Dec 17, 2023 8:23 pm    Post subject: Reply with quote

You have busybox symlinks enabled from somewhere and that has made it look like ifplugd is installed to netifrc.

This busybox version has different arguments than standard ifplugd by that message.

Either discontinue the net.* service and delete it (keeping dhcpcd service) or remove the ifplugd symlink.
Back to top
View user's profile Send private message
keen4e
n00b
n00b


Joined: 20 Nov 2021
Posts: 19

PostPosted: Sun Dec 17, 2023 9:04 pm    Post subject: Reply with quote

It worked.

Thanks a lot for your help. I currently actually don't need busybox, so I uninstalled it and removed the symlink and the service runs again normally.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1693

PostPosted: Sun Dec 17, 2023 9:08 pm    Post subject: Reply with quote

Another alternative is to set modules="!ifplugd" in /etc/conf.d/net to disable ifplugd detection entirely.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum