Dhcp.cmd: Difference between revisions
From Federal Burro of Information
Jump to navigationJump to search
(Created page with "<pre> # This is a widows cmd script. # It's meant to be run on tio-ads server. # You should change the MAC address, hostname and IP address to match your server. set subnetwork=172.31.4.0 set IPAddress=172.31.4.XX set mac_address=XX set machine_name=ibmbcXXbXX set BootServerIP=172.31.4.250 netsh dhcp server scope %subnetwork% add reservedip %IPAddress% %mac_address% %machine_name% "DHCP for %machine_name%" BOTH netsh dhcp server scope %subnetwork% set reservedoptionvalue...") |
No edit summary |
||
Line 13: | Line 13: | ||
netsh dhcp server scope %subnetwork% set reservedoptionvalue %IPAddress% 067 STRING linux-install/pxelinux.0 BOTH | netsh dhcp server scope %subnetwork% set reservedoptionvalue %IPAddress% 067 STRING linux-install/pxelinux.0 BOTH | ||
</pre> | </pre> | ||
[[category:script]] |
Latest revision as of 18:16, 26 February 2023
# This is a widows cmd script. # It's meant to be run on tio-ads server. # You should change the MAC address, hostname and IP address to match your server. set subnetwork=172.31.4.0 set IPAddress=172.31.4.XX set mac_address=XX set machine_name=ibmbcXXbXX set BootServerIP=172.31.4.250 netsh dhcp server scope %subnetwork% add reservedip %IPAddress% %mac_address% %machine_name% "DHCP for %machine_name%" BOTH netsh dhcp server scope %subnetwork% set reservedoptionvalue %IPAddress% 043 BINARY 010400000000ff BOTH netsh dhcp server scope %subnetwork% set reservedoptionvalue %IPAddress% 066 STRING "%BootServerIP%" BOTH netsh dhcp server scope %subnetwork% set reservedoptionvalue %IPAddress% 067 STRING linux-install/pxelinux.0 BOTH