dhcp服务
admin
2023-03-01 11:21:18
0

1.服务端
(1) 配置服务器为ip静态
1.通过图形修改 :nm-connection-editor

     2.配置Yum源
     cd /etc/yum.repos.d   
     ls   
     vim  rhel_dvd.repo   配置yum源
     yum inatll dhcp        安装dhcp
     yum clean all           清空yum缓存
     3.vim /etc/dhcp/dhcpd.conf              查看配置文件

cp /usr/share/doc/dhcp/dhcpd.conf.example(配置文件模板)  复制配置文件模板到/etc/dhcp/dhcpd.conf
             5.vim /etc/dhcp/dhcpd.conf          修改配置文件

**编辑内容**
             6 # option definitions common to all supported networks...

  7 option domain-name "westos.com";                         域名

  8 option domain-name-servers 172.25.254.250;           dns地址

 9

10 default-lease-time 600;                                默认租约期限

11 max-lease-time 7200;                                  最长租约期限

12 

13 # Use this to enble / disable dynamic dns updates globally.

14 #ddns-update-style none;

15 

16 # If this DHCP server is the official DHCP server for the local

17 # network, the authoritative directive should be uncommented.

18 #authoritative;

19 

20 # Use this to send dhcp log messages to a different log file (you also

21 # have to hack syslog.conf to complete the redirection).

22 log-facility local7;                                       日志级别

23 

24 # No service will be given on this subnet, but declaring it helps the

25 # DHCP server to understand the network topology.

26 

27 

28 

29 # This is a very basic subnet declaration.

30 

31 subnet 172.25.254.0 netmask 255.255.255.0 {             设定分配ip的网络位

32   range 172.25.254.200 172.25.254.220;                   ip地址池

33   option routers 172.25.254.250;                         客户主机获得的网关

dhcp服务dhcp服务dhcp服务
客户端
1.编辑配置文件修改dhcp:vim /etc/sysconfig/network-scripts/ifcfg-eth0
将BOOTPROTO=dhcp
2.systemctl restart network 重启服务获得ip
3.3.ifconfig **查看ip

相关内容

热门资讯

玩家分享攻略“咸宁晃晃麻将.真... 家人们!今天小编来为大家解答咸宁晃晃麻将透视挂怎么安装这个问题咨询软件客服徽9752949的挂在哪里...
今日重大发现“皮皮跑胡子.怎么... 您好:皮皮跑胡子这款游戏可以开挂,确实是有挂的,需要了解加客服微信【4282891】很多玩家在这款游...
终于了解“潮汕掌上娱.辅助器?... 家人们!今天小编来为大家解答潮汕掌上娱透视挂怎么安装这个问题咨询软件客服徽9784099的挂在哪里买...
终于懂了“约约麻将.怎么开挂?... 终于懂了“约约麻将.怎么开挂?”透视曝光猫腻您好,约约麻将这个游戏其实有挂的,确实是有挂的,需要了解...
玩家攻略科普“八闽福建麻将.辅... 您好:八闽福建麻将这款游戏可以开挂,确实是有挂的,需要了解加客服微信【9752949】很多玩家在这款...
今日重大发现“新三哥玩.可以开... 网上科普关于“新三哥玩有没有挂”话题很是火热,小编也是针对新三哥玩作*弊开挂的方法以及开挂对应的知识...
今日重磅消息“上海敲麻.到底是... 网上科普关于“上海敲麻有没有挂”话题很是火热,小编也是针对上海敲麻作*弊开挂的方法以及开挂对应的知识...
【今日要闻】“新玉海楼茶苑.可... 有 亲,根据资深记者爆料新玉海楼茶苑是可以开挂的,确实有挂(咨询软件无需...
终于了解“杭麻圈.开挂器?”原... 有 亲,根据资深记者爆料杭麻圈是可以开挂的,确实有挂(咨询软件无需打开直...
玩家分享攻略“棋乐麻将.怎么开... 您好:棋乐麻将这款游戏可以开挂,确实是有挂的,需要了解加客服微信【4282891】很多玩家在这款游戏...