dhcpd and radvd configurations for dynamic host addressing on the COSI network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

135 lines
7.4 KiB

5 years ago
5 years ago
5 years ago
5 years ago
4 years ago
5 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. #
  2. # /etc/dhcp/common4.conf for common DHCP configurations between both servers
  3. #
  4. efault-lease-time 10080;
  5. max-lease-time 10080;
  6. option routers 128.153.145.1;
  7. option subnet-mask 255.255.254.0;
  8. option domain-name "cslabs.clarkson.edu";
  9. option domain-name-servers 128.153.145.3,128.153.145.4,8.8.8.8;
  10. authoritative;
  11. option arch code 93 = unsigned integer 16;
  12. option rfc3442-classless-static-routes code 121 = array of integer 8;
  13. option ms-classless-static-routes code 249 = array of integer 8;
  14. subnet 128.153.144.0 netmask 255.255.254.0 {
  15. range 128.153.144.100 128.153.144.254;
  16. failover peer "dhcp-failover";
  17. # COSI
  18. group {
  19. host cthulhu.cslabs.clarkson.edu { hardware ethernet 4c:cc:6a:fa:dd:86; fixed-address 128.153.144.20; }
  20. host cosi-01.cslabs.clarkson.edu { hardware ethernet fc:aa:14:99:ca:eb; fixed-address 128.153.144.21; }
  21. host cosi-02.cslabs.clarkson.edu { hardware ethernet fc:aa:14:9c:64:9c; fixed-address 128.153.144.22; }
  22. host cosi-03.cslabs.clarkson.edu { hardware ethernet fc:aa:14:9d:2c:bf; fixed-address 128.153.144.23; }
  23. host cosi-04.cslabs.clarkson.edu { hardware ethernet fc:aa:14:9d:9b:40; fixed-address 128.153.144.24; }
  24. host cosi-05.cslabs.clarkson.edu { hardware ethernet fc:aa:14:99:db:30; fixed-address 128.153.144.25; }
  25. host cosi-06.cslabs.clarkson.edu { hardware ethernet fc:aa:14:9d:6a:e6; fixed-address 128.153.144.26; }
  26. host cosi-07.cslabs.clarkson.edu { hardware ethernet 30:9c:23:82:7f:3b; fixed-address 128.153.144.27; }
  27. host cosi-08.cslabs.clarkson.edu { hardware ethernet 30:9c:23:82:7f:2a; fixed-address 128.153.144.28; }
  28. host 3dprint.cslabs.clarkson.edu { hardware ethernet b8:97:5a:13:7c:6c; fixed-address 128.153.144.29; }
  29. host beastvr.cslabs.clarkson.edu { hardware ethernet 90:2b:34:3f:b4:1b; fixed-address 128.153.144.30; }
  30. host UBNT.cslabs.clarkson.edu { hardware ethernet 80:2a:a8:93:8e:60; fixed-address 128.153.144.31; }
  31. }
  32. # DHCP Services
  33. group {
  34. # Storage Array Management
  35. host amp0.cslabs.clarkson.edu { hardware ethernet 84:2b:2b:13:fb:12; fixed-address 128.153.144.10; }
  36. host amp1.cslabs.clarkson.edu { hardware ethernet 14:fe:b5:fe:31:e0; fixed-address 128.153.144.11; }
  37. host jeff.cslabs.clarkson.edu { hardware ethernet 00:25:90:6b:46:e2; fixed-address 128.153.144.32; }
  38. host geoff.cslabs.clarkson.edu { hardware ethernet 00:25:90:6a:d6:4e; fixed-address 128.153.144.33; }
  39. host geoffry.cslabs.clarkson.edu { hardware ethernet 00:25:90:9b:fe:34; fixed-address 128.153.144.34; }
  40. host animal.cslabs.clarkson.edu { hardware ethernet b8:97:5a:13:7e:80; fixed-address 128.153.144.35; }
  41. host scannerpi.cslabs.clarkson.edu { hardware ethernet b8:27:eb:86:6f:99; fixed-address 128.153.145.101; }
  42. }
  43. # ITL
  44. group {
  45. host itl00.cslabs.clarkson.edu { hardware ethernet a0:d3:c1:29:67:8b; fixed-address 128.153.144.40; }
  46. host itl01.cslabs.clarkson.edu { hardware ethernet a0:d3:c1:29:f9:f9; fixed-address 128.153.144.41; }
  47. host itl02.cslabs.clarkson.edu { hardware ethernet a0:d3:c1:33:29:55; fixed-address 128.153.144.42; }
  48. host itl03.cslabs.clarkson.edu { hardware ethernet a0:d3:c1:33:29:05; fixed-address 128.153.144.43; }
  49. host itl04.cslabs.clarkson.edu { hardware ethernet 40:a8:f0:41:83:16; fixed-address 128.153.144.44; }
  50. host itl05.cslabs.clarkson.edu { hardware ethernet a0:d3:c1:29:67:5f; fixed-address 128.153.144.45; }
  51. host itl06.cslabs.clarkson.edu { hardware ethernet 40:a8:f0:41:83:72; fixed-address 128.153.144.46; }
  52. host itl07.cslabs.clarkson.edu { hardware ethernet a0:d3:c1:33:29:51; fixed-address 128.153.144.47; }
  53. host itl08.cslabs.clarkson.edu { hardware ethernet 40:a8:f0:41:83:0a; fixed-address 128.153.144.48; }
  54. host itl09.cslabs.clarkson.edu { hardware ethernet 40:a8:f0:41:83:cf; fixed-address 128.153.144.49; }
  55. host itl10.cslabs.clarkson.edu { hardware ethernet a0:d3:c1:29:67:cb; fixed-address 128.153.144.50; }
  56. host itl11.cslabs.clarkson.edu { hardware ethernet a0:d3:c1:29:67:2f; fixed-address 128.153.144.51; }
  57. host itl12.cslabs.clarkson.edu { hardware ethernet a0:d3:c1:29:67:1a; fixed-address 128.153.144.52; }
  58. host itl13.cslabs.clarkson.edu { hardware ethernet 40:a8:f0:41:83:d5; fixed-address 128.153.144.53; }
  59. host itl14.cslabs.clarkson.edu { hardware ethernet a0:d3:c1:29:67:90; fixed-address 128.153.144.54; }
  60. host itl15.cslabs.clarkson.edu { hardware ethernet a0:d3:c1:33:29:45; fixed-address 128.153.144.55; }
  61. host itl16.cslabs.clarkson.edu { hardware ethernet a0:d3:c1:29:69:21; fixed-address 128.153.144.56; }
  62. host itl17.cslabs.clarkson.edu { hardware ethernet 40:a8:f0:41:83:8d; fixed-address 128.153.144.57; }
  63. host itl18.cslabs.clarkson.edu { hardware ethernet a0:d3:c1:33:28:70; fixed-address 128.153.144.58; }
  64. host itl19.cslabs.clarkson.edu { hardware ethernet a0:d3:c1:29:f9:ff; fixed-address 128.153.144.59; }
  65. host itl20.cslabs.clarkson.edu { hardware ethernet a0:d3:c1:29:fa:ad; fixed-address 128.153.144.60; }
  66. host itl21.cslabs.clarkson.edu { hardware ethernet 40:a8:f0:41:83:bb; fixed-address 128.153.144.61; }
  67. host itl22.cslabs.clarkson.edu { hardware ethernet a0:d3:c1:33:28:74; fixed-address 128.153.144.62; }
  68. host itl23.cslabs.clarkson.edu { hardware ethernet 40:a8:f0:41:83:4d; fixed-address 128.153.144.63; }
  69. host itl24.cslabs.clarkson.edu { hardware ethernet a0:d3:c1:29:67:12; fixed-address 128.153.144.64; }
  70. host itl25.cslabs.clarkson.edu { hardware ethernet 40:a8:f0:41:83:d0; fixed-address 128.153.144.65; }
  71. }
  72. class "cosi-vpnc" {
  73. match if (option agent.circuit-id) = "cosivpnc";
  74. # Set the gateway here as well in case the OS ignores the default router, route regular second floor clients through Geoff
  75. option rfc3442-classless-static-routes 0, 128, 153, 145, 1, 32, 128, 153, 145, 50, 128, 153, 145, 51;
  76. option ms-classless-static-routes 0, 128, 153, 145, 1, 32, 128, 153, 145, 50, 128, 153, 145, 51;
  77. if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
  78. allow booting;
  79. allow bootp;
  80. next-server 128.153.145.70;
  81. filename "/pxelinux.0";
  82. }
  83. }
  84. class "cosi-vpns" {
  85. match if (option agent.circuit-id) = "cosivpns";
  86. # Set the gateway here as well in case the OS ignores the default router, route regular second floor clients through Geoff's VM
  87. option rfc3442-classless-static-routes 0, 128, 153, 145, 1, 32, 128, 153, 145, 50, 128, 153, 145, 52;
  88. option ms-classless-static-routes 0, 128, 153, 145, 1, 32, 128, 153, 145, 50, 128, 153, 145, 52;
  89. }
  90. class "pxeclients" {
  91. match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
  92. allow booting;
  93. allow bootp;
  94. if exists user-class and option user-class = "iPXE" and (option arch = 00:09 or option arch = 00:07) {
  95. next-server 128.153.145.10;
  96. filename "/default.ipxe";
  97. } elsif option arch = 00:09 or option arch = 00:07 {
  98. next-server 128.153.145.10;
  99. filename "/ipxe.efi";
  100. } else {
  101. next-server 128.153.145.10;
  102. filename "/pxelinux.0";
  103. }
  104. }
  105. class "Apple-Intel-Netboot" {
  106. match if substring (option vendor-class-identifier, 0, 14) = "AAPLBSDPC/i386";
  107. option dhcp-parameter-request-list 1,3,17,43,60;
  108. if (option dhcp-message-type = 8) {
  109. option vendor-class-identifier "AAPLBSDPC";
  110. if (substring(option vendor-encapsulated-options, 0, 3) = 01:01:01) {
  111. # BSDP List
  112. option vendor-encapsulated-options 01:01:01:04:02:80:00:07:04:81:00:05:2a:09:0D:81:00:05:2a:08:69:50:58:45:2d:46:4f:47;
  113. }
  114. elsif (substring(option vendor-encapsulated-options, 0, 3) = 01:01:02) {
  115. # BSDP Select
  116. option vendor-encapsulated-options 01:01:02:08:04:81:00:05:2a:82:0a:4e:65:74:42:6f:6f:74:30:30:31;
  117. filename "/ipxe.efi";
  118. next-server 128.153.145.10;
  119. }
  120. }
  121. }
  122. }