Hello I have tons of manage IB switch to be install, how to assign serial to ip?
here is the partially working isc-dhcp setting, but how to apply per serial with provide IP?
thanks to Sebastian (ZTP DHCP configuration Option 43 - #6 by sebastian.thoesen)
option space IBSWZTP code width 1 length width 1;
option IBSWZTP.model code 1 = text;
option IBSWZTP.partnum code 2 = text;
option IBSWZTP.serial code 3 = text;
option IBSWZTP.mac code 4 = text;
option IBSWZTP.profile code 5 = text;
option IBSWZTP.release code 6 = text;
option IBSWZTP-43 code 43 = encapsulate IBSWZTP;
class "IBSW" {
match if option IBSWZTP.model="MQM9700";
option tftp-server-name = "http://10.0.0.1:8080/switch/image/, http://10.0.0.1:8080/switch/image/";
option bootfile-name = "image-X86_64-3.11.1014.img";
}
subnet 10.0.1.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
pool {
allow members of "IBSW";
range 10.0.1.10 10.0.1.40;
}
}
group {
host IBSW-01 { option IBSWZTP.serial = "MT2202T24242"; fixed-address 10.0.1.20; }
}
Partially working:
- Able to upgrade the Image
Not Working: - doesn’t assign IP from the provided serial, DHCP offers IP from the POOL not by host.