【正文】
Ncd c765 set user remote New user remote being created c765:remote set ip routing on c765:remote set bridging off c765:remote set ip framing none c765:remote set ppp clientname 263 c765:remote set ppp password client Enter new Password: 263 ReType new Password: 263 c765:remote set ppp authentication out none c765:remote set ip address c765:remote set ip mask c765:remote set ppp address negotiation local on c765:remote set ip pat on c765:remote set ip route destination c765:remote set number 2633 c765:remote set active 命令描述如下: 任務(wù) 命令 設(shè)置路由器系統(tǒng)名稱 set system c765 允許路由器呼叫多個(gè)目的地 set multidestination on 設(shè)置 ISDN 交 換機(jī)類 型為NET3 set switch 3 允許點(diǎn)到點(diǎn)間多條通道連接 set ppp multilink on Cisco 路由器配置手冊(cè) 29/61 實(shí)現(xiàn)負(fù)載均衡 關(guān)掉橋接 set briding off 建立用戶預(yù)制文件用于設(shè)置撥號(hào)連接參數(shù) 可以設(shè)置多個(gè)用戶預(yù)制文件用于相同的物理端口對(duì)應(yīng)于不同的連接。 按區(qū)域分關(guān)鍵字 交換機(jī)類型 Australia basicts013 Australian TS013 switches Europe basic1tr6 German 1TR6 ISDN switches basicnw3 Norway NET3 switches (phase 1) basic3 NET3 ISDN switches (UK, Denmark, and other nations)。 3. 幀中繼 point to point 配置實(shí)例: Router1: interface serial 0 encapsulation framerelay ! interface serial pointtopoint Cisco 路由器配置手冊(cè) 20/61 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 ! 相關(guān)調(diào)試命令: show framerelay lmi show framerelay map show framerelay pvc show framerelay route show interfaces serial go top 4. 幀中繼 Multipoint 配置實(shí)例 : Router1: Cisco 路由器配置手冊(cè) 21/61 interface serial 0 encapsulation framereply ! interface serial multipoint ip address framereply map ip 201 broadcast framereply map ip 301 broadcast framereply map ip 401 broadcast ! Router2: interface serial 0 encapsulation framereply ! interface serial multipoint ip address framereply map ip 102 broadcast framereply map ip 102 broadcast framereply map ip 102 broadcast ! ISDN 1. 綜合數(shù)字業(yè)務(wù)網(wǎng)( ISDN) 綜合數(shù)字業(yè)務(wù)網(wǎng)( ISDN)由數(shù)字電話和數(shù)據(jù)傳輸服務(wù)兩部分組成,一般由電話局提供這種服務(wù)。 DLCI 的值一般由幀中繼服務(wù)提供商指定。 Cisco 提供子接口( subinterface)作為分開的接口對(duì)待。 在改變了 各層的相關(guān)參數(shù)后,應(yīng)重新啟動(dòng) x25(使用 clear x25 {serial number | cmnsinterface macaddress} [vcnumber]或 clear x25vc 命令 ),否則新設(shè)置的參數(shù)可能不能生效。DTE 是 的末端系統(tǒng),如終端、計(jì)算機(jī)或網(wǎng)絡(luò)主機(jī),一般位于用戶端, Cisco 路由器就是DTE 設(shè)備。在與非 Cisco 路由器連接時(shí),一般采用 PPP封裝,其它廠家路由器一般不支持 Cisco 的 HDLC 封裝協(xié)議。 第二章:廣域網(wǎng)協(xié)議設(shè)置 HDLC HDLC 是 CISCO 路由器使用的缺省協(xié)議,一臺(tái)新路由器在未指定封裝協(xié)議時(shí)默認(rèn)使用 HDLC封裝。命令 ip nat pool c2501 mask 定義了全局地址的范圍。 mask is /24 在設(shè)置完所有接口的參數(shù)后,系統(tǒng)會(huì)把整個(gè)設(shè)置對(duì)話過程的結(jié)果顯示出來: The following configuration mand script was created: hostname Router enable secret 5 $1$W5Oh$p6J7tIgRMBOIKVXVG53Uh1 enable password pass ???? 請(qǐng)注意在 enable secret 后面顯示的是亂碼,而 enable password 后面顯示的是設(shè)置的內(nèi)容。?39。 4. router(configif)。 3. router(config) 在 router提示符下鍵入 configure terminal,出現(xiàn)提示 符 router(config),此時(shí)路由器處于全局設(shè)置狀態(tài),這時(shí)可以設(shè)置路由器的全局參數(shù)。 進(jìn)入設(shè)置對(duì)話過程后,路由器首先會(huì)顯示一些提示信息: System Configuration Dialog At any point you may enter a question mark 39。 1. Configuring interface Ether0: 1) 是否使用此接口: Is this interface in use? [yes]: 2) 是否設(shè)置此接口的 IP 參數(shù): Configure IP on this interface? [yes]: 3) 設(shè)置接口的 IP 地址: IP address for this interface: 4) 設(shè)置接口的 IP 子網(wǎng)掩碼: Number of bits in sub field [0]: Class C work is , 0 sub bits。命令 ip nat inside source list 2 pool c2501 overload 中的參數(shù) overload,將允許多個(gè)內(nèi)部地址使用相同的全局地址(一個(gè)合法 IP 地址,它是由 NIC 或服務(wù)提供商所分配的地址)。 Router1: ip route Router3: ip route ip route 同時(shí)由于路由器 Router3 除了與路由器 Router2 相連外,不再與其他路由器相連,所以也可以為它賦予一條默認(rèn)路由以代替以上的二條靜態(tài)路由, ip route 即只要沒有在路由表里找到去特定目的地址的路徑 ,則數(shù) 據(jù)均被路由到地址為 的相鄰路由器。 1. 有關(guān)命令 端口設(shè)置 任務(wù) 命令 設(shè)置 PPP 封裝 encapsulation ppp1 設(shè)置認(rèn)證方法 ppp authentication {chap | chap pap Cisco 路由器配置手冊(cè) 14/61 | pap chap | pap} [ifneeded] [listname | default] [callin] 指定口令 username name password secret 設(shè)置 DCE 端線路速度 clockrate speed 注: 要使用 CHAP/PAP 必須使用 PPP 封裝。 網(wǎng)絡(luò)設(shè)備分為數(shù)據(jù)終端設(shè)備( DTE)、數(shù)據(jù)電路終端設(shè)備( DCE)及分組交換設(shè)備( PSE)。 虛電路計(jì)數(shù)從 1 到 8,缺省為 1。 無論如何,在廣域網(wǎng)環(huán)境使用基于連接的接口 (象 和 Frame Relay),同一接口通過虛電路 (vc)連接多臺(tái)遠(yuǎn)端路由器時(shí),從同一接口來的路由更新信息不可以再被發(fā)回到相同的接口,除非強(qiáng)制使用分開的物理接口連接不同的路由器。這種服務(wù)通過幀中繼虛電路實(shí)現(xiàn),每個(gè)幀中繼虛電路都以數(shù)據(jù)鏈路識(shí)別碼( DLCI)標(biāo)識(shí)自己。 選項(xiàng)允許在幀中繼網(wǎng)絡(luò)上傳輸路由廣播信息。 2. 基本命令 任務(wù) 命令 設(shè)置 ISDN 交換類型 isdn switchtype switchtype1 接口設(shè)置 interface bri 0 設(shè)置 PPP 封裝 encapsulation ppp 設(shè)置協(xié)議地址與電話號(hào)碼的映射 dialer map protocol nexthopaddress [name hostname] [broadcast] [dialstring] 啟動(dòng) PPP 多連接 ppp multilink 設(shè)置啟動(dòng)另一個(gè) B 通道的閾值 dialer loadthreshold load 顯示 ISDN 有關(guān)信息 show isdn {active | history | memory | services | status [dsl | interfacetype number] | timers} Cisco 路由器配置手冊(cè) 22/61 注: ,國內(nèi)交換機(jī)一般為 basic3。 263 的 ISDN 電話號(hào)碼為 2633,用戶為 263,口令為263,所涉及的命令如下表: 任務(wù) 命令 指定接口通過 PPP/IPCP地址協(xié)商獲得 IP 地址 ip address negotiated 指定內(nèi)部和外部端口 ip nat {inside | outside} 使用 ppp/pap 作認(rèn)證 ppp authentication pap callin 指定接口屬于撥號(hào)組 1 dialergroup 1 定義撥號(hào)組 1允許所有 IP協(xié)議 dialerlist 1 protocol ip permit 設(shè)定撥號(hào),號(hào)碼為 2633 dialer string 2633 設(shè)定登錄 263 的用戶名和口令 ppp pap sentusername 263 password 263 設(shè)定默認(rèn)路由 ip route bri 0 設(shè)定符合訪問列表 2 的所有源地址被翻譯為 bri 0 所擁有的地址 ip nat inside source list 2 interface bri 0 overload 設(shè)定 訪問列表 2,允許所有協(xié)議 accesslist 2 permit any 具體配置如下: hostname Cisco2503 ! isdn switchtype basic3 ! ip subzero no ip domainlookup ip routing ! interface Eth