Dhcp.cmd

From Federal Burro of Information
Revision as of 17:39, 26 February 2023 by David (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
# 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