IT-Artikelen

DHCP - DNS Preparation - Part 3

Is where you Prepare the environment to define a Subnet and get an IP Address in the New VLAN by means of control via your VLAN Configuration in your Cisco Switches.

 

Add-DhcpServerv4Scope -ComputerName AD.LOCAL -Name "CLIENT_VLAN1" -StartRange 172.24.0.1 -EndRange 172.24.0.254 -SubnetMask 255.255.255.0 -State Active

Add-DhcpServerv4Scope -ComputerName AD.LOCAL -Name "CLIENT_VLAN2" -StartRange 172.24.1.1 -EndRange 172.24.1.254 -SubnetMask 255.255.255.0 -State Active

Add-DhcpServerv4Scope -ComputerName AD.LOCAL -Name "CLIENT_VLAN3" -StartRange 172.24.2.1 -EndRange 172.24.2.254 -SubnetMask 255.255.255.0 -State Active

Add-DhcpServerv4Scope -ComputerName AD.LOCAL -Name "CLIENT_VLAN4" -StartRange 172.24.3.1 -EndRange 172.24.3.254 -SubnetMask 255.255.255.0 -State Active

Add-DhcpServerv4Scope -ComputerName AD.LOCAL -Name "CLIENT_VLAN5" -StartRange 172.24.4.1 -EndRange 172.24.4.254 -SubnetMask 255.255.255.0 -State Active

Add-DhcpServerv4Scope -ComputerName AD.LOCAL -Name "GUEST_VLAN" -StartRange 172.32.0.1 -EndRange 172.24.3.254 -SubnetMask 255.255.252.0 -State Active

 

 

DNS

Is where you configure Reverse Lookup Zones, to have their IP Address registered, so Administration for DNS can be looked up in reverse.

 

$a = "DNS" #Your DNS Server Name

$b = import-csv C:\Temp\reverse-lookup-zones.csv | select-object -expand ReverseLookup

Foreach($Reverse in $b)

{

dnscmd $a /zoneadd $Reverse /DSprimary

dnscmd /config $reverse /allowupdate 1

}

Copy the 1.16.172.in-addr.arpa in a seperate list.

You can generate them with csv format, and CONCATENATE the first 4 cells to column E

reverse-lookup-zones.csv

       A   B   C            D                          E

  1. 0. 16. 172.        in-addr.arpa       1.16.172.in-addr.arpa
  2. 0. 24. 172.        in-addr.arpa       0.24.172.in-addr.arpa
  3. 1. 24. 172.        in-addr.arpa       1.24.172.in-addr.arpa
  4. 2. 24. 172.        in-addr.arpa       2.24.172.in-addr.arpa
  5. 3. 24. 172.        in-addr.arpa       3.24.172.in-addr.arpa
  6. 4. 24. 172.        in-addr.arpa       4.24.172.in-addr.arpa
  1. 0. 32. 172.        in-addr.arpa       0.32.172.in-addr.arpa
  2. 1. 32. 172.        in-addr.arpa       1.32.172.in-addr.arpa
  3. 2. 32. 172.        in-addr.arpa       2.32.172.in-addr.arpa
  4. 3. 32. 172.        in-addr.arpa       3.32.172.in-addr.arpa

Subcategorieën