# ============================================================== # 服务器 192.168.0.200 的配置信息 # ============================================================== # ===================================== # Add Classes # ===================================== Dhcp Server 192.168.0.200 Add Class "默认路由和远程访问类别" "远程访问客户端的用户类别" 525241532e4d6963726f736f6674 0 b Dhcp Server 192.168.0.200 Add Class "默认 BOOTP 的类别" "BOOTP 客户端的用户类别" 424f4f54502e4d6963726f736f6674 0 b Dhcp Server 192.168.0.200 Add Class "Microsoft Windows 2000 选项" "Windows 2000 客户端的 Microsoft 供应商特定选项" 4d53465420352e30 1 b Dhcp Server 192.168.0.200 Add Class "Microsoft Windows 98 选项" "Windows 98 客户端的 Microsoft 供应商特定选项" 4d534654203938 1 b Dhcp Server 192.168.0.200 Add Class "Microsoft 选项" "适用于 Windows 98 和 Windows 2000 客户端的 Microsoft 供应商特定选项" 4d534654 1 b Dhcp Server 192.168.0.200 Add Class "gPXE" "gPXE" 67505845 0 b # ===================================== # Add Classes 结束 # ===================================== # ===================================== # Add Optiondef # ===================================== Dhcp Server 192.168.0.200 Add Optiondef 249 "无类别静态路由" BINARY 0 comment="目标,掩码和路由器 IP 地址,按优先顺序排列" Dhcp Server 192.168.0.200 Add Optiondef 1 "子网掩码" IPADDRESS 0 comment="以网络字节排列的子网掩码" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 2 "时间偏移" DWORD 0 comment="UCT 偏移(以秒计)" 0 Dhcp Server 192.168.0.200 Add Optiondef 3 "路由器" IPADDRESS 1 comment="按首选项排序的路由器地址阵列" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 4 "时间服务器" IPADDRESS 1 comment="按首选项排序的时间服务器地址阵列" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 5 "名称服务器" IPADDRESS 1 comment="按首选项排列的名称服务器阵列[IEN 116]" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 6 "DNS 服务器" IPADDRESS 1 comment="按首选项排序的 DNS 服务器阵列" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 7 "日志服务器" IPADDRESS 1 comment="子网上的 MIT_LCS UDP 日志服务器阵列" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 8 "Cookie 服务器" IPADDRESS 1 comment="Cookie 服务器阵列,RFC 865" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 9 "LPR 服务器" IPADDRESS 1 comment="按首选项排序的 RFC 1179 服务器阵列" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 10 "Impress 服务器" IPADDRESS 1 comment="Imagen Impress 服务器阵列" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 11 "资源定位服务器" IPADDRESS 1 comment="按首选项排序的子网上的 RFC 887 ResLoc 服务器阵列" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 12 "主机名" STRING 0 comment="客户端的主机名,RFC 1035 字符集" "" Dhcp Server 192.168.0.200 Add Optiondef 13 "启动文件大小" WORD 0 comment="启动映像文件的大小(以 512 字节块为单位)" 0 Dhcp Server 192.168.0.200 Add Optiondef 14 "现场转储文件" STRING 0 comment="故障转储文件的路径名" "" Dhcp Server 192.168.0.200 Add Optiondef 15 "DNS 域名" STRING 0 comment="客户端的 DNS 域名解析" "" Dhcp Server 192.168.0.200 Add Optiondef 16 "交换服务器" IPADDRESS 0 comment="客户端的交换服务器地址" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 17 "根路径" STRING 0 comment="客户端的根磁盘的路径名,字符集 NVT ASCII" "" Dhcp Server 192.168.0.200 Add Optiondef 18 "扩展路径" STRING 0 comment="选项扩展的 tftp 文件" "" Dhcp Server 192.168.0.200 Add Optiondef 19 "IP 层转发" BYTE 0 comment="禁用/启用 IP 数据包在此客户端的转发" 0 Dhcp Server 192.168.0.200 Add Optiondef 20 "非本地的源路由" BYTE 0 comment="禁用/启用非本地的数据报" 0 Dhcp Server 192.168.0.200 Add Optiondef 21 "策略筛选器掩码" IPADDRESS 1 comment="用于筛选源路由的目标/掩码 IP 地址对" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 22 "最大 DG 重组大小" WORD 0 comment="客户端重组的数据报最大尺寸;最大 576" 0 Dhcp Server 192.168.0.200 Add Optiondef 23 "默认的 IP 存在时间" BYTE 0 comment="供客户端在传出的 DG 上使用的默认 TTL" 0 Dhcp Server 192.168.0.200 Add Optiondef 24 "路径 MTU 老化超时" DWORD 0 comment="在数秒内老化路径 MTU 值将超时;RFC 1191" 0 Dhcp Server 192.168.0.200 Add Optiondef 25 "路径 MTU 停滞表" WORD 1 comment="MTU 探索大小,按大小排序,所有 >= 68" 0 Dhcp Server 192.168.0.200 Add Optiondef 26 "MTU 选项" WORD 0 comment="MTU 探索大小,>= 68" 0 Dhcp Server 192.168.0.200 Add Optiondef 27 "所有子网均为本地" BYTE 0 comment="客户端假设所有子网均为本地" 0 Dhcp Server 192.168.0.200 Add Optiondef 28 "广播地址" IPADDRESS 0 comment="广播地址" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 29 "执行掩码搜索" BYTE 0 comment="客户端应使用 ICMP 来搜索子网掩码" 0 Dhcp Server 192.168.0.200 Add Optiondef 30 "掩码提供者选项" BYTE 0 comment="客户端应通过 ICMP 响应子网掩码请求" 0 Dhcp Server 192.168.0.200 Add Optiondef 31 "执行路由器搜索" BYTE 0 comment="客户端应使用 RFC 1256 请求路由器" 0 Dhcp Server 192.168.0.200 Add Optiondef 32 "路由器请求地址" IPADDRESS 0 comment="供路由器请求使用的地址" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 33 "静态路由选项" IPADDRESS 1 comment="按照优先级排列目标/路由器地址对" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 34 "尾端封装" BYTE 0 comment="客户端应该协商使用尾端(RFC 983)" 0 Dhcp Server 192.168.0.200 Add Optiondef 35 "ARP 高速缓存超时" DWORD 0 comment="以秒为单位的 ARP 缓存项目超时时间" 0 Dhcp Server 192.168.0.200 Add Optiondef 36 "以太网封装" BYTE 0 comment="0=> 客户端应该使用 ENet 版本 2;1=> IEEE802.3" 0 Dhcp Server 192.168.0.200 Add Optiondef 37 "默认的 TCP 存在时间" BYTE 0 comment="当发送 TCP 段时客户端使用的 TTL" 0 Dhcp Server 192.168.0.200 Add Optiondef 38 "“保持连接”间隔" DWORD 0 comment="以秒为单位的保持连接超时时间" 0 Dhcp Server 192.168.0.200 Add Optiondef 39 "“保持连接”垃圾" BYTE 0 comment="发送垃圾八进制数" 0 Dhcp Server 192.168.0.200 Add Optiondef 40 "NIS 域名" STRING 0 comment="网络信息服务(NIS)域名" "" Dhcp Server 192.168.0.200 Add Optiondef 41 "NIS 服务器" IPADDRESS 1 comment="客户端子网上的 NIS 服务器地址" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 42 "NTP 服务器" IPADDRESS 1 comment="Network 时间协议(NTP)服务器的地址" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 43 "供应商特定信息" BINARY 0 comment="内嵌的供应商特定选项" 00 Dhcp Server 192.168.0.200 Add Optiondef 44 "WINS/NBNS 服务器" IPADDRESS 1 comment="NBNS 地址(按优先级排列)" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 45 "NetBIOS over TCP/IP NBDD" IPADDRESS 1 comment="按优先级排列的 TCP/IP NBDD 上的 NetBIOS 地址" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 46 "WINS/NBT 节点类型" BYTE 0 comment="0x1 = B-节点,0x2 = P-节点,0x4 = M-节点,0x8 = H-节点" 0 Dhcp Server 192.168.0.200 Add Optiondef 47 "NetBIOS 作用域 ID" STRING 0 comment="TCP/IP 上的 NetBIOS 作用域 ID" "" Dhcp Server 192.168.0.200 Add Optiondef 48 "X Window 系统字体" IPADDRESS 1 comment="X Window 的字体服务器阵列" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 49 "X Window 系统显示" IPADDRESS 1 comment="X Window 的显示管理服务器阵列" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 51 "租约" DWORD 0 comment="客户端 IP 地址租约时间(以秒计)。" 0 Dhcp Server 192.168.0.200 Add Optiondef 58 "更新(T1)时间值" DWORD 0 comment="介于指派地址到 RENEWING 状态之间的时间" 0 Dhcp Server 192.168.0.200 Add Optiondef 59 "重新绑定(T2)时间值" DWORD 0 comment="从指派地址到 REBINDING 状态的时间" 0 Dhcp Server 192.168.0.200 Add Optiondef 64 "NIS+ 域名" STRING 0 comment="客户端的 NIS+ 域名。" "" Dhcp Server 192.168.0.200 Add Optiondef 65 "NIS+ 服务器" IPADDRESS 1 comment="指出 NIS+ 服务器的 IP 地址列表" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 66 "启动服务器主机名" STRING 0 comment="TFTP 启动服务器主机名" "" Dhcp Server 192.168.0.200 Add Optiondef 67 "启动文件名" STRING 0 comment="启动文件名" "" Dhcp Server 192.168.0.200 Add Optiondef 68 "移动 IP 主代理" IPADDRESS 1 comment="按优先级排列的移动 IP 主代理" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 69 "简单邮件传输协议(SMTP)服务器" IPADDRESS 1 comment="可供客户端使用的 SMTP 服务器列表" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 70 "邮局协议(POP3)服务器" IPADDRESS 1 comment="可供客户端使用的 POP3 服务器列表" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 71 "网络新闻传输协议(NNTP)服务器" IPADDRESS 1 comment="可供客户端使用的 NNTP 服务器列表" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 72 "万维网 (WWW) 服务器" IPADDRESS 1 comment="可供客户端使用的 WWW 服务器列表" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 73 "指状服务器" IPADDRESS 1 comment="可供客户端使用的指状服务器列表" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 74 "Internet 中继聊天 (IRC) 服务器" IPADDRESS 1 comment="可供客户端使用的 IRC 服务器列表" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 75 "StreetTalk 服务器" IPADDRESS 1 comment="可供客户端使用的 StreetTalk 服务器列表" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 76 "StreetTalk 目录帮助 (STDA) 服务器" IPADDRESS 1 comment="可供客户端使用的 STDA 服务器列表" 0.0.0.0 Dhcp Server 192.168.0.200 Add Optiondef 1 "Microsoft 禁用 Netbios 选项 " DWORD 0 vendor="Microsoft 选项" comment="为 Microsoft Windows 2000 客户端启用或禁用 Netbios 的选项" 1 Dhcp Server 192.168.0.200 Add Optiondef 2 "Microsoft 关机释放 DHCP 租约的选项" DWORD 0 vendor="Microsoft 选项" comment="为启用或禁用 Windows 2000 客户端在关闭时释放 DHCP 租约的选项" 1 Dhcp Server 192.168.0.200 Add Optiondef 3 "Microsoft 默认路由器跃点数基" DWORD 0 vendor="Microsoft 选项" comment="Microsoft Windows 2000 客户端的默认路由器跃点数基" 1 Dhcp Server 192.168.0.200 Add Optiondef 1 "Microsoft 禁用 Netbios 选项 " DWORD 0 vendor="Microsoft Windows 2000 选项" comment="为 Microsoft Windows 2000 客户端启用或禁用 Netbios 的选项" 1 Dhcp Server 192.168.0.200 Add Optiondef 2 "Microsoft 关机释放 DHCP 租约的选项" DWORD 0 vendor="Microsoft Windows 2000 选项" comment="为启用或禁用 Windows 2000 客户端在关闭时释放 DHCP 租约的选项" 1 Dhcp Server 192.168.0.200 Add Optiondef 3 "Microsoft 默认路由器跃点数基" DWORD 0 vendor="Microsoft Windows 2000 选项" comment="Microsoft Windows 2000 客户端的默认路由器跃点数基" 0 # ===================================== # Add Optiondef 结束 # ==================================== # ===================================== # Set Optionvalue # ===================================== # ===================================== # Set Optionvalue 结束 # ===================================== Dhcp Server 192.168.0.200 Set AuditLog "C:\WINDOWS\System32\dhcp" Dhcp Server 192.168.0.200 Set DatabaseBackupInterval 60 Dhcp Server 192.168.0.200 Set DatabaseBackupPath "C:\WINDOWS\System32\dhcp\backup" Dhcp Server 192.168.0.200 Set DatabaseCleanupInterval 60 Dhcp Server 192.168.0.200 Set DatabaseLoggingFlag 1 Dhcp Server 192.168.0.200 Set DatabaseName "dhcp.mdb" Dhcp Server 192.168.0.200 Set DatabasePath "C:\WINDOWS\System32\dhcp" Dhcp Server 192.168.0.200 Set DatabaseRestoreFlag 0 Dhcp Server 192.168.0.200 Set DetectConflictRetry 0 # ===================================== # Add Scope # ===================================== Dhcp Server 192.168.0.200 add scope 192.168.0.0 255.255.255.0 "test" "" Dhcp Server 192.168.0.200 Scope 192.168.0.0 set state 1 # ====================================================================== # 开始 Add Iprange 到作用域 192.168.0.0,服务器 192.168.0.200 # ====================================================================== Dhcp Server 192.168.0.200 Scope 192.168.0.0 Add iprange 192.168.0.201 192.168.0.222 # ====================================================================== # 结束 Add Iprange 到作用域 192.168.0.0,服务器 192.168.0.200 # ====================================================================== # ====================================================================== # 开始 Add Excluderange 到作用域 : 192.168.0.0,服务器 : 192.168.0.200 # ====================================================================== # ====================================================================== # 结束 Add Excluderange 到作用域 : 192.168.0.0,服务器 : 192.168.0.200 # ====================================================================== # ====================================================================== # 开始 Add OptionValue 到作用域 : 192.168.0.0,服务器 : 192.168.0.200 # ====================================================================== Dhcp Server 192.168.0.200 Scope 192.168.0.0 set optionvalue 51 DWORD "691200" Dhcp Server 192.168.0.200 Scope 192.168.0.0 set optionvalue 6 IPADDRESS "202.102.134.68" Dhcp Server 192.168.0.200 Scope 192.168.0.0 set optionvalue 3 IPADDRESS "192.168.0.1" Dhcp Server 192.168.0.200 Scope 192.168.0.0 set optionvalue 12 STRING "test" Dhcp Server 192.168.0.200 Scope 192.168.0.0 set optionvalue 17 STRING "iscsi:192.168.0.200::3260::test" Dhcp Server 192.168.0.200 Scope 192.168.0.0 set optionvalue 66 STRING "192.168.0.200" Dhcp Server 192.168.0.200 Scope 192.168.0.0 set optionvalue 67 STRING "gpxe.pxe" Dhcp Server 192.168.0.200 Scope 192.168.0.0 set optionvalue 67 STRING user="gPXE" "" # ====================================================================== # 结束 Add OptionValue 到作用域 : 192.168.0.0,服务器 : 192.168.0.200 # ====================================================================== # ====================================================================== # 开始 Add ReservedIp 到作用域 : 192.168.0.0,服务器 : 192.168.0.200 # ====================================================================== # ====================================================================== # 结束 Add ReservedIp 到作用域 : 192.168.0.0,服务器 : 192.168.0.200 # ====================================================================== # ===================================== # Add Scope 结束 # ===================================== # ===================================== # Add Super Scope # ===================================== # ===================================== # Add Super Scope 结束 # ===================================== # ===================================== # Add MScope # ===================================== # ===================================== # Add MScope 结束 # ===================================== # ============================================================== # 服务器 192.168.0.200 的配置信息结束 # ==============================================================