目錄
一.給路由器配置接口地址
二. 配置ospf路由協(xié)議,自動(dòng)創(chuàng)建路由表
三.配置R1為DHCP服務(wù)器,為本地pc(同網(wǎng)絡(luò))設(shè)置相關(guān)網(wǎng)絡(luò)配置信息?
?四.在R2接口fa0/0配置DHCP中繼,為跨網(wǎng)段終端(pc3)提供服務(wù)
五.?配置R1為DHCP服務(wù)器,為跨網(wǎng)段的pc設(shè)置相關(guān)網(wǎng)絡(luò)配置信息
?六.查詢DHCP服務(wù)器具體給pc配置的數(shù)據(jù)
實(shí)驗(yàn)?zāi)繕?biāo):用思科的路由器搭建DHCP服務(wù)器
實(shí)驗(yàn)拓?fù)鋱D:
?文章來源地址http://www.zghlxwxcb.cn/news/detail-495041.html
一.給路由器配置接口地址
僅舉例R1接口fa0/0的地址配置:
?
?
二. 配置ospf路由協(xié)議,自動(dòng)創(chuàng)建路由表
R1:
R1(config)#router ospf 1? ? ? ? ? ? ? ? //OSPF進(jìn)程號(hào) 整數(shù)形式,取值范圍是1~6555缺省值是1
R1(config-router)#network 192.168.12.0 0.0.0.255 area 0? ? ? ? //area-id 指定區(qū)域的標(biāo)識(shí)
R1(config-router)#network 192.168.1.0 0.0.0.255 area 0
?R2:
R2(config)#router ospf 1
R2(config-router)#network 192.168.12.0 0.0.0.255 area 0
R2(config-router)#network 192.168.2.0 0.0.0.255 area 0
?
?
三.配置R1為DHCP服務(wù)器,為本地pc(同網(wǎng)絡(luò))設(shè)置相關(guān)網(wǎng)絡(luò)配置信息?
R1:
R1(config)#ip dhcp pool ccna
R1(dhcp-config)#network 192.168.1.0 255.255.255.0? ? ? ? //給pc分配1.0網(wǎng)段的IP地址
R1(dhcp-config)#default-router 192.168.1.254? ? ? ? ? ? ? ? //網(wǎng)關(guān)
R1(dhcp-config)#dns-server 61.177.7.1? ? ? ? ? ? ? ? //DNSR1(dhcp-config)#exit
R1(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.9? ? ? ? //分配的IP地址不包括這一段
R1(config)#ip dhcp excluded-address 192.168.1.251 192.168.1.254
?給主機(jī)0,主機(jī)1,主機(jī)2調(diào)成DHCP,將會(huì)自動(dòng)獲得網(wǎng)絡(luò)相關(guān)配置
?
?
?四.在R2接口fa0/0配置DHCP中繼,為跨網(wǎng)段終端(pc3)提供服務(wù)
R2:
R2(config)#in fa0/0
R2(config-if)#ip helper-address 192.168.12.1
?
?
五.?配置R1為DHCP服務(wù)器,為跨網(wǎng)段的pc設(shè)置相關(guān)網(wǎng)絡(luò)配置信息
R1:
R1(config)#ip dhcp pool ccna
R1(dhcp-config)#network 192.168.2.0 255.255.255.0
R1(dhcp-config)#default-router 192.168.2.254
R1(dhcp-config)#dns-server 61.177.7.1
R1(dhcp-config)#exit
R1(config)#ip dhcp excluded-address 192.168.2.1 192.168.2.9
R1(config)#ip dhcp excluded-address 192.168.2.251 192.168.2.254
?
?
?
?六.查詢DHCP服務(wù)器具體給pc配置的數(shù)據(jù)
R1為DHCP服務(wù)器R1#show ip dhcp binding
文章來源:http://www.zghlxwxcb.cn/news/detail-495041.html
?
到了這里,關(guān)于思科設(shè)備配置DHCP的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!