时不我待 时不我待 ::
首页 > 服务器 > Linux > DHCP实验 FC6

DHCP实验 FC6

发布时间:2015-08-01  来源/作者:Linux社区 分类:Linux
DHCP实验 FC6 
By - Spirit
//做实验之前你的dhcp服务器必须有静态ip否则dhcp服务器无法启动
---
rpm -ivh dhcp-*.rpm
/etc/rc.d/init.d/dhcpd start
---
cp /usr/share/doc/dhcp-3*/dhcpd.conf.sample /etc/dhcpd.conf
----编辑/etc/dhcpd.conf
#Global
default-lease-time 259200;
max-lease-time 777600;
server-identifier 192.168.0.1;
option domain-name "sp45.net"
option domain-name-servers 192.168.0.2,192.168.0.10;
option broadcast-address 192.168.0.255;
option x-display-manager 192.168.0.23;
option time-servers 192.168.0.24;
subnet 192.168.0.0 netmask 255.255.255.0//设置网段
{
range 192.168.0.2 192.168.0.100;//指定ip地址池
option routers 192.168.0.1;//网关地址
option domain-name-servers 192.168.0.1;//分配dns服务器
group//给指定的机器固定的ip
{
host sp45.com
{
hardware ethernet 00:80:c8:6f:7e:fe;//指定机器的mac地址
fixed-address 192.168.1.150;//给上边这个mac地址的ip
}
}
}

推荐文章

热门标签