Project

General

Profile

Actions

Feature #2983

open

DHCPD: Add vendor-class-identifier and MAC-OIDs

Added by Grischa Zengel over 11 years ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
DHCP (IPv4)
Target version:
-
Start date:
05/07/2013
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:

Description

For provisioning and deployment there must be diffent options (mostly 66&67) for each vendor or device class.
In 2.1 this is not possible.

There are diffent ways to config this ...

with classes on vendors:

class "Devices_A" {
match if ( substring ( option vendor-class-identifier, 0, 6 ) =
"vendor1" );
log ( info, "Got a packet from a vendor1 device" );
option domain-name "devicea.example.com";
}

with classes and OIDs:

class "Aastra" {
match if substring(hardware, 1, 3) = 00:08:5D;
option tftp-server-name "http://192.168.255.100/gemeinschaft/prov/aastra/";
default-lease-time 2764800;
max-lease-time 3024000;
}

with subclasses:

option space SUNW;
option SUNW.server-address code 2 = ip-address;
option SUNW.server-name code 3 = text;
option SUNW.root-path code 4 = text;

class "vendor-classes" {
match option vendor-class-identifier;
}

option SUNW.server-address 172.17.65.1;
option SUNW.server-name "sundhcp-server17-1";

subclass "vendor-classes" "SUNW.Ultra-5_10" {
vendor-option-space SUNW;
option SUNW.root-path "/export/root/sparc";
}

subclass "vendor-classes" "SUNW.i86pc" {
vendor-option-space SUNW;
option SUNW.root-path "/export/root/i86pc";
}

This issue is related to #663.

Actions

Also available in: Atom PDF