思科DHCP實驗
2020-12-11 17:05 作者:太閣網(wǎng)絡(luò) | 我要投稿

R2模擬DHCP Server ???R1模擬PC客戶端

R2(config)#service dhcp開啟DCHP服務(wù) ????????
R2(config)#ip dhcp pool cisco ????????????????????????????????????DHCP地址池的名字 ??????????????
R2(dhcp-config)#network 100.1.1.0 255.255.255.0確定網(wǎng)段
R2(dhcp-config)#default-router 100.1.1.254確定網(wǎng)關(guān)
R2(dhcp-config)#dns-server 114.114.114.144確定DNS
R2(dhcp-config)#domain-name cisco.com確定域名
R2(dhcp-config)#lease 3 0 0 ????????????????????????????????????DHCP租期
R2(dhcp-config)#ex
R2(config)#ip dhcp excluded-address 100.1.1.1 100.1.1.99 ??????????排除對應(yīng)的地址下發(fā)
R1接口開啟DHCP ,并且開啟端口 ?no ??shutdown

現(xiàn)在來看一下R1的地址信息

OK R1已經(jīng)獲取到地址。
標(biāo)簽: