日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

廣域網(wǎng)協(xié)議設(shè)置

一、HDLC
HDLC 是CISCO 路由器使用的缺省協(xié)議,一臺新路由器在HDLC環(huán)境中使用時不需要設(shè)置廣域網(wǎng)協(xié)議 。

1.有關(guān)命令
端口設(shè)置
設(shè)置HDLC 封裝 encapsulation hdlc
設(shè)置DCE 端線路速度
clockrate speed
2.舉例
 
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
1.有關(guān)命令
端口設(shè)置
設(shè)置X.25 封裝encapsulation x25[dce]
設(shè)置X.121 地址x25 address x.121-address
設(shè)置遠(yuǎn)方站點(diǎn)的地址映射x25 map ip IP address x.121-address
2.舉例

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
1.有關(guān)命令
端口設(shè)置
設(shè)置FR 封裝 encapsulation frame-relay
設(shè)置FR LMI 類型
子端口設(shè)置 frame-relay lmi-type {ansiciscoq933a}
設(shè)置FR DLCI 編號frame-relay interface-dlci dlci[broadcast]
2.舉例

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
電話網(wǎng)絡(luò)(PSTN)是目前普及程度最高、成本最低的公用通訊網(wǎng)絡(luò),它在網(wǎng)絡(luò)互連中也有廣泛的應(yīng)用 。電話網(wǎng)絡(luò)的應(yīng)用一般可分為兩種類型,一種是同等級別機(jī)構(gòu)之間以按需撥號(DDR)的方式實(shí)現(xiàn)互連,一種是ISP 為撥號上網(wǎng)的用戶提供的服務(wù) 。這兩種類型使用的設(shè)置命令大致相同,但在設(shè)置思想上又有重要的差別 。

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

異步口(async)設(shè)置:
設(shè)置封裝形式為PPP encapsulation PPP

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

line 撥號線設(shè)置:
指定特定情況下路由器使用的chat-script script {dialerreset} script-name
設(shè)置modem 的工作方式 modem {inoutdialin}
自動配置modem 類型modem autoconfig discovery
設(shè)置撥號線的通訊速率 speed speed
設(shè)置通訊線路的流控方式 flowcontrol hardware
連通后自動執(zhí)行命令autocommand command
2.DDR 實(shí) 例

北京:
-- username guangzhou password Legend
-- (password 必須與廣州的路由器設(shè)置的password 一樣)
-- chat-script rstmdm"""AT&FS0=1&B1&C1&D2&H1&K1&M4&R2"OK
-- chat-script cisco-dial"""AT"TIMEOUT 30 OK" ATDTT" TIMEOUT 30 CONNECT c

推薦閱讀