Page MenuHomeVyOS Platform

Disabled vif interface with "address dhcp" requests DHCP address
Open, Requires assessmentPublicBUG


If an interface is disabled and configured to request its address from a DHCP-server, the interface will still get an IP-address (at least during boot)
I would expect that the "disabled"-statement would override/disable the dhcp process.

For recreation:

 ethernet eth0 {
     vif 2 {
          address dhcp

save the configuration and reboot

I am trying have a DHCP-interface as a backup interface only to be enabled in failure-scenarios. As of now this is not working, and the interface grabs a DHCP-address during boot.


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

dhclient script up this interface after hooks


run_hook /etc/dhcp/dhclient-enter-hooks
run_hookdir /etc/dhcp/dhclient-enter-hooks.d

# Execute the operation
case "$reason" in

    ### DHCPv4 Handlers

        # Do nothing
        # The DHCP client is requesting that an interface be
        # configured as required in order to send packets prior to
        # receiving an actual address. - dhclient-script(8)

        # ensure interface is up
        ip link set dev ${interface} up
erkin renamed this task from Disabled vif interface with "address dhcp" requests DHCP address. to Disabled vif interface with "address dhcp" requests DHCP address.Aug 30 2021, 8:02 AM
erkin set Issue type to Bug (incorrect behavior).