This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dhcp:pxe [2024/01/25 10:17] – created js | dhcp:pxe [2024/01/25 15:12] (current) – [Sources] js | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PXE Config in DHCP ====== | ====== PXE Config in DHCP ====== | ||
- | === DHCP Options | + | === pre-boot architecture type === |
- | |DHCP Config | Option | | + | In the [[https:// |
- | |DHCP Network application (e.g. UniFi Network Controller)| 43| | + | < |
- | |DHCP NTP Server| 42 | | + | ---- |
- | |DHCP Network Boot | 66 and 67 | | + | 0 Intel x86PC |
- | |DHCP Time Offset | 2 | | + | |
- | |DHCP TFTP Server | 66 | | + | |
- | |DHCP WPAD URL | 252 | | + | |
- | |DHCP WINS Server | 44 | | + | |
+ | 5 Intel Lean Client | ||
+ | 6 EFI IA32 | ||
+ | 7 EFI BC | ||
+ | 8 EFI Xscale | ||
+ | 9 EFI x86-64</ | ||
+ | |||
+ | ==== dhcpd.conf ==== | ||
Line 59: | Line 67: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | < | ||
+ | |||
+ | allow booting; | ||
+ | allow bootp; | ||
+ | authoritative; | ||
+ | log-facility local6; | ||
+ | |||
+ | ignore client-updates; | ||
+ | set vendorclass = option vendor-class-identifier; | ||
+ | |||
+ | ## Allowing EFI Clients | ||
+ | option pxe-system-type code 93 = unsigned integer 16; | ||
+ | option rfc3442-classless-static-routes code 121 = array of integer 8; | ||
+ | option ms-classless-static-routes code 249 = array of integer 8; | ||
+ | |||
+ | option space pxelinux; | ||
+ | option pxelinux.magic code 208 = string; | ||
+ | option pxelinux.configfile code 209 = text; | ||
+ | option pxelinux.pathprefix code 210 = text; | ||
+ | option pxelinux.reboottime code 211 = unsigned integer 32; | ||
+ | option architecture-type code 93 = unsigned integer 16; | ||
+ | |||
+ | option pxelinux.mtftp-ip | ||
+ | option pxelinux.mtftp-cport code 2 = unsigned integer 16; | ||
+ | option pxelinux.mtftp-sport code 3 = unsigned integer 16; | ||
+ | option pxelinux.mtftp-tmout code 4 = unsigned integer 8; | ||
+ | option pxelinux.mtftp-delay code 5 = unsigned integer 8; | ||
+ | |||
+ | subnet 10.100.0.0 netmask 255.255.255.0 { | ||
+ | interface | ||
+ | option routers | ||
+ | option domain-name-servers | ||
+ | option domain-name | ||
+ | option subnet-mask | ||
+ | range | ||
+ | ## EFI Client Catch | ||
+ | class " | ||
+ | match if substring (option vendor-class-identifier, | ||
+ | if option pxe-system-type = 00:07 { | ||
+ | filename " | ||
+ | } else if option pxe-system-type = 00:08 { | ||
+ | filename " | ||
+ | } else if option pxe-system-type = 00:09 { | ||
+ | filename " | ||
+ | } else if option pxe-system-type = 00:0a { | ||
+ | filename " | ||
+ | } else if option pxe-system-type = 00:0b { | ||
+ | filename " | ||
+ | } else { | ||
+ | filename " | ||
+ | } | ||
+ | } | ||
+ | default-lease-time | ||
+ | max-lease-time | ||
+ | next-server | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== Sources ==== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ |