matcher
ip/dhcp-server/matcher
Type: Directory
Assigns addresses from a specific IP pool to clients whose request contains a matching DHCP option, for example a vendor class identifier or host name. Clients with a static lease keep their static lease even when a matcher matches them. For examples, see DHCP Server.
| Flag | Name | Description |
|---|---|---|
| X | disabled | The matcher is disabled. |
| Argument | Type | Description |
|---|---|---|
| name ( mandatory ) | string | Name of the matcher. |
| server ( mandatory ) | enum (all) | DHCP server the matcher applies to, or all for every server. |
| address-pool | enum (static-only) | IP pool to give matching clients an address from. |
| option-set | enum (none) | Option set (/ip/dhcp-server/option/sets) to send to matching clients. |
| code ( mandatory ) | alt { number: num [1 .. 254] , option: enum (vendor-specific) { vendor-specific:43 } } | Code of the DHCP option to match (1-254). |
| value ( mandatory ) | string | Value to look for in the option, as text or as hex with the 0x prefix. |
| matching-type ( mandatory ) | enum (exact | substring) | How
When two substring matchers match the same option, it is random which one applies. |