Skip to content
This repository was archived by the owner on Mar 16, 2020. It is now read-only.

Provide identifying information in udhcpc requests #13

@mxk

Description

@mxk

I run dnsmasq as my DHCP server and it's configured to provide static leases to known MAC addresses. I don't want it handing out leases to unknown clients. Each Transfer VM instance has a unique local MAC, so no prefix that I can match, and no other identifying information (hostname, client id, enterprise vendor classes, etc.). It provides udhcp 1.12.4 as the vendor class, but that could match other hosts as well. This makes it impossible for me to configure dnsmasq to hand out dynamic IPs to Transfer VMs without also doing the same for all other hosts. Configuring a static IP for each import/export operation is a bit annoying.

Would it be possible to have each Transfer VM generate a dynamic hostname with a fixed prefix (e.g. transfervm-<random>) and provide some other unique identifier in the DHCP request?

As a workaround, is there some easy way for me to modify /sbin/hotplug on the Transfer VM template, which is where I think this change needs to be made? I tried poking around a running Transfer VM, but couldn't quite figure out what's stored where.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions