国产精品资源在线观看网站|狠狠色丁香婷婷综合|无人区插曲巴啦啦小魔仙免费|青青草97国产精品免费观看|樱桃熟了A级毛片|国产亲妺妺乱的性视频免

認證培訓,h3c認證體系,網(wǎng)絡(luò )工程師
豐沃創(chuàng  )新

DHCP服務(wù)器配置【網(wǎng)絡(luò )工程師培訓】

  • 發(fā)布時(shí)間: 2019-5-24 10:13:10

DHCP = Dynamic Host Configuration Protocol 基于TCP/IP,用于動(dòng)態(tài)配置工作站網(wǎng)絡(luò )接口,使工作站的網(wǎng)絡(luò )接口管理自動(dòng)化。

DHCP服務(wù)器軟件

dhcpd 網(wǎng)站:http://www.isc.org

安裝方法:

#tar -zxvf dhcp-4.0.0.tar.gz

#cd dhcp-4.0.0

#./configure

#make

#make install

#touch /var/db/dhcpd.leases

#vi /etc/dhcpd.conf --編輯配置文件

#/usr/sbin/dhcpd --啟動(dòng)dhcp服務(wù) 或者 #dhcpd

主要配置選項

1.默認網(wǎng)關(guān)

2.IP地址

3.子網(wǎng)掩碼

4.DNS服務(wù)器地址

5.租用時(shí)間

配置文件 /etc/dhcpd.conf

ddns-update-style none;

subnet 192.168.0.0 netmask 255.255.255.0 {

option routers 192.168.0.1;

option subnet-mask 255.255.255.0;

option domain-name "my zone";

option domain-name-servers 192.168.0.1;

range 192.168.0.3 192.168.0.253;

default-lease-time 21600;

max-lease-time 43200;

host mail {

hardware ethernet 12:34:56:78:AB:CD;

fixed-address 192.168.0.2;

}

}

===========================

#/usr/sbin/dhcpd 啟動(dòng)服務(wù)器

#grep bootp /etc/services 查看dhcp端口

#netstat -unl | grep 67

#ssh 192.168.0.11

Linux客戶(hù)機的配置

/etc/sysconfig/network-scripts/ifcfg-eth0:

DEVICE=etho

ONBOOT=yes

BOOTPROTO=dhcp

或者使用netconfig配置動(dòng)態(tài)地址:

然后運行

#service network restart

#more /etc/resolv.conf

#route -n

調試

調試服務(wù)器

1.查看日志文件

#tail -f /var/log/messages

2.查看租用記錄文件

#more /var/db/dhcpd.lease

調試客戶(hù)機

under linux:

#dhclient eth0

#under windows:

C:/>ipconfig /renew


国产精品资源在线观看网站|狠狠色丁香婷婷综合|无人区插曲巴啦啦小魔仙免费|青青草97国产精品免费观看|樱桃熟了A级毛片|国产亲妺妺乱的性视频免 都江堰市| 永德县| 邛崃市| 新宁县| 榆树市| 恩施市| 金沙县| 体育| 宁蒗| 宝丰县| 太原市| 融水| 本溪市| 拜城县| 古蔺县| 体育| 文成县| 元阳县| 贺兰县| 河曲县| 山东省| 修水县| 邵阳县| 泗阳县| 综艺| 恩平市| 嘉定区| 若羌县| 衡南县| 南昌县| 吉隆县| 四会市| 新竹县| 东辽县| 长春市| 鞍山市| 如皋市| 长海县| 波密县| 临武县| 武功县| http://444 http://444 http://444 http://444 http://444 http://444