第一范文网 - 专业文章范例文档资料分享平台

Linux下DHCP服务器的配置

来源:用户分享 时间:2025/8/8 17:40:53 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

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

搜索更多关于: Linux下DHCP服务器的配置 的文档
Linux下DHCP服务器的配置.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c0pz9s4zbth47le14lopx1jxus0hkxz00vx0_2.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top