Guest User

Untitled

a guest
May 21st, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. Get-WindowsFeature DHCP | Install-WindowsFeature -IncludeAllSubFeature -IncludeManagementTools
  2.  
  3.  
  4. # Create an IPv4 DHCP Server Scope
  5. Add-DhcpServerv4Scope -Name "Management-Internal-NADC-HL2" -StartRange 192.168.68.101 -EndRange 192.168.68.149 -SubnetMask 255.255.255.0 # -LeaseDuration = 00.00:30:30 -State Active
  6.  
  7. # Set the Router Option value
  8. Set-DhcpServerv4OptionValue -ScopeId 192.168.68.0 -DnsServer 192.168.68.10 -DnsDomain vlab.local -Router 192.168.68.254
  9.  
  10. ### Create DHCP Option definition 150 for TFTP
  11. ##Add-DhcpServerv4OptionDefinition -OptionId 150 -Type IPv4Address -Name "TFTP-Server"
  12.  
  13. ###Set the DHCP Option Value for Option 150
  14. ##Set-DhcpServerv4OptionValue -ScopeId "10.67.36.0" -OptionId 150 -Value 10.67.36.25
  15.  
  16. ##Adding a DHCP Server Reservation via MAC ID address (ClientId)
  17. #Add-DhcpServerv4Reservation -ComputerName someservername -ScopeId 10.67.36.0 -ClientId 30054405308 -Name DescribingName -IPAddress 10.67.36.35
Add Comment
Please, Sign In to add comment