iPXE.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // This is and example configuration for iPXE boot in Kea6.
  2. {
  3. "Dhcp6":{
  4. // mandatory part of the config that list interfaces on which kea will listen to incoming traffic
  5. "interfaces-config":{
  6. "interfaces":[
  7. "ethX"
  8. ]
  9. },
  10. // Two classes are migrated form ISC-DHCP example:
  11. // if exists dhcp6.client-arch-type and
  12. // option dhcp6.client-arch-type = 00:07 {
  13. // option dhcp6.bootfile-url "http://[2001:db8::1]/ipxe.efi";
  14. // } else if exists dhcp6.user-class and
  15. // substring(option dhcp6.user-class, 2, 4) = "iPXE" {
  16. // option dhcp6.bootfile-url "http://[2001:db8::1]/ubuntu.cfg";
  17. // }
  18. //
  19. // In example shown below incoming packet will receive value http://[2001:db8::1]/ubuntu.cfg
  20. // if incoming packet will include user class option with "iPXE" in it and
  21. // value http://[2001:db8::1]/ipxe.efi if option client architecture type will be 7.
  22. // If incoming packet will include both of those options with matching values it will be assigned
  23. // to class "a-ipxe" because it was first matching class. If you want to change that order names
  24. // of the classes have to have different alphabetical order. In Kea 1.3.0 (and previous versions)
  25. // alphabetical order is used in classification.
  26. "client-classes":[
  27. {
  28. "name":"a-ipxe",
  29. "test":"substring(option[15].hex,2,4) == 'iPXE'",
  30. "option-data":[
  31. {
  32. "space":"dhcp6",
  33. "name":"bootfile-url",
  34. "code":59,
  35. "data":"http://[2001:db8::1]/ubuntu.cfg"
  36. }
  37. ]
  38. },
  39. {
  40. "name":"b-efi",
  41. "test":"option[61].hex == 0x00000007",
  42. "option-data":[
  43. {
  44. "space":"dhcp6",
  45. "name":"bootfile-url",
  46. "code":59,
  47. "data":"http://[2001:db8::1]/ipxe.efi"
  48. }
  49. ]
  50. }
  51. ],
  52. "subnet6":[
  53. {
  54. "subnet":"2001:db8::/64"
  55. }
  56. ]
  57. }
  58. }