思科路由器的自動(dòng)安裝 |
發(fā)布時(shí)間: 2012/7/11 13:41:15 |
Cisco 路由器的自動(dòng)安裝
IOS的路由在啟動(dòng)時(shí),如果是一個(gè)空配置的狀態(tài),那么其輝嘗試著去講以太網(wǎng)接口,串行接口打開I,進(jìn)而通過(guò)RARP/BOOTP或者SLARP(串行鏈路ARP)獲得本段接口IP.在獲得接口IP地址之后,會(huì)發(fā)起TFTP廣播數(shù)據(jù)報(bào)文請(qǐng)求。 在以下實(shí)驗(yàn)R2仿真為一臺(tái)TFTP server,任何R3作為1臺(tái)沒(méi)法通過(guò)console訪問(wèn)的路由器。 R1(config)#interface loopback 0 R1(config-if)#ip address 1.1.1.1 255.255.255.0 R1(config-if)#ip ospf network point-to-point R1(config-if)#interface serial 1 R1(config-if)#ip address 13.1.1.1 255.255.255.0 R1(config-if)#clockrate 64000 R1(config-if)#interface serial 0 R1(config-if)#ip address 12.1.1.1 255.255.255.0 R1(config-if)#clock rate 64000 R1(config-if)#router ospf 10 R1(config-router)#network 0.0.0.0 255.255.255.255 area 0 R2(config)#interface serial 1 R2(config-if)#ip address 12.1.1.2 255.255.255.0 R2(config-if)#interface loo 0 R2(config-if)#ip address 2.2.2.2 255.255.255.0 R2(config-if)#ip ospf network point-to-point R2(config-if)#router ospf 10 R2(config-router)#network 0.0.0.0 255.255.255.255 area 0 我 們預(yù)計(jì)到R3重起之后,會(huì)通過(guò)SLARP獲得IP地址,之后R3會(huì)發(fā)出反駁地址請(qǐng)求TFTP服務(wù)器,要求下載配置文件,我們讓R1將廣播請(qǐng)求轉(zhuǎn)發(fā)給R2, 注意路由器(R3)會(huì)依次嘗試HDLC---PPP----Frame-relay封裝,如匹配對(duì)端鏈路協(xié)議UP,就發(fā)出SLARP,得到的IP為對(duì)端的 IP減1,如對(duì)端IP為最低位,則會(huì)加,這這個(gè)例子里,R1的IP為13.1.1.1,因此R3解析出自身的IP就是13.1.1.2. (1) 配置R1將將TFTP的廣播請(qǐng)求轉(zhuǎn)發(fā)給R2. R1(config-if)#ip helper-address 2.2.2.2 (2) 修改R3寄存器只,使之從NVRAM讀取配置文件,在R3配置為空的情況下,重起R3 R3(config)#config-register 0x2102 R3#erase startup-config Erasing the nvram filesystem will remove all configuration files! Continue? [con 本文出自:億恩科技【www.vbseamall.com】 服務(wù)器租用/服務(wù)器托管中國(guó)五強(qiáng)!虛擬主機(jī)域名注冊(cè)頂級(jí)提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM] |