dhcp的客户端大致可以分为windows和linux两种系统。
Linux下的DHCP服务器的地址池在分配IP地址的时候,是从最后面的IP地址先开始分配的。
所以,在下面第一个被获取到的IP地址为。
对于windows的客户端,只需要设置为“自动获取IP地址”即可,设置比较简单。
然后,在命令DOS窗口中使用ipconfig /all来查看获取到的IP地址和DHCP服务器的地址。
Windows DHCP客户端的配置 C:> ipconfig /all :
Description . . . . . . . . . . .: AMD PCNET Family PCI EthernetAdapter
Physical Address. . . . . . . . . : 00-0C-29-C6-37-DEDHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes IP
Address. . . . . . . . . . . . : . . . . . . . . . . :. . . . . . . . : . . . . . . . . . . : . . . . .. . . . . : . . . . . . . . . : 2006年8月16日12:29:16Lease Expires . . . . . . . . . . : 2006年8月16日18:29:16对于Linux的客户端,则需要修改以下网络配置文件,设置网卡的IP地址为自动获取。
查看/var/lib/dhcp/,可以看到dhcp客户端获取IP地址的情况。 [root@azuo etc]# cat /var/lib/dhcp/
#AlltimesinthisfileareinUTC(GMT),notyourlocaltimezone. Thisis
# not a bug, so please don't ask about it. There is no portable way to# store leases in the local timezone, so please don't request this as a# feature. If this is
5 / 8
inconvenient or confusing to you, we sincerely# apologize. Seriously, though - don't ask.
# The format of this file is documented in the (5) manual page.# This lease file was written by isc-dhcp-V3.0.1
lease {
binding state active; next binding state free;
hardware ethernet 00:0c:29:c6:37:de; uid \client-hostname \}
选做内容:
PXE中的DHCP的配置 DHCP-PXE的配置 #vi /etc/
ddns-update-style interim; ignore client-updates; allow booting; allow bootp;
option routerssubnet-maskdomain-name option domain-name-serversnetmask {
6 / 8
default-lease-time 21600; max-lease-time 43200; rangedynamic-bootp
########################################### [100%] 1:tftp
########################################### [100%] [root@azuoroot]#rpm-ivh
########################################### [100%] 1:tftp-server\42a./mnt42a.
########################################### [100%] 如上面所示,安装成功。
修改/etc/xinetd/tftd,主要是把tftp服务进程托管给xineted进程,这里只要把disable=no,该为yes即可
代码: service tftp {
socket_type= dgram
protocol= udpwait= yesuser= rootserver= /usr/sbin/
server_args= -s /tftpbootdisable= no sg文件可以从Redhat的第一张光盘的/isolinux/目录下找到。
7 / 8
然后把它们都拷贝到该目录下即可。 这样就完成了网络启动的全部过程。
完成启动之后,我们可以选择NFS、FTP和HTTP三种方式来完成Linux的远程安装,这里我们选择的NFS方式。具体步骤如下:
配置NFS服务 #vi/etc/exports /home/iso/ #mkdir/home/iso
拷贝安装LINUX的ISO文件到这个目录 远程安装截图:
1、在开机的时候按住F12键,选择远程启动的方式来启动主机。 2、
剩下的操作和Linux时安装时候的操作一样,就不再详细介绍了。
8 / 8
相关推荐: