1.服務(wù)端
(1) 配置服務(wù)器為ip靜態(tài)
1.通過圖形修改 :nm-connection-editor
讓客戶滿意是我們工作的目標(biāo),不斷超越客戶的期望值來自于我們對(duì)這個(gè)行業(yè)的熱愛。我們立志把好的技術(shù)通過有效、簡(jiǎn)單的方式提供給客戶,將通過不懈努力成為客戶在信息化領(lǐng)域值得信任、有價(jià)值的長(zhǎng)期合作伙伴,公司提供的服務(wù)項(xiàng)目有:國(guó)際域名空間、網(wǎng)絡(luò)空間、營(yíng)銷軟件、網(wǎng)站建設(shè)、陽西網(wǎng)站維護(hù)、網(wǎng)站推廣。
2.配置Yum源
cd /etc/yum.repos.d
ls
vim rhel_dvd.repo 配置yum源
yum inatll dhcp 安裝dhcp
yum clean all 清空yum緩存
3.vim /etc/dhcp/dhcpd.conf 查看配置文件
cp /usr/share/doc/dhcp/dhcpd.conf.example(配置文件模板) 復(fù)制配置文件模板到/etc/dhcp/dhcpd.conf
5.vim /etc/dhcp/dhcpd.conf 修改配置文件
**編輯內(nèi)容**
6 # option definitions common to all supported networks...? 7 option domain-name "westos.com";???????????????????????? 域名
? 8 option domain-name-servers 172.25.254.250;?????????? DNS地址
?9
10 default-lease-time 600;??????????????????????????????? 默認(rèn)租約期限
11 max-lease-time 7200;????????????????????????????????? 最長(zhǎng)租約期限
12?
13 # Use this to enble / disable dynamic dns updates globally.
14 #ddns-update-style none;
15?
16 # If this DHCP server is the official DHCP server for the local
17 # network, the authoritative directive should be uncommented.
18 #authoritative;
19?
20 # Use this to send dhcp log messages to a different log file (you also
21 # have to hack syslog.conf to complete the redirection).
22 log-facility local7;?????????????????????????????????????? 日志級(jí)別
23?
24 # No service will be given on this subnet, but declaring it helps the
25 # DHCP server to understand the network topology.
26?
27?
28?
29 # This is a very basic subnet declaration.
30?
31 subnet 172.25.254.0 netmask 255.255.255.0 {???????????? 設(shè)定分配ip的網(wǎng)絡(luò)位
32?? range 172.25.254.200 172.25.254.220;?????????????????? ip地址池
33?? option routers 172.25.254.250;???????????????????????? 客戶主機(jī)獲得的網(wǎng)關(guān)



客戶端
1.編輯配置文件修改dhcp:vim /etc/sysconfig/network-scripts/ifcfg-eth0
將BOOTPROTO=dhcp
2.systemctl restart network 重啟服務(wù)獲得ip
3.3.ifconfig **查看ip
分享名稱:dhcp服務(wù)
當(dāng)前網(wǎng)址:http://www.chinadenli.net/article12/jdhsdc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站改版、網(wǎng)站建設(shè)、靜態(tài)網(wǎng)站、標(biāo)簽優(yōu)化、關(guān)鍵詞優(yōu)化、虛擬主機(jī)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)