jscooksey / Convert-WindowsDHCPToCisco

Export Windows Server DHCP config and convert to Cisco CLI
GNU General Public License v3.0
0 stars 0 forks source link

Convert Windows DHCP to Cisco CLI

Version 1.1.0

Justin S. Cooksey - 2023-04-21

Script to export DHCP from a Windows Server DHCP database (exports to XML) and then convert the scope options and static leases to Cisco CLI to configure a router to take over the DHCP role on the network.

Usage

Convert-WindowsDHCPToCisco

DHCP Options Documentation

Wikipedia DHCP Options table

Actual RFC2312

Currently handles DHCP Options

Code Option Description Cisco Output
3 Default Gateway default-router
4 Time Server ignoring
6 Domain Nameserver dns-server
15 Domain Name domain-name
42 NTP Servers option 42 ip
51 Lease time ignoring
66 TFTP Server next-server
67 Boot filename bootfile
81 MS DHCP Name Protection ignoring
161 FTP Server option 161 ip
162 Path option 162 ascii
242 Avaya option 242 ascii
252 Proxy PAC URL option 252 ascii