Skip to content

--nolink / -K does not stop dhcpcd from receiving link messages for carrier status #590

@rronsherifii

Description

@rronsherifii

Hi, we are using dhcpcd 10.3.0 and are having problems with the --nolink option not working.

The man page for -K / --nolink states:

Don't receive link messages for carrier status. You should only have to use this with buggy device drivers or running dhcpcd through a network manager.

We manage the interface configuration ourselves and use dhcpcd only for DHCPv6 lease acquisition. The interface experiences very brief carrier flaps — in the order of milliseconds — as a side effect of interface reconfiguration. We want
dhcpcd to ignore these and keep the lease alive, which is exactly what --nolink is documented for.

However, passing --nolink either as a command line argument or via the config file has no effect. The syslog still shows dhcpcd reacting to the carrier events and dropping the lease:

dhcpcd[1234]: : carrier lost
dhcpcd[1234]: : carrier acquired
dhcpcd[1234]: : DHCPv6 lease expired

Config file $CFG:

timeout 60
background
release
option domain_name_servers, domain_name, domain_search
option classless_static_routes
option host_name
require dhcp_server_identifier
noipv6rs
ia_na
interface $interface
noipv6rs
ia_na
ia_pd 1 -

Invocation:
dhcpcd --noconfigure --nolink -6 -d -f $CFG -c $SCRIPT_FILE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions