下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)
文檔簡介
1、DHCP 典型配置【需求】DHCP 的主要用途是:通過DHCP服務(wù)器的協(xié)助來控管各個客戶機(執(zhí)行中的用戶端)上不可缺少的網(wǎng)絡(luò)配置參數(shù),包括DNS(Domain Name Service 域名服務(wù)),WINS(Windows Internet Name Service Windows互聯(lián)網(wǎng)名字服務(wù))等。【組網(wǎng)圖】 【配置腳本】RouterA配置腳本#sysname RouterA#radius scheme system#domain system#dhcp server ip-pool 1
2、 /創(chuàng)建DHCP 地址池/network 192.168.0.0 mask 255.255.255.0 /指定可以分配的地址段/gateway-list 192.168.0.1 /指定網(wǎng)關(guān)/dn
3、s-list 192.168.0.2 /指定DNS server地址/domain-name huawei- /指定域名/#interface Ethernet0/0ip address 192.168.
4、0.1 255.255.255.0 /配置網(wǎng)關(guān)地址/#interface Serial2/0link-protocol ppp#interface NULL0#dhcp server forbidden-ip 192.168.0.1 192.168.0.2 /保留網(wǎng)關(guān)、DNS的地址/#user-interface con 0user-interface vty 0 4#1 / 4return 【驗證】在PC上執(zhí)行“ipconfig”,該PC已經(jīng)通過DHCP自動獲取IP地址、網(wǎng)關(guān)、域名信息。C:>ipconf
5、ig Windows IP ConfigurationEthernet adapter 本地連接: Connection-specific DNS Suffix . : huawei- IP Address. . . . . . . . . . . . : 192.168.0.3 Subnet Mask . .
6、. . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.0.1 【提示】1、 只給出DHCP server上最基本的配置,其它可選配置可以查看操作手冊5.1.2 DHCP Relay典型配置【需求】路由器進行DHCP Relay,將DHCP報文進行中繼。【組網(wǎng)圖】 【配置腳本】RouterA配置腳本
7、#sysname RouterA#radius scheme system#domain system#interface Ethernet1/0/0ip address 192.168.0.1 255.255.255.0ip relay address 202.38.1.2 /指定DHCP Server地址/dhcp select relay &
8、#160; /配置為DHCP relay方式/#interface Serial2/0/0link-protocol pppip address 10.0.0.2 255.255.255.252#interface NULL0#ip route-static 0.0.0.0 0.0.0.0 10.0.0.1 preference 60#user-interface con 0user-interface vty 0 4#return 【提示】
9、1、 DHCP Server可以使用PC Server,也可以使用路由器充當(dāng)。2、 當(dāng)使用路由器作為DHCP Server的配置,和上一節(jié)的配置類似。 5.1.3 DHCP Client典型配置【需求】路由器作為DHCP Client,獲取接口的動態(tài)IP地址。主要用在使用路由器的以太網(wǎng)接口通過LAN方式接入公網(wǎng)的組網(wǎng)?!窘M網(wǎng)圖】 【配置腳本】RouterA配置腳本#sysname RouterA#radius scheme system#domain system#interfa
10、ce Ethernet1/0/0ip address dhcp-alloc /配置DHCP方式獲取地址/#interface Ethernet1/0/1ip address 192.168.0.1 255.255.255.0#interface NULL0#ip route-static 0.0.0.0 0.0.0.0 202.101.68.1 preference 60/指定默認(rèn)出口路由/#user-interface con 0user-interface vty 0 4#return 【驗證】通過disp i
11、nt 可以查看接口獲取的IP地址Quidwaydisp int e 1/0/0Ethernet1/0/0 current state :UP Line protocol current state :UPDescription : Ethernet1/0/0 Interface The Maximum Transmit Unit is 1500, Hold timer is 10(sec) Internet Address is 202.101.xx.4/24, acquired via DHCPIP Sending Frames' Format i
12、s PKTFMT_ETHNT_2, Hardware address is 00e0-fc45-2ca7Media type is twisted pair, loopback not set, promiscuous mode not set100Mb/s, Full-duplex, link type is autonegotiationOutput flow-control is disabled, input flow-control is disabledOutput queue : (Urgent queue : Size/Length/Discards) 0/50/0
13、Output queue : (Protocol queue : Size/Length/Discards) 0/500/0 Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0 Last 300 seconds input rate 0.00 bytes/sec, 0.00 packets/sec Last 300 seconds output rate 0.00 bytes/sec, 0.00 packets/sec &
14、#160; Input: 406 packets, 57174 bytes, 406 buffers 218 broadcasts, 0 multicasts, 0 pauses 0 errors, 0 runts, 0 giants 0
15、crc, 0 align errors, 0 overruns 0 dribbles, 0 drops, 0 no buffers Output:268 packets, 37113 bytes, 269 buffers 86 broadcasts, 19 multicasts, 0 pauses
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度個人自用帶獨立車庫房產(chǎn)交易合同
- 2025至2031年中國多層不干膠標(biāo)簽行業(yè)投資前景及策略咨詢研究報告
- 2025至2031年中國U盤型智能密碼鑰匙行業(yè)投資前景及策略咨詢研究報告
- 二零二五年度拆伙協(xié)議書范本:合伙企業(yè)終止合同范本3篇
- 2025至2030年中國膨脹率試驗儀數(shù)據(jù)監(jiān)測研究報告
- 二零二五年度智慧農(nóng)業(yè)項目合同終止及農(nóng)業(yè)技術(shù)轉(zhuǎn)移協(xié)議
- 2025至2030年中國板式電視柜數(shù)據(jù)監(jiān)測研究報告
- 2025至2030年中國拷貝膠片數(shù)據(jù)監(jiān)測研究報告
- 2025至2030年中國外送車數(shù)據(jù)監(jiān)測研究報告
- 2025至2030年中國加拿利海棗數(shù)據(jù)監(jiān)測研究報告
- 綠化養(yǎng)護難點要點分析及技術(shù)措施
- 2024年河北省高考?xì)v史試卷(含答案解析)
- 車位款抵扣工程款合同
- 2023年湖北省襄陽市中考數(shù)學(xué)真題(原卷版)
- 小學(xué)六年級數(shù)學(xué)奧數(shù)題100題附答案(完整版)
- 湖南高速鐵路職業(yè)技術(shù)學(xué)院單招職業(yè)技能測試參考試題庫(含答案)
- 英漢互譯單詞練習(xí)打印紙
- 2023湖北武漢華中科技大學(xué)招聘實驗技術(shù)人員24人筆試參考題庫(共500題)答案詳解版
- 一氯二氟甲烷安全技術(shù)說明書MSDS
- 母嬰護理員題庫
- SWITCH暗黑破壞神3超級金手指修改 版本號:2.7.6.90885
評論
0/150
提交評論