I just ran into this, from  https://wiki.gentoo.org/wiki/Dhcpcd


         /Static IP addresses/

   //

   /In case the network interface card should be configured with a
   //static IP address <https://wiki.gentoo.org/wiki/Static_Routing>//,
   add their data to ///etc/dhcpcd.conf//.//^[1]
   <https://wiki.gentoo.org/wiki/Dhcpcd#cite_note-manpage-1> //The
   following is an example of manually adding a static address, routes,
   and DNS by editing DHCPCD's configuration file using a text editor
   of choice: /

   //
   /FILE////*|/etc/dhcpcd.conf|*//**/

   /static ip_address=192.168.0.10/24/


(haven't tried it yet, my system is busy right now).

So, what is /etc/conf.d/net for?  What programs read it?




On 08/19/19 20:11, n952162 wrote:

My eth0/enp2s0 network adapter is configured so:

    $ cat /etc/conf.d/net

    config_enp2s0="192.168.179.20/24"

but on boot, I get a bonjour address:

    enp2s0    Link encap:Ethernet  HWaddr 48:BA:4E:29:99:9E
              inet addr:*169.254.71.117 * Bcast:169.254.255.255 
    Mask:255.255.0.0

if I restart the service immediately after boot, nothing much happens,
I still get the bonjour address.

    sudo rc-service net.enp2s0 restart

Incidently, dhcpcd is still running at this point.

But after a couple of tries:

    sudo rc-service net.enp2s0 restart

and then I get my connection:

    $ ifconfig
    enp2s0    Link encap:Ethernet  HWaddr 48:BA:4E:29:99:9E
              inet addr:*192.168.179.20* Bcast:192.168.179.255 
    Mask:255.255.255.0

And:

    $ sudo rc-service dhcpcd status
     * status: *crashed*

From /var/log/syslog:

    [  260.895907] dhcpcd[6664]: segfault at 400a00000000 ip
    0000560edbf464bd sp 00007ffe06bf4f10 error 4 in
    dhcpcd[560edbf23000+46000]*

    *

Why does dhcpcd think it can configure my interface and what's the
connection between /etc/conf.d/net and dhcpcd?




Reply via email to