Skip to content

Add DHCP relay agent, with Option 82 support #438

In review

Description

@troglobit

Description

In many network setups it can be convenient to implement easy-replacement of end devices using DHCP Option 82. This is a feature where the DHCP request of a client is intercepted1 to attach another DHCP option which includes information about the switch itself and the port the client is connected to. The relay agent then forwards the request to the DHCP server (one or many if redundancy is required), which in turn, based on policy, can either hand out a DHCP pool address or a fixed address reserved for the port on that switch.

Essentially, end devices would no longer just be devices with an IP address, but rather devices with dedicated roles in a train car, or on a factory floor. Replacing a broken end device with a new one shall2 yield the same IP address.

See issue #446 for details.

Tasks

  • Investigate state of the Westermo dhcp-helper package
  • Possibly fork and fix up dhcp-helper before packaging it for Infix
  • YANG support for setting up Option 82 ("IP per port")

Footnotes

  1. ... intercepted by a DHCP relay agent on the switch the client is connected to. ↩

  2. ... this is a server requirement that is not usually supported by common DHCP servers (ISC or dnsmasq), but is essentially a setting to "preempt" a previous lease (promise from the server to a specific client), and hand it out to someone else claiming to be of the same identity (option 61 or 82). ↩

Activity

  1. added
    enhancement
    on May 13, 2024
  2. added
    cn:dream
    on Sep 1, 2026
  3. self-assigned this
    on Nov 25, 2026
  4. moved this from Todo to In progress in Infix & C:oon Nov 25, 2026
  5. removed
    enhancement
    on Nov 26, 2026
  6. added 11 commits that reference this issue on Nov 30, 2026
    63d5f60
    4115376
    b35ad07
    7e44318
    9153433
    7125473
    e2e08ba
    5964c4e
    6877bfc
    e890ff2
    96cc6b4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cn:dream

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions