2.2. 添加DHCP Role并配置DHCPv4和DHCPv6
DHCP服务原理简介:
Dynamic Host Configuration Protocol (DHCP) is a client/server protocol that automatically provides an Internet Protocol (IP) host with its IP address and other related configuration information such as the subnet mask and default gateway. All Windows-based clients include the DHCP client as part of TCP/IP.
The network administrator establishes DHCP servers that maintain TCP/IP configuration information and provide address configuration to DHCP-enabled clients in the form of a lease offer. The DHCP server stores the configuration information in a database that includes:
? Valid TCP/IP configuration parameters for all clients on the network.
? Valid IP addresses, maintained in a pool for assignment to clients, as well as excluded addresses.
? Reserved IP addresses associated with particular DHCP clients. This allows consistent assignment of a single IP address to a single DHCP client. ? The lease duration, or the length of time for which the IP address can be used before a lease renewal is required.
DHCP Role添加过程如图2a~w所示。整体步骤如下:
I. 对将要作为PXE网口的网口配置静态IPv4和IPv6地址; II. 添加DHCP Role;
III. 进入DHCP Configuration Wizard配置DHCPv4; IV. 进入DHCP Configuration Wizard配置DHCPv6。
I. 对将要作为PXE网口的网口配置静态IPv4和IPv6地址
图2a. 给要作为PXE的网口配置IPv4地址,并配置Default gateway和DNS server,确认即可(本例中静态IP为192.168.1.*网段)
图2b. 给要作为PXE的网口配置IPv6地址,并配置DNS server,确认即可(本例中静态IP为2001:DB8::*网段);
注意此处不要配置Default gateway,而是配置完IPv6在发布IPv6的时候用命令行添加默认路由
II. 添加DHCP Role
图2c. 勾选DHCP Role并Install完成
图2d. 进入DHCP配置Wizard