linux 系统下DHCP服务器 配置方法
人气:01、 安装dhcp服务器软件
Rhel4系统光盘中包含rpm格式的dhcp服务器软件包,包名称是dhcp-3.0.1-12_EL.i386.rpm
#rpm –ivh dhcp-3.0.1-12_EL.I386.rpm |
#cp /usr/share/doc/dhcp-3.0.1/dhcpd.conf.sample /etc/dhcpd.conf #vi /etc/dhcpd.conf |
Subnet 192.168.1.0 netmask 255.255.255.0 { ranga 192.168.1.2 192.168.1.128 ; …….. } |
default—lease—time 21600; max—lease—time 43200; |
option routers 192.168.1.1; option subnet-mask 255.255.255.0; |
#cat /etc/sysconfig/dhcpd #Command line options here DHCPDARGS= |
DHCPDARGD=eth0 |
service dhcpd restart |
加载全部内容