展开全部
安装:
yum install -y dhcp.x86_64
或者rpm -ivh dhcp.x86_64
配置DHCP:
[root@test ~]# rpm -q dhcp
dhcp-4.1.1-30.P1.el6.x86_64
[root@test ~]# rpm -qc dhcp |grep conf
/etc/dhcp/dhcpd.conf
/etc/dhcp/dhcpd6.conf
/etc/sysconfig/dhcpd
/etc/sysconfig/dhcpd6
/etc/sysconfig/dhcrelay
[root@test ~]# vim /etc/dhcp/dhcpd.conf
修改为下面参数:
subnet 192.168.45.0 netmask 255.255.255.0 {
range 192.168.45.101 192.168.45.200;
option domain-name-servers 192.168.0.1;
option domain-name "ncie.org";
option routers 192.168.45.254;
option broadcast-address 192.168.45.255;
default-lease-time 720;
max-lease-time 2160;
}
开启服务
service dhcpd start
yum install -y dhcp.x86_64
或者rpm -ivh dhcp.x86_64
配置DHCP:
[root@test ~]# rpm -q dhcp
dhcp-4.1.1-30.P1.el6.x86_64
[root@test ~]# rpm -qc dhcp |grep conf
/etc/dhcp/dhcpd.conf
/etc/dhcp/dhcpd6.conf
/etc/sysconfig/dhcpd
/etc/sysconfig/dhcpd6
/etc/sysconfig/dhcrelay
[root@test ~]# vim /etc/dhcp/dhcpd.conf
修改为下面参数:
subnet 192.168.45.0 netmask 255.255.255.0 {
range 192.168.45.101 192.168.45.200;
option domain-name-servers 192.168.0.1;
option domain-name "ncie.org";
option routers 192.168.45.254;
option broadcast-address 192.168.45.255;
default-lease-time 720;
max-lease-time 2160;
}
开启服务
service dhcpd start
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
力控科技
2024-08-19 广告
2024-08-19 广告
ForceSCADA是力控科技信创产品的重要组成部分,具备完全自主知识产权,支持部署在Linux桌面版、服务器版、嵌入式等系统架构下。使用ForceSCADA可以搭建创新性高、扩展性佳、融合度强的SCADA平台,进而构建高效、智能化的监控中...
点击进入详情页
本回答由力控科技提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询