[ 永遠的UNIX::UNIX技術資料的寶庫 ]   GB | BIG5

首頁 > 網絡管理 > 網絡設備 > 正文
Cisco路由器配置手冊 第二章 廣域網協議設置
不詳 (2001-05-01 22:13:14)
一、HDLC 
HDLC 是CISCO 路 由 器 使 用 的 缺 省 協 議, 一 台 新 路 由 器 在HDLC 環 境 
中 使 用 時 不 需 要 設 置 廣 域 網 協 議。 


有 關 命 令 
端 口 設 置 
設 置HDLC 封 裝 encapsulation hdlc  
設 置DCE 端 線 路 速 度  
clockrate speed  




舉 例 
 
Router1: 
Interface Serial0 
-- ip address 192.200.10.1 255.255.255.0 
-- Clockrate 1000000 
Router2: 
-- interface Serial0 
-- ip address 192.200.10.2 255.255.255.0 
 

二、X.25 
有 關 命 令 
端 口 設 置 
設 置X.25 封 裝 encapsulation x25[dce]  
設 置X.121 地 址 x25 address x.121-address  
設 置 遠 方 站 點 的 地 址 映 射 x25 map ip IP address x.121-address  


舉 例 
 
Router1: 
interface Serial0 
-- encapsulation x25 
-- ip address 192.200.10.1 255.255.255.0 
-- x25 address 110101 
-- x25 map ip 192.200.10.2 110102 

Router2: 
interface Serial0 
-- encapsulation x25 
-- ip address 192.200.10.2 255.255.255.0 
-- x25 address 110102 
-- x25 map ip 192.200.10.1 110101 

 

三、Frame Relay 
有 關 命 令 
端 口 設 置 
設 置FR 封 裝 encapsulation frame-relay  
設 置FR LMI 類 型 
子 端 口 設 置 frame-relay lmi-type {ansi|cisco|q933a}  
設 置FR DLCI 編 號 frame-relay interface-dlci dlci[broadcast]  




舉 例 
 
Router1: 
interface Serial0 
-- encapsulation frame-relay 
-- frame-relay lmi-type ansi 
interface Serial0.16 point-to-point 
-- ip address 192.200.10.1 255.255.255.0 
-- frame-relay interfac dlci 16 
Router2: 
interfacte Serial0 
-- encapsulation frame-relay 
-- frame-relay lmi-type ansi 
interface Serial0.17 point-to-point 
-- ip address 192.200.10.2 255.255.255.0 
-- frame-relay interface-dlci 17 

 

四、PSTN 
電 話 網 絡(PSTN) 是 目 前 普 及 程 度 最 高、 成 本 最 低 的 公 用 通 訊 網 絡, 
它 在 網 絡 互 連 中 也 有 廣 泛 的 應 用。 電 話 網 絡 的 應 用 一 般 可 分 為 兩 
種 類 型, 一 種 是 同 等 級 別 機 構 之 間 以 按 需 撥 號(DDR) 的 方 式 實 現 互 
連, 一 種 是ISP 為 撥 號 上 網 的 用 戶 提 供 的 服 務。 這 兩 種 類 型 使 用 的 
設 置 命 令 大 致 相 同, 但 在 設 置 思 想 上 又 有 重 要 的 差 別。 


相 關 命 令 
全 局 設 置: 
設 置PPP 安 全 協 議 使 用 的 用 戶 名 和 密 碼 username username password password  
設 置 路 由 器 與modem 的 接 口 指 令 chat-script script-name EXPECT SEND EXPECT SEND(etc.)  
設 置 用 戶 的IP 地 址 池 ip local pool {default|pool-name low-ip-address [high-ip-address]}  
指 定 地 址 池 的 工 作 方 式 ip address-pool [dhcp-proxy-client|local]  
指 定DHCP 服 務 器 ip dhcp-server [ip-address|name]  
指 定TACACS 服 務 器 tacacs-server host hostname [single-connection] [port interger] [timeout integer] [key string]  

異 步 口(async) 設 置:  
設 置 封 裝 形 式 為PPP encapsulation PPP  
啟 動 異 步 口 的 路 由 功 能 async default routing  
設 置 異 步 口 的PPP 工 作 方 式 async mode {dedicated interactive}  
啟 動 按 需 撥 號 功 能 dialer in-band  
設 置 用 戶 的IP 地 址 peer default ip address {ip-address|dhcp|pool [pool-name]}  
設 置IP 地 址 與Ethernet0 相 同 ip unnumbered Ehternet0  
啟 動TCP 頭 壓 縮 ip tcp header-compression passive  
設 置 端 口 在 掛 斷 前 的 等 待 時 間 dialer idle-timeout seconds  
設 置IP 地 址 與 電 話 號 碼 的 映 射 dialer map ip next-hop-address dialer-string  
設 置PPP 安 全 協 議 ppp authentication protocol  

line 撥 號 線 設 置:  
指 定 特 定 情 況 下 路 由 器 使 用 的chat-script script {dialer|reset} script-name  
設 置modem 的 工 作 方 式 modem {inout|dialin}  
自 動 配 置modem 類 型 modem autoconfig discovery  
設 置 撥 號 線 的 通 訊 速 率 speed speed  
設 置 通 訊 線 路 的 流 控 方 式 flowcontrol hardware  
連 通  自 動 執 行 命 令 autocommand command  




DDR 實 例 
 
北 京: 
-- username guangzhou password Legend 
-- (password 必 須 與 廣 州 的 路 由 器 設 置 的password 一 樣) 
-- chat-script rstmdm"""AT&FS0=1&B1&C1&D2&H1&K1&M4&R2"OK 
-- chat-script cisco-dial"""AT"TIMEOUT 30 OK" ATDT\T" TIMEOUT 30 CONNECT \c 
-- interface async1 
---- encapsulation ppp 
---- async default routing 
---- async mode dedicated 
---- dialer in-band 
---- ip unnumbered Ethernet0 
---- ip tcp header-compression passive 
---- dialer idle-timeout 300 
---- dialer map ip 20.1.1.1 name Guangzhou 02088888888 
---- ppp authentication chap 
-- line aux 0 
---- script dialer cisco-dial 
---- script reset rstmdm 
---- modem inout 
---- modem autoconfig discovery 
---- transport input all 
---- rxspeed 38400 
---- txspeed 38400 
---- stopbits 1 
---- flowcontrol hardware 
-- line vty 0 4 
---- password telnet 
---- login 
Access Server 實 例 
 
Router: 
hostname Router 
enable secret 5 $ 1$EFqU$tYLJLrynNUKzE4bx6fmH// 
chat-script cisco-default ABORT ERROR "" "AT Z"OK "ATDT \T"TIMEOUT 30 \c CONNE 
interface Ethernet0 
--ip address 10.111.4.20 255.255.252.0 
interface Async1 
--ip unnumbered Ethernet0 
cencapsulation ppp 
--keepalive 10 
--async mode interactive 
--peer default ip address pool Cisco 2511-Group-142 
--ppp authentication pap 
ip local pool Cisco2511-Group-142 10.111.4.21 10.111.4.36 
tacacs-server host 10.111.4.2 
line 1 
--script dialer cisco-default 
--login authentication tacacs 
--modem InOut 
--modem autoconfigure discovery 
--flowcontrol hardware 
 

五、ISDN MPPP 
相 關 命 令 
全 局 設 置: 
設 置ISDN 交 換 類 型 isdn switch-type basic-nil  

接 口 設 置  
設 備PPP 封 裝 encapsulation ppp  
啟 動PPP 多 連 接 ppp multilink  
設 置 啟 動 另 一 個B 通 道 的 閾 值 dialer load-threshold load  




舉 例: 
 
Router1: 
isdn switch-type basic-nil 
interface Serial0 
-- ip address 192.200.10.1 255.255.255.0 
-- encapsulation ppp 
-- dialer map ip 192.200.10.2 54321 
-- dialer load-threshold 80 
-- ppp multilink 
   (http://www.fanqiang.com)
    進入【UNIX論壇

相關文章
Cisco路由器配置實例 --反轉多路復用的妙用 (2001-06-08 17:04:00)
Cisco路由器配置手冊 第六章 參考 (2001-05-02 00:20:04)
Cisco路由器配置手冊 第二章 廣域網協議設置 (2001-05-01 22:13:14)
Cisco路由器配置手冊 第三章 路由協議設置 (2001-05-01 22:06:13)
Cisco路由器配置手冊 第一章 預備知識 (2001-05-01 22:04:54)
Cisco路由器配置手冊 第五章 虛擬局域網(VLAN)路由 (2001-05-01 22:02:27)
Cisco路由器配置手冊 第四章 服務質量及訪問控制 (2001-05-01 21:57:01)
CISCO路由器配置基礎 (2001-04-19 15:42:48)
Cisco路由器配置教程 (2001-04-19 14:28:01)
 

★  樊強制作 歡迎分享  ★