時(shí)間:2015-06-28 00:00:00 來(lái)源:IT貓撲網(wǎng) 作者:網(wǎng)管聯(lián)盟 我要評(píng)論(0)
在以往的學(xué)習(xí)中,我們已經(jīng)了解了DHCP服務(wù)的基礎(chǔ)內(nèi)容,相對(duì)的我們也學(xué)會(huì)了Windows系統(tǒng)下的DHCP服務(wù)器的配置。接下來(lái)我們主要講解一下Linux DHCP服務(wù)器的配置內(nèi)容。
Linux DHCP服務(wù)器配置
1.安裝Linux DHCP服務(wù)軟件包
RHEL4第四張光盤,dhcp-3.0.1-12_EL.i386.rpm
掛載 mount /dev/cdrom /media/cdrom/
安裝DHCP包
rpm -ivh /media/cdrom/RedHat/RPMS/dhcp-3.0.1-12_EL.i386.rpm
2. dhcp.conf配置文件解析
復(fù)制樣例文件到 /etc/
cp /usr/share/doc/dhcp-3.0.1/dhcpd.conf.sample /etc/dhcpd.conf
Linux DHCP服務(wù)器配置實(shí)例
Ddns-update-style interim;
Ignore client-updates;
Subnet 10.0.0.0 netmask 255.0.0.0 {
# --- default gateway
option routers "10.0.0.0.1";
option subnet-mask? "255.0.0.0";
# option nis-domain??? "domain.org";
# option domain-name? "domain.org";
# option domain-name-servers 10.0.0.1;
# option time-offset? -18000;
# Eastern Standard Time
# option ntp-servers? 192.168.1.1;
# option netbios-name-servers???? 192.168.1.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.0.0.100 10.0.0.200;
default-lease-time 21600;
max-lease-time 43200;
"/etc/dhcpd.conf" 31L, 852C??? 1,1
# 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;
}
}
3.Linux DHCP服務(wù)器多網(wǎng)絡(luò)接口時(shí)需要配置文件
/etc/sysconfig/dhcpd DHCPDARGS=[網(wǎng)絡(luò)接口]
4. 啟動(dòng)dhcpd服務(wù)
Service dhcpd start
5. 客戶端配置動(dòng)態(tài)獲取IP
關(guān)鍵詞標(biāo)簽:Linux,DHCP服務(wù)器
相關(guān)閱讀
熱門文章 CentOS NTP服務(wù)器安裝與配置 VMware中Shared Folders(共享文件夾)的配置 使用Python配平化學(xué)方程式的方法 Linux(Unix)時(shí)鐘同步ntpd服務(wù)配置方法
人氣排行 VMware中Shared Folders(共享文件夾)的配置 CentOS NTP服務(wù)器安裝與配置 nginx搭建flv流媒體服務(wù)器 Windows 2003下配置架設(shè)NTP時(shí)間服務(wù)器 詳細(xì)!解決WSUS服務(wù)器更新問(wèn)題(附官方鏈接) heartbeat+LVS-ipvsadm+ldirectord搭建lvs DR集群 nginx的自動(dòng)啟動(dòng)腳本 使用Python配平化學(xué)方程式的方法