【正文】
同時在Router2中應建立一個用戶,以對端路由器主機名作為用戶名,即用戶名應為Router1。這里使用tac作為關鍵字。 basic5ess ATamp。D信道的速率為16Kbps,主要傳輸控制信號。 Router1: interface serial 0 encapsulation framerelay ! interface serial pointtopoint ip address framereply interfacedlci 105 ! interface serial pointtopoint ip address framereply interfacedlci 102 ! interface serial pointtopoint ip address framereply interfacedlci 104 ! Router2: interface serial 0 encapsulation framerelay ! interface serial pointtopoint ip address framereply interfacedlci 201 ! interface serial pointtopoint ip address framereply interfacedlci 203 ! 相關調試命令: show framerelay lmi show framerelay map show framerelay pvc show framerelay route show interfaces serial go top 4. 。這種服務通過幀中繼虛電路實現(xiàn),每個幀中繼虛電路都以數(shù)據(jù)鏈路識別碼(DLCI)標識自己。 子接口(Subinterface)是一個物理接口上的多個虛接口,可以用于在同一個物理接口上連接多個網(wǎng)。 x25 address 110103 x25 nvc 2 x25 map ip 110103 broadcast ! 如終端、計算機或網(wǎng)絡主機,一般位于用戶端,Cisco路由器就是DTE設備。 Current configuration:!version no service udpsmallserversno service tcpsmallservers!hostname shanxi!enable secret 5 $1$XN08$enable password shanxi!!ip subnetzero!controller E1 0 framing NOCRC4 channelgroup 0 timeslots 1 channelgroup 1 timeslots 2 channelgroup 2 timeslots 3 !interface Ethernet0ip address mediatype 10BaseT!interface Ethernet1no ip addressshutdown!interface Serial0:0 ip address no ip mroutecache!interface Serial0:1 ip address no ip mroutecache!interface Serial0:2 ip address no ip mroutecache!no ip classlessip route Serial0:0ip route Serial0:1ip route Serial0:2!line con 0line aux 0line vty 0 4password shanxilogin!end 二、PPP PPP(PointtoPoint Protocol)是SLIP(Serial Line IP protocol)的繼承者,它提供了跨過同步和異步電路實現(xiàn)路由器到路由器(routertorouter)和主機到網(wǎng)絡(hosttonetwork)的連接。,。 網(wǎng)絡命令 1.Configuring interface Ethernet0: 1) 是否使用硬件流控: Configure for HW flow control? [yes]: 3) . 這是告訴你在設置對話過程中的任何地方都可以鍵入“?”得到系統(tǒng)的幫助,按ctrlc可以退出設置過程,缺省設置將顯示在‘[]’中?!?路由器處于局部設置狀態(tài),這時可以設置路由器某個局部的參數(shù)。 router(config) 在router提示符下鍵入configure terminal,出現(xiàn)提示符router(config),此時路由器處于全局設置狀態(tài),這時可以設置路由器的全局參數(shù)。 router(configif)。 路由器處于RXBOOT狀態(tài),在開機后60秒內按ctrlbreak可進入此狀態(tài),這時路由器不能完成正常的功能,只能進行軟件升級和手工引導。?39。 設置線路的最高速度: Async line speed [9600]: 2) 是否設置異步口的PPP參數(shù): 是否使用缺省IP地址: 顯示結束后,系統(tǒng)會問是否使用這個設置: Use this configuration? [yes/no]: yes 如果回答yes,系統(tǒng)就會把設置的結果存入路由器的NVRAM中,然后結束設置對話過程,使路由器開始正常的工作。 幫助在IOS操作中,無論任何狀態(tài)和位置,都可以鍵入“?”得到系統(tǒng)的幫助。 任務 命令 進入特權命令狀態(tài) enable 退出特權命令狀態(tài) disable 進入設置對話狀態(tài) setup 進入全局設置狀態(tài) config terminal 退出全局設置狀態(tài) end 進入端口設置狀態(tài) interface type slot/number 進入子端口設置狀態(tài) interface type [pointtopoint | multipoint] 進入線路設置狀態(tài) line type slot/number 進入路由設置狀態(tài) router protocol 退出局部設置狀態(tài) exit 3. 基本設置命令 設置如下:ip nat pool c2501 netmask interface Ethernet 0 ip address ip nat inside ! interface Serial 0 ip address ip nat outside ! ip route Serial 0 accesslist 2 permit ! Dynamic NAT ! ip nat inside source list 2 pool c2501 overload line console 0 exectimeout 0 0 ! line vty 0 4 end 六、配置靜態(tài)路由通過配置靜態(tài)路由,用戶可以人為地指定對某一網(wǎng)絡訪問時所要經(jīng)過的路徑,在網(wǎng)絡結構比較簡單,且一般到達某一網(wǎng)絡所經(jīng)過的路徑唯一的情況下采用靜態(tài)路由。 同時由于路由器Router3除了與路由器Router2相連外,不再與其他路由器相連,所以也可以為它賦予一條默認路由以代替以上的二條靜態(tài)路由,ip route 即只要沒有在路由表里找到去特定目的地址的路徑,。 有關命令端口設置 任務 命令 設置HDLC封裝 encapsulation hdlc 設置DCE端線路速度 clockrate speed 復位一個硬件接口 clear interface serial unit 顯示接口狀態(tài) show interfaces serial [unit] 1 注:. Routershow interface serial 0 Serial 0 is up, line protocol is up Hardware is MCI Serial Internet address is , subnet mask is MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec) Last input 0:00:07, output 0:00:00, output hang never Output queue 0/40, 0 drops。 設置如下: Router1: interface Serial0 ip address clockrate 1000000 Router show controllers e1 e1 0/0 is up. Applique type is Channelized E1 unbalanced Framing is CRC4, Line Code is HDB3 No alarms detected. Data in current interval (725 seconds elapsed): 0 Line Code Violations, 0 Path Code Violations 0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins 0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs Total Data (last 24 hours) 0 Line Code Violations, 0 Path Code Violations, 0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins, 2. 所建的這兩用戶的password必須相同。 X25技術。 PVC(永久虛電路),沒有呼叫的過程,類似DDN專線。 x25 map ip 110102 broadcast x25 htc 16 ip address 相關調試命令: clear x25vc show interfaces serial show x25 map show x25 route show x25 vc . 在以下實例中路由器router1和router2均通過svc與router連接,但router1和router2不通過svc直接連接,此三個路由器的串口運行RIP路由協(xié)議,使用了子接口的概念。Router1: interface Serial0 encapsulation x25 ip address x25 address 110101 x25 htc 16 x25 nvc 2 x25 map ip 110103 broadcast ! router rip network ! 如提供窗口技術和數(shù)據(jù)重發(fā)技術,而是依靠高層協(xié)議提供糾錯功能,這是因為幀中繼工作在更好的WAN設備上,它嚴格地對應于OSI參考模型的最低二層,所以。它提供了許多管理復雜互聯(lián)網(wǎng)絡的特性,其中包括全局尋址、虛電路狀態(tài)消息和多目發(fā)送等功能。 有關命令: 綜合數(shù)字業(yè)務網(wǎng)(ISDN)綜合數(shù)字業(yè)務網(wǎng)(ISDN)由數(shù)字電話和數(shù)據(jù)傳輸服務兩部分組成,一般由電話局提供這種服務。 basic1tr6 German 1TR6 ISDN switches basicnwnet3 Norway NET3 switches (phase 1) basicnet3 NET3 ISDN switches (UK, Denmark, and other nations)。 dialer map protocol address name hostname class classname dialstring 設置接口支持PPP回撥 ppp callback accept 在全局模式下為PPP回撥設置映射類別 mapclass dialer classname 通過查找注冊在dialer map里的主機名來決定回撥. dialer callbackserver [username] 設置接口要求PPP回撥 ppp callback request 設置如下:Router1:hostname router1 user router2 password cisco ! isdn switchtype basicnet3 ! interface bri 0 ip address encapsulation ppp dialer map ip name router2 class s3 572 dialer loadthreshold 8