一,首先是安装DHCP的rpm包 ,然后配置下列文档,如在10.255.6.0子网掩码是255.255.255.0 的

DHCP的配置文档/etc/dhcpd.conf

====================================================

ddns-update-style interim;

ignore client-updates;

subnet 10.255.6.0 netmask 255.255.255.0 {

# --- default gateway

option routers                  10.255.0.1;

option subnet-mask              255.255.0.0;

option nis-domain               "domain.org";

option domain-name              "domain.org";

option domain-name-servers      192.168.1.1;

option time-offset              -18000; # Eastern Standard Time

#       option ntp-servers              10.255.0.1;

#       option netbios-name-servers     10.255.0.1;

# --- Selects point-to-point node (default is hybrid). Don't change this unless

# -- you understand Netbios very well

#       option netbios-node-type 2;

range dynamic-bootp 10.255.6.0 10.255.6.250;

default-lease-time 21600;

max-lease-time 43200;

# we want the nameserver to appear at a fixed address

host ns {

next-server marvin.redhat.com;

hardware ethernet 12:34:56:78:AB:CD;

fixed-address 207.175.42.254;

}

}

=========================================================

以下是分配IP地址的数据库文件  /var/lib/dhcp/dhcpd.leases

=========================================================

# All times in this file are in UTC (GMT), not your local timezone.   This is

# 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 inconvenient or confusing to you, we sincerely

# apologize.   Seriously, though - don't ask.

# The format of this file is documented in the dhcpd.leases(5) manual page.

# This lease file was written by isc-dhcp-V3.0pl1

lease 10.255.6.163 {

starts 0 2008/06/22 09:52:01;

ends 0 2008/06/22 15:52:01;

binding state active;

next binding state free;

hardware ethernet 00:e0:4d:55:db:68;

uid "/001/000/340MU/333h";

client-hostname "C50039780A554CA";

}

lease 10.255.6.163 {

starts 0 2008/06/22 09:53:01;

ends 0 2008/06/22 15:53:01;

binding state active;

next binding state free;

hardware ethernet 00:e0:4d:55:db:68;

uid "/001/000/340MU/333h";

client-hostname "C50039780A554CA";

}

lease 10.255.6.163 {

starts 0 2008/06/22 09:53:01;

ends 0 2008/06/22 09:53:13;

tstp 0 2008/06/22 09:53:13;

binding state free;

hardware ethernet 00:e0:4d:55:db:68;

uid "/001/000/340MU/333h";

client-hostname "C50039780A554CA";

}

lease 10.255.6.163 {

starts 0 2008/06/22 09:53:25;

ends 0 2008/06/22 15:53:25;

binding state active;

next binding state free;

hardware ethernet 00:e0:4d:55:db:68;

uid "/001/000/340MU/333h";

client-hostname "C50039780A554CA";

}

lease 10.255.6.153 {

starts 0 2008/06/22 09:58:29;

ends 0 2008/06/22 15:58:29;

binding state active;

next binding state free;

hardware ethernet 00:18:37:06:a2:cf;

uid "/001/000/0307/006/242/317";

client-hostname "MICROSOF-D7C616";

}

lease 10.255.6.153 {

starts 0 2008/06/22 09:58:55;

ends 0 2008/06/22 15:58:55;

binding state active;

next binding state free;

hardware ethernet 00:18:37:06:a2:cf;

uid "/001/000/0307/006/242/317";

client-hostname "MICROSOF-D7C616";

}

lease 10.255.6.153 {

starts 0 2008/06/22 09:58:55;

ends 0 2008/06/22 09:59:03;

tstp 0 2008/06/22 09:59:03;

binding state free;

hardware ethernet 00:18:37:06:a2:cf;

uid "/001/000/0307/006/242/317";

client-hostname "MICROSOF-D7C616";

}

lease 10.255.6.153 {

starts 0 2008/06/22 10:00:29;

ends 0 2008/06/22 16:00:29;

binding state active;

next binding state free;

hardware ethernet 00:18:37:06:a2:cf;

uid "/001/000/0307/006/242/317";

client-hostname "MICROSOF-D7C616";

}

============================================

到此dhcp算是配置成功

linux的dhcp的安装,linux下DHCP的安装配置相关推荐

  1. linux yum 安装mysql_Linux下使用yum安装MySQL

    linux下使用yum安装mysql 1.安装 查看有没有安装过: yum list installed mysql* rpm -qa | grep mysql* 查看有没有安装包: yum list ...

  2. 手把手教学,带你在Linux、OS X、Windows下Docker的安装

    一.前言 目前,Docker已经支持非常多的Linux平台,包括Ubuntu和RHEL(Red Hat Enterprise Linux,Red Hat企业版Linux).除此之外,Docker还支持 ...

  3. linux c mysql安装_Linux下MySQL的安装

    Linux下MySQL的安装 MySQL安装 安装编译工具及文件 yum -y install gcc gcc-c++ make autoconf libtool-ltdl-devel gd-deve ...

  4. linux一键安装python_Linux下,一键安装python3;适用于Centos、Debian、Ubuntu等

    提示:如果官网是英文页面,建议使用谷歌浏览器能同步翻译页面.点击下载[谷歌浏览器最新绿色便携版] 注意:部分文章发布时间较长,可能存在未知因素,购买时建议在本站搜索商家名称,先充分了解商家动态. 交流 ...

  5. crossover linux 中文乱码,在Ubuntu Kylin下用Crossover安装东方财富出现内容乱码的处理...

    如果你在优麒麟Ubuntu Kylin 20.04系统下使用Crossover安装东方财富网客户端后出现资讯内容乱码,请按以下方案处理. 产生的问题 在优麒麟Ubuntu Kylin系统里有Cross ...

  6. ubuntu安装python_Linux下的Python开发配置鸭

    linxu下python环境的开发配置 前言 linux是目前为止最好上手的系统也是最适合新手学习的系统而python是可以最快让大家知道怎么写出东西的语言,简单的几十个小时的学习之后就只需要看懂库的 ...

  7. mysql window下 安装udf_Windows下MySQL下载安装、配置与使用

    用过MySQL之后,不论容量的话,发现比其他两个(sql server .oracle)好用的多,一下子就喜欢上了.下面给那些还不知道怎么弄的童鞋们写下具体的方法步骤. (我这个写得有点太详细了,甚至 ...

  8. unbuntu cmake安装mysql_Ubuntu下源码安装MySQL-5.5.25a

    Ubuntu下源码安装MySQL-5.5.25a,今天在Ubuntu Linux下本来玩玩Android的源码看下的.那小的怎看根目录的空间已然不多.所以想把 今天在Ubuntu Linux下本来玩玩 ...

  9. 本地虚拟机上的docker安装mysql_linux下利用Docker安装mysql的步骤

    作为一个测试人员,在学习的过程中,可能经常需要去在linux下安装一些软件,有的软件通过搜索别人的博客教程进行安装的话,随着一些软件的升级,以及虚拟机/服务器镜像版本不一致等外部因素,都有可能导致安装 ...

  10. python3.6.5安装tensorflow_Win10下用Anaconda安装TensorFlow(图文教程)

    笔者之前在学习TensorFlow,也在自己的笔记本上完成了安装,在PyCharm中进行学习.但是最近为了使用python的科学计算环境,我把之前的环境卸载了,并用Anaconda重新安装了Tenso ...

最新文章

  1. 网页制作的中的一些工具代码
  2. Google I/O 2017 大会时间表出炉:安卓 8.0 时代来临
  3. Mac OS X工具:版本控制SVN
  4. Android-Binder进程间通讯机制-多图详解
  5. dataTables基础函数变量
  6. 【OpenStack】OpenStack系列1之OpenStack本地开发环境搭建向社区贡献代码
  7. 授权码模式-获取令牌
  8. 2020蓝桥杯省赛---java---A---2(既分数组)
  9. linux操作系统之线程
  10. Web前端笔记-画布拖动及放缩(two.js)
  11. laravel代码提示:laravel-ide-helper
  12. java程序员 css_好程序员Web前端分享前端CSS篇
  13. Chromium版Edge体验——几个理由告诉你为什么卸载Chrome!
  14. 据说,上海AI产业规模700亿,包揽全国1/3人才
  15. css选择器([class*= icon-], [class^=icon-] 的区别)
  16. AppCan 携手腾讯微博开放平台共推跨平台开发工具
  17. 2022年11月份,NPDP产品经理认证即将改版,到底改哪些内容?
  18. php 取余数函数,PHP取余函数介绍MOD(x,y)与x%y
  19. 程序员的忠告:为什么避免使用 SELECT * 查询,效率低?
  20. Mind Map - FreeMind

热门文章

  1. 2019.2.2牛客寒假算法基础集训营
  2. 给笔记本更换SSD硬盘
  3. OpenGL笔记5 shader 调试信息获取 Debug
  4. 可变字符串 插入,删除,替换,赋值
  5. zendstudio for mac破解版
  6. Python第十课(函数3)
  7. 与我们息息相关的internet服务(2)---WWW服务
  8. php 进程管理及操作
  9. CRC 冗余校验计算
  10. Android中SlidingDrawer介绍【安卓进化三十四】