




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、. .網(wǎng)絡(luò)設(shè)備的連接方式和根本配置consol口控制臺(tái)口配置口在設(shè)備上簡(jiǎn)寫為conconsol線纜控制臺(tái)線配置線一端為RJ-45接口,一端為DB9串口。在連接consol線時(shí),先連接到計(jì)算機(jī)上,然后再連接網(wǎng)絡(luò)設(shè)備,最好在斷電的情況下連接。1、將控制線連接到計(jì)算機(jī)的串口上,然后另一端連接到路由器上。2、啟動(dòng)設(shè)備連接到設(shè)備的軟件,2種超級(jí)終端和SecureCRTRouter用戶模式Routerenable Router#特權(quán)模式Router#configure terminal Enter configuration mands, one per line. End with TL/Z.Route
2、r(config)#全局配置模式使用end命令或ctrl+z直接退出到特權(quán)模式Router(config)#hostname huayuhuayu(config)#路由快速配置huayu(config)#no ip domain-lookup/禁用域名解析huayu(config)#line console 0/進(jìn)入控制臺(tái)接口huayu(config-line)#logging synchronous /使日志同步huayu(config-line)#exec-timeout 0 0/永不超時(shí)退出enconf teno ip domain-lookline cons 0logg syncexe
3、c-time 0 0exit恢復(fù)出廠設(shè)置Switch#erase nvram: Switch#reload/重啟Switch#show interfaces f0/1/查看接口的詳細(xì)信息物理層信息MTU最大傳輸單元數(shù)據(jù)在該接口的最大值接口的通訊方式auto由雙方接口自協(xié)商,然后定義通訊方式Full-duplex全雙工通訊half-duplex半雙工通訊Switch(config)#interface f0/1Switch(config-if)#duplex half配置交換機(jī)的管理用IP和網(wǎng)關(guān)給二層交換配置IP地址,主要是為了管理用,通常就是遠(yuǎn)程配置。例如telnetSwitch(config
4、)#interface vlan 1Switch(config-if)#ip address 192.168.1.1 255.255.255.0Switch(config-if)#no shutdown Switch(config-if)#exitSwitch(config)#line vty 0 Switch(config-line)#passwSwitch(config-line)#password cisco123Switch(config-line)#loginSwitch(config)#enable secret ciscowindows客戶端C:telnet 192.168.1.
5、1給交換機(jī)配置網(wǎng)關(guān),通常在不同網(wǎng)段實(shí)驗(yàn)或應(yīng)用中使用Switch(config)#ip default-gateway 192.168.1.254 cisco的私有協(xié)議,意味著這個(gè)協(xié)議只能應(yīng)用在cisco設(shè)備上。CDP用來發(fā)現(xiàn)鄰居的。r1#show cdp neighborsIP地址:在網(wǎng)絡(luò)層由IP協(xié)議定義的計(jì)算機(jī)的網(wǎng)絡(luò)地址,可以實(shí)現(xiàn)雙方的網(wǎng)絡(luò)層通訊。由32位2進(jìn)制數(shù)組成,以點(diǎn)分10進(jìn)制的形式表示。1.1.1.1/24一個(gè)完整的網(wǎng)絡(luò)ID,是由IP地址和子網(wǎng)掩碼來組成。子網(wǎng)掩碼:分為2局部,網(wǎng)絡(luò)位和主機(jī)位,網(wǎng)絡(luò)位用2進(jìn)制數(shù)1來表示,用來代表網(wǎng)絡(luò)編號(hào),主機(jī)位用2進(jìn)制數(shù)0來表示,用來代表主機(jī)編號(hào)。用來
6、定義IP地址的主機(jī)位和網(wǎng)絡(luò)位。網(wǎng)絡(luò)位通常放在左邊,主機(jī)位放到右邊r1#show ip int b /查看配置的ipconfig# ip route 目的網(wǎng)段 掩碼 出接口 下一跳 管理距離r1(config)#ip route 192.168.2.0 255.255.255.0 s0/0r1(config)#ip route 2.2.2.0 255.255.255.0 s0/0 /手動(dòng)配置r1#ping 192.168.2.1 source 192.168.1.1ping 192.168.2.1 指定源地址為 192.168.1.1r1#traceroute 192.168.2.1 sourc
7、e 192.168.1.1 /跟蹤去往192.168.2.1的路由,非常有用,可以判斷故障的位置。*浮動(dòng)靜態(tài)路由使用管理距離小的,優(yōu)先級(jí)高的路由條目才會(huì)出現(xiàn)在路由表中的原理,從而實(shí)現(xiàn)路由條目和線路的冗余。r3#debug ip packet翻開IP數(shù)據(jù)包的調(diào)試開關(guān)多線路的負(fù)載均衡去往一樣的目的地有多條線路共同使用,實(shí)現(xiàn)負(fù)載分擔(dān)。cisco的設(shè)備中有cef快速轉(zhuǎn)發(fā)特性。關(guān)閉cefr2(config)#no ip cef r2(config)#int s0/1r2(config-if)#no ip cefr2(config)#int s0/2r2(config-if)#no ip cef配置動(dòng)態(tài)r
8、iprouter rip network 1.0.0.0 network 192.168.1.0r1#show ip protocols/查看當(dāng)前運(yùn)行的路由協(xié)議r1#debug ip rip /翻開rip調(diào)試信息r1#no debug all/關(guān)閉調(diào)試信息開關(guān)r3#clear ip route * /去除垃圾路由信息,更新路由表r1(config)#router ripr1(config-router)#version 2/版本2r1(config-router)#no auto-summary/關(guān)閉自動(dòng)匯總Ripv2和很多動(dòng)態(tài)路由協(xié)議默認(rèn)會(huì)有自動(dòng)匯總的功能。10.1.1.1/2410.2.2
9、.2/2410.0.0.0/8 1.1.1.1手動(dòng)匯總在發(fā)出更新的接口上配置手動(dòng)匯總。r1(config)#int s0/0r1(config-if)#ip summary-address rip 10.0.0.0 255.252.0.0Rip的(config)#key chain huayu/定義鑰匙鏈的名字(config-keychain)#key 123/定義鑰匙的編號(hào)(config-keychain-key)#key-string cisco/定義鑰匙的密碼#interface Ethernet0/0 /應(yīng)用到接口上(config-if)#ip rip authentication k
10、ey-chain huayu(config-if)#ip rip authentication mode md5 /md5加密r2(config-router)#passive-interface e0/0 /在b的e0/0配置被動(dòng)接口r2(config-router)#neighbor 192.1.1.2 /b和c薄弱更新。r3(config-if)#no ip split-horizon /關(guān)閉水平分隔,這樣a也能學(xué)習(xí)到b的,但是不會(huì)知道b里面的拓?fù)?。運(yùn)行EIGRP的路由器中包含3X表1、鄰居表:存放著鄰居的信息2、拓?fù)浔恚捍娣鸥鶕?jù)從鄰居那更新來的拓?fù)湫畔⒍枋龅木W(wǎng)絡(luò)拓?fù)錁?gòu)造3、路由表:就
11、是描述通過擴(kuò)散更新算法計(jì)算后得出最優(yōu)路徑。r1(config)#router ei 100 /100是表示自治系統(tǒng)r1(config-router)#no auto-summary r1(config-router)#net 0.0.0.0 /宣告所有接口r2#show ip eigrp topology /查看eigrp的拓?fù)浔?鄰居表neighbor tabler1(config-if)#ip summary-address eigrp 100 10.1.0.0 255.255.252.0eigrp自己學(xué)習(xí)自己的手動(dòng)匯總。 關(guān)閉自動(dòng)匯總 Router (config-router)# no
12、 auto-summary EIGRP的手動(dòng)匯總Router (config-if)# ip summary-address eigrp 1 1.1.0.0 255.255.0.0 鏈路狀態(tài):主要是以帶寬來衡量的本錢:也成為代價(jià)或開銷 cost 其實(shí)就是度量area 0:骨干區(qū)域area 1:非骨干區(qū)域DR:指定路由器BDR:備份指定路由器DRother:非指定路由器鄰居數(shù)據(jù)庫:記錄著ospf的鄰居信息拓?fù)鋽?shù)據(jù)庫:根據(jù)鏈路狀態(tài)數(shù)據(jù)庫產(chǎn)生的網(wǎng)絡(luò)拓?fù)鋽?shù)據(jù)RIDRouter ID:路由器ID,可以理解為路由器的編號(hào)路由器ID的選擇最優(yōu)先選擇回環(huán)接口的地址,如果有多個(gè)地址,選擇數(shù)值最大的其次選擇物理接
13、口的IP地址,如果有多個(gè),就選擇數(shù)值最大的r1(config)#router ospf 100/啟用ospf進(jìn)程,100為進(jìn)程號(hào)r1(config-router)#router-id 192.168.1.1/定義RIDr1(config-router)#network 192.168.1.1 0.0.0.255 area 0/宣告網(wǎng)絡(luò)r1(config-router)#network 1.1.1.1 0.0.0.255 area 0r3(config-router)#network 0.0.0.0 0.0.0.0 area 0/宣告所有r2#show ip ospf neighbor /查看o
14、spf的鄰居r2(config)#int s0/0r2(config-if)#ip ospf network point-to-point /指定ospf的網(wǎng)絡(luò)類型r1#clear ip ospf process /重啟ospf進(jìn)程Reset ALL OSPF processes no: yesr1#debug ip ospf hello /翻開ospf的hello調(diào)試r2(config)#router ospf 100r2(config-router)#neighbor 192.168.1.1/手動(dòng)指定鄰居在NBMA網(wǎng)絡(luò)中應(yīng)用r2(config-router)#neighbor 192.16
15、8.3.1show ip protocols /查看拓?fù)鋽?shù)據(jù),看RID,DR 和BDRshow ip route 顯示學(xué)習(xí)來的路由條目,確定本地與網(wǎng)絡(luò)之間的連接show ip ospf interface 檢驗(yàn)配置的接口在哪個(gè)區(qū)域,鄰接關(guān)系clear ip ospf process 刷新路由協(xié)議的進(jìn)程,如重新選舉DR、BDRShow ip ospf neighbor /查看鄰居信息。 設(shè)置s0接口的優(yōu)先級(jí) Router(config)# interface f0/0 Router(config-if)# ip ospf priority 100顯示接口的優(yōu)先級(jí)信息 Router# show i
16、p ospf interface s0 上圖配置如下;1, 配置末梢區(qū)域,在區(qū)域中所有路由器上配置 RT(config-router)# area stubr2(config)#router ospf 10r2(config-router)#area 1 stubr3(config)#router ospf 10r3(config-router)#area 1 stub在末梢區(qū)域的根底上配置完全末梢區(qū)域,在ABR上配置r2(config)#router ospf 10 r2(config-router)#area 1 stub no-summaryO*IA 0.0.0.0/0 110/65 v
17、ia 192.168.2.1, 00:01:13, Serial0/0結(jié)果1、減少了LSA泛洪,只承受1、2類型的LSA,減少了帶寬的占用2、減少了路由條目,提高查詢速度2,RIP重分布到OSPF 在ASBR上配置r5(config)#router ospf 10r5(config-router)#redistribute rip metric 20 subnetsOSPF重分布到RIP 在ASBR上配置r5(config)#router ripr5(config-router)#redistribute ospf 10 metric 3 /3代表?xiàng)l數(shù)NSSA區(qū)域ABRr1(config)#r
18、outer ospf 10r1(config-router)#area 2 nssaIRr4(config)#router os 10r4(config-router)#area 2 nssaASBRr5(config)#router ospf 10r5(config-router)#area 2 nssa給NSSA區(qū)域添加默認(rèn)路由r1(config-router)#area 2 nssa default-information-originate /非末梢區(qū)域和內(nèi)部連接的路由上做。給NSSA區(qū)域的內(nèi)部減少域間路由條目,阻止LSA3的更新r1(config-router)#area 2 nss
19、a no-summaryOSPF的匯總外部路由的匯總ASBRr5(config)#router ospf 10r5(config-router)#summary-address 2.2.0.0 255.255.252.0ospf內(nèi)部的區(qū)域路由匯總,在ABR上做r2(config)#router ospf 10r2(config-router)#area 1 range 1.1.0.0 255.255.252.0路由重分配,具體操作如下1, 配上相應(yīng)的ip地址,和為每臺(tái)路由器配置會(huì)換接口地址2, R2的具體配置interface Loopback0 ip address 2.2.2.2 255.
20、255.255.0! interface Serial0/0 ip address 192.168.1.2 255.255.255.0 serial restart-delay 0! interface Serial0/1 ip address 192.168.2.1 255.255.255.0 serial restart-delay 0! interface Serial0/2 ip address 192.168.4.1 255.255.255.0 serial restart-delay 0! interface Serial0/3 ip address 192.168.5.1 255
21、.255.255.0 serial restart-delay 0! router eigrp 100 network 192.168.4.0 auto-summary! router ospf 10 log-adjacency-changes network 192.168.2.0 0.0.0.255 area 0! router rip version 2 network 2.0.0.0 network 192.168.1.0 no auto-summary! ip serverno ip secure-server! ip route 6.6.6.0 255.255.255.0 192.
22、168.5.22, ASBR上做路由重分配r2上做具體如下:重分布路由到ripr2(config)#router ripEIGRP-RIPr2(config-router)#redistribute eigrp 100 metric 2OSPF-RIPr2(config-router)#redistribute ospf 11 metric 3直連-RIPr2(config-router)#redistribute connected metric 4靜態(tài)-RIPr2(config-router)#redistribute static metric 5重分布路由到EIGRPr2(config
23、)#router eigrp 100 RIP-EIGRPr2(config-router)#redistribute rip metric 10000 100 255 1 1500 OSPF-EIGRPr2(config-router)#redistribute ospf 11 metric 10000 100 255 1 1500 直連到-EIGRPr2(config-router)#redistribute connected metric 10000 100 255 1 1500靜態(tài)-EIGRPr2(config-router)#redistribute static metric 10
24、000 100 255 1 1500重分布路由到ospfrip-ospf默認(rèn)的類型2r2(config-router)#redistribute rip subnets 類型1r2(config-router)#redistribute rip subnets metric-type 1如果不指定度量,默認(rèn)為20eigrp-ospfr2(config-router)#redistribute eigrp 100 subnets metric-type 1直連和靜態(tài)到ospfr2(config-router)#redistribute connected subnets metric-type
25、1r2(config-router)#redistribute static subnets metric-type 1 實(shí)驗(yàn)10 BGP路由協(xié)議原理、配置與排錯(cuò)實(shí)驗(yàn)10.1 實(shí)驗(yàn)內(nèi)容l BGP的根本配置;l BGP的聚合;l BGP屬性簡(jiǎn)單應(yīng)用;l BGP路由反射器的作用;l 基于aspath的路由策略。說明:本文所有實(shí)驗(yàn)環(huán)境共用一個(gè)組網(wǎng)圖。在不支持loopback的軟件版本中,建議使用dialer口替代loopback口。在本實(shí)驗(yàn)中,所有的實(shí)驗(yàn)都是沿用前面的配置,在進(jìn)展下一個(gè)實(shí)驗(yàn)前請(qǐng)不要修改前面已完成的配置。軟件版本:Version 1.74 Release 0006。10.2 BGP根本
26、配置10.2.1 實(shí)驗(yàn)?zāi)康膌 掌握配置BGP的根本配置命令;l 鄰居關(guān)系的建立;l 路由的引入,觀察實(shí)驗(yàn)結(jié)果。10.2.2 實(shí)驗(yàn)環(huán)境l Quidway 26 系列或更高性能路由器 4臺(tái),穿插網(wǎng)線2根,V35或V24 DTE/DCE 線纜 2 對(duì)。10.2.3 實(shí)驗(yàn)組網(wǎng)圖圖10-1 實(shí)驗(yàn)組網(wǎng)圖10.2.4 實(shí)驗(yàn)步驟1. 配置建立路由器RouterA RouterB RouterC 鄰居關(guān)系RouterA:配置路由器A的接口地址,啟動(dòng)BGP協(xié)議,設(shè)置BGP鄰居。/配置路由器A的接口地址RouterA-Serial0 ip address 11.1.1.1 255.255.0.0 RouterA-E
27、thernet0 ip address 11.2.1.1 255.255.0.0 RouterA-LoopBack1 ip address 10.1.1.1 255.0.0.0RouterA-LoopBack2 ip address 1.1.1.1 255.0.0.0/啟動(dòng)BGP協(xié)議RouterAbgp 100 /設(shè)置BGP鄰居RouterA-bgppeer 11.1.1.2 as-number 200 RouterA-bgppeer 11.2.1.2 as-number 200 RouterA save配置路由器C:RouterC-LoopBack1 ip address 3.3.3.3 2
28、55.0.0.0RouterC-Ethernet0 ip address 11.2.1.2 255.255.0.0 RouterC bgp 200 RouterC-bgppeer 11.2.1.1 as-number 100 RouterC save配置路由器B:RouterB-Serial0 ip address 11.1.1.1 255.255.0.0 RouterB bgp 200 RouterB-bgppeer 11.1.1.2 as-number 100 RouterB save在路由器A上執(zhí)行:RouterAdisplay bgp summaryNeighbor V AS MsgR
29、cvd MsgSent OutQ Up/Down State11.1.1.2 4 200 2 3 0 00:00:09 Established11.2.1.2 4 200 11 12 0 00:09:23 Established兩EBGP鄰居已經(jīng)建立。1、引入路由問題1:為什么沒有任何BGP路由 BGP本身不會(huì)產(chǎn)生路由,只能轉(zhuǎn)發(fā)引入的路由,需要引入引入10.0.0.0網(wǎng)段的路由:RouterA-bgpnetwork 10.0.0.0RouterA-bgpdisplay bgpBGP local router ID is 11.1.1.2Status codes: s suppressed, d damped, h history, * valid, best, i internalOrigin codes: i - IGP, e - EGP, - inplete Network Next Hop Metric LocPrf Path* 10.0.0.0 11.1.1.1 100 iRouterBdisplay bgpBGP local router ID is 11.1.1.2Status codes: s suppressed, d damped, h h
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 第2課《濟(jì)南的冬天》教學(xué)設(shè)計(jì) 2024-2025學(xué)年統(tǒng)編版語文七年級(jí)上冊(cè)
- 第二單元觀察物體(二)(教學(xué)設(shè)計(jì))-2023-2024學(xué)年人教版四年級(jí)下冊(cè)數(shù)學(xué)
- Unit 1 School Subjects Lesson 1(教學(xué)設(shè)計(jì))-2023-2024學(xué)年人教新起點(diǎn)版英語三年級(jí)下冊(cè)
- 垂直第三課時(shí)教學(xué)設(shè)計(jì)-2024-2025學(xué)年四年級(jí)下冊(cè)數(shù)學(xué)滬教版
- 除法(教學(xué)設(shè)計(jì))-2023-2024學(xué)年二年級(jí)下冊(cè)數(shù)學(xué)人教版
- 2025年機(jī)動(dòng)車零部件及配件項(xiàng)目發(fā)展計(jì)劃
- 10《勸學(xué)》與《師說》聯(lián)讀教學(xué)設(shè)計(jì) 2024-2025學(xué)年統(tǒng)編版高中語文必修上冊(cè)
- 小學(xué)生《踐行勞動(dòng)教育弘揚(yáng)節(jié)約精神》教案
- 2025年激光掃描繪圖機(jī)項(xiàng)目發(fā)展計(jì)劃
- 科技創(chuàng)新中心項(xiàng)目組織結(jié)構(gòu)與管理模式
- 土建、裝飾、維修改造等零星工程施工組織設(shè)計(jì)技術(shù)標(biāo)
- 寵物貓護(hù)理教學(xué)
- 高速公路養(yǎng)護(hù)作業(yè)安全培訓(xùn)內(nèi)容
- 2024年江蘇經(jīng)貿(mào)職業(yè)技術(shù)學(xué)院?jiǎn)握新殬I(yè)適應(yīng)性測(cè)試題庫
- 《大白菜種植栽培技》課件
- 北京工業(yè)大學(xué)《數(shù)據(jù)挖掘》2023-2024學(xué)年第一學(xué)期期末試卷
- 圖書借閱登記表
- 標(biāo)準(zhǔn)化機(jī)房改造方案
- 2024年重慶市公務(wù)員錄用考試《行測(cè)》真題及解析
- 珠海市第三人民醫(yī)院中醫(yī)智能臨床輔助診療系統(tǒng)建設(shè)方案
- 早產(chǎn)臨床診斷與治療指南
評(píng)論
0/150
提交評(píng)論