广域网配置命令
广域网配置命令
目录 目录 第1章帧中继(FR配置命令 11FR配置命令 1.1.1 encapsulation frame-relay 1.1.2 frame-relay cir 1.1.3 frame-relay intf-type 1.1.4 frame-relay inverse-arp 1.1.5 frame-relay Imi-type 1.1.6 frame-relay local-dlci 1.1.7 frame-relay n 391 1.18 frame- relay n392… 1.1.9 frame-relay n 393 1.1.10 frame-relay t391 1.1.11 frame-relay t392 1.1.12 frswitch 1.1.13 frame-relay map 1.1.14 clear frame-relay-inarp 1123456778901233457 1.1.15 show frame-relay 1.1.16 show frswitch 1.1.17 show interface 1.1.18 debug frame-relay 第2章X25和LAPB配置命令 21X25和LAPB配置命令 2.1.1 encapsulation X25 2.1.2 translate x25 2.1.3 translate tcp 2. 1. 4 x25 address 2.1.6x25cWa 45799012234556 2.1.7 x25 dbit 2.1.8 x 25 backup 2.1.10x25jdle. 2.1.11 x25 incallcheck 2.1.12 x25 interface 2.1.13x25k 2.1.14 2.1.15 x25 map(pvc) 2.1.16 x25 map(svc) 2.1.17x25mod 2.1.18x25n1. 2.1.19x25n2
目录 目 录 第 1 章 帧中继(FR)配置命令......................................................................................................................................... 1 1.1 FR 配置命令....................................................................................................................................................... 1 1.1.1 encapsulation frame-relay......................................................................................................................... 1 1.1.2 frame-relay cir ........................................................................................................................................... 2 1.1.3 frame-relay intf-type .................................................................................................................................. 3 1.1.4 frame-relay inverse-arp ............................................................................................................................. 4 1.1.5 frame-relay lmi-type................................................................................................................................... 5 1.1.6 frame-relay local-dlci ................................................................................................................................. 6 1.1.7 frame-relay n391 ....................................................................................................................................... 7 1.1.8 frame-relay n392 ....................................................................................................................................... 7 1.1.9 frame-relay n393 ....................................................................................................................................... 8 1.1.10 frame-relay t391 ...................................................................................................................................... 9 1.1.11 frame-relay t392 .................................................................................................................................... 10 1.1.12 frswitch .................................................................................................................................................. 11 1.1.13 frame-relay map .................................................................................................................................... 12 1.1.14 clear frame-relay-inarp .......................................................................................................................... 13 1.1.15 show frame-relay................................................................................................................................... 13 1.1.16 show frswitch......................................................................................................................................... 14 1.1.17 show interface ....................................................................................................................................... 15 1.1.18 debug frame-relay ................................................................................................................................. 17 第 2 章 X.25 和 LAPB 配置命令................................................................................................................................... 19 2.1 X.25 和 LAPB 配置命令................................................................................................................................... 19 2.1.1 encapsulation x25 ................................................................................................................................... 20 2.1.2 translate x25............................................................................................................................................ 21 2.1.3 translate tcp............................................................................................................................................. 22 2.1.4 x25 address............................................................................................................................................. 23 2.1.5 x25 alias .................................................................................................................................................. 23 2.1.6 x25 cwla .................................................................................................................................................. 24 2.1.7 x25 dbit.................................................................................................................................................... 25 2.1.8 x25 ebackup............................................................................................................................................ 25 2.1.9 x25 htc..................................................................................................................................................... 26 2.1.10 x25 idle.................................................................................................................................................. 27 2.1.11 x25 incallcheck ...................................................................................................................................... 28 2.1.12 x25 interface.......................................................................................................................................... 28 2.1.13 x25 k...................................................................................................................................................... 29 2.1.14 x25 map(pad)........................................................................................................................................ 30 2.1.15 x25 map(pvc)......................................................................................................................................... 31 2.1.16 x25 map(svc)......................................................................................................................................... 31 2.1.17 x25 mod................................................................................................................................................. 32 2.1.18 x25 n1.................................................................................................................................................... 34 2.1.19 x25 n2.................................................................................................................................................... 34 - I -
目录 2120x25nps 2.1.21x25nu 2.1.22x25nws. 36 2.1.23 x25 pad-access 21.24x25psze… 2125x25pvc 2.1.26x25t1 8394 2.1.27x2512 2.1.28x25t20. 2.1.29x25t23 2130x25tp 2.1.31 x25 wsize 2.1.32 x25switch connect 21.33 x25switch destination 2.1.34 x25switch xot pVc 2.1.35 x25switch xot svc 2345648 2.1.36 x29 profile 2.1.37 clear x25 48 2.1.38show 2.1.39 show x25 tcp 2. 1.41 show x25 VC 2.1 42 show x25switch 2. 1. 43 show x 29 21.44 debug lapb.… 2335 2.1.45 debug X25 2.1.46pad 第3章PPP配置命令 31PPP配置命令 3.1.1 encapsulation ppp 3.1.2 interface multilink 3.1.3 ip local pool 3.1.4 multilink bundle-name 3.1.5 multilink-group 3.1.6 multilink max-fragments 345668 3.1.7 multilink max-links… 3. 1. 8 multilink min-links 3.1.9 peer default ip address 3.1.10 peer neighbor-route 3.1.11 ppp authentication 3.1.12 ppp authorization 3.1.13 ppp callback 3.1.14 ppp chap echo 3.1.15 ppp chap hostname. 1134567 3.1.16 ppp chap refuse 3.1.17
目录 2.1.20 x25 nps.................................................................................................................................................. 35 2.1.21 x25 nui................................................................................................................................................... 36 2.1.22 x25 nws ................................................................................................................................................. 36 2.1.23 x25 pad-access ..................................................................................................................................... 37 2.1.24 x25 psize ............................................................................................................................................... 38 2.1.25 x25 pvc.................................................................................................................................................. 38 2.1.26 x25 t1..................................................................................................................................................... 39 2.1.27 x25 t2..................................................................................................................................................... 40 2.1.28 x25 t20................................................................................................................................................... 41 2.1.29 x25 t23................................................................................................................................................... 41 2.1.30 x25 tcp................................................................................................................................................... 42 2.1.31 x25 wsize............................................................................................................................................... 43 2.1.32 x25switch connect................................................................................................................................. 44 2.1.33 x25switch destination ............................................................................................................................ 45 2.1.34 x25switch xot pvc .................................................................................................................................. 46 2.1.35 x25switch xot svc .................................................................................................................................. 47 2.1.36 x29 profile.............................................................................................................................................. 48 2.1.37 clear x25................................................................................................................................................ 48 2.1.38 show x25 ............................................................................................................................................... 49 2.1.39 show x25 tcp ......................................................................................................................................... 50 2.1.40 show x25 xot ......................................................................................................................................... 50 2.1.41 show x25 vc........................................................................................................................................... 51 2.1.42 show x25switch ..................................................................................................................................... 52 2.1.43 show x29 ............................................................................................................................................... 53 2.1.44 debug lapb............................................................................................................................................. 53 2.1.45 debug x25.............................................................................................................................................. 55 2.1.46 pad ........................................................................................................................................................ 55 第 3 章 PPP 配置命令................................................................................................................................................... 61 3.1 PPP 配置命令................................................................................................................................................... 61 3.1.1 encapsulation ppp ................................................................................................................................... 62 3.1.2 interface multilink..................................................................................................................................... 63 3.1.3 ip local pool ............................................................................................................................................. 64 3.1.4 multilink bundle-name ............................................................................................................................. 65 3.1.5 multilink-group......................................................................................................................................... 66 3.1.6 multilink max-fragments .......................................................................................................................... 67 3.1.7 multilink max-links ................................................................................................................................... 68 3.1.8 multilink min-links .................................................................................................................................... 69 3.1.9 peer default ip address............................................................................................................................ 69 3.1.10 peer neighbor-route............................................................................................................................... 71 3.1.11 ppp authentication ................................................................................................................................. 71 3.1.12 ppp authorization................................................................................................................................... 73 3.1.13 ppp callback .......................................................................................................................................... 74 3.1.14 ppp chap echo....................................................................................................................................... 75 3.1.15 ppp chap hostname............................................................................................................................... 76 3.1.16 ppp chap refuse..................................................................................................................................... 77 3.1.17 ppp ipcp rfc-default................................................................................................................................ 78 - II -
目录 3.1.18 ppp Icp echo 79 3.1.19 ppp Icp enddisc-type 3.1.20 ppp Icp rfc-default 3.1.21 ppp lcp 3.1.22 ppp max-bad-auth 3.1.23 ppp multilink… 83 3.1.24 ppp pap refuse 3.1.25 ppp pap sent-username 3.1.26 ppp timeout authentication.... 3.1.27 ppp timeout ncp 3.1.28 ppp timeout Icp 3.1.29 show ip local pool. 3.1.30 show ppp ““““ 3.1.31 usename 3. 1.32 debug ppp 3.2 PPPOE配置命令 3.2.1 pppoe-client dialer number 3.2.2 clear pppoe 3.2. 3 debug pppoe data 486888899349959 3.2.4 debug pppoe error 3.2.5 debug pppoe event. 3.2.6 debug pppoe packet 3.2.8 show pppoe session 3.2.9 show pppoe control 3.2. 10 show pppoe group 3.2. 11 clear pppoe session 第4章S|P配置命令 4.1SLP配置命令 4.1.1 debug slip 4.12 encapsulation slip… 第5章HDLC配置命令 51HDLC配置命令 5.1.1 debug hdlc 第6章SDN配置命令 6.1|SDN配置命令 6.1. 1 debug isdn 6.1.3 isdn disconnect. 6.1.4 isdn switch-type 113 6. 1.5 isdn tei-negotiation 6.1.6 show isd 第7章WAN性能配置命令…
目录 3.1.18 ppp lcp echo.......................................................................................................................................... 79 3.1.19 ppp lcp enddisc-type ............................................................................................................................. 79 3.1.20 ppp lcp rfc-default.................................................................................................................................. 81 3.1.21 ppp lcp................................................................................................................................................... 81 3.1.22 ppp max-bad-auth ................................................................................................................................. 82 3.1.23 ppp multilink .......................................................................................................................................... 83 3.1.24 ppp pap refuse ...................................................................................................................................... 84 3.1.25 ppp pap sent-username ........................................................................................................................ 85 3.1.26 ppp timeout authentication .................................................................................................................... 86 3.1.27 ppp timeout ncp..................................................................................................................................... 87 3.1.28 ppp timeout lcp...................................................................................................................................... 87 3.1.29 show ip local pool.................................................................................................................................. 88 3.1.30 show ppp............................................................................................................................................... 89 3.1.31 username .............................................................................................................................................. 90 3.1.32 debug ppp ............................................................................................................................................. 91 3.2 PPPoE 配置命令.............................................................................................................................................. 93 3.2.1 pppoe-client dialer number...................................................................................................................... 94 3.2.2 clear pppoe.............................................................................................................................................. 94 3.2.3 debug pppoe data ................................................................................................................................... 94 3.2.4 debug pppoe error................................................................................................................................... 95 3.2.5 debug pppoe event.................................................................................................................................. 95 3.2.6 debug pppoe packet................................................................................................................................ 96 3.2.7 pppoe-server virtual-template.................................................................................................................. 97 3.2.8 show pppoe session................................................................................................................................ 98 3.2.9 show pppoe control ................................................................................................................................. 98 3.2.10 show pppoe group................................................................................................................................. 99 3.2.11 clear pppoe session............................................................................................................................. 100 第 4 章 SLIP 配置命令................................................................................................................................................ 102 4.1 SLIP 配置命令................................................................................................................................................ 102 4.1.1 debug slip.............................................................................................................................................. 102 4.1.2 encapsulation slip.................................................................................................................................. 104 第 5 章 HDLC 配置命令.............................................................................................................................................. 105 5.1 HDLC 配置命令.............................................................................................................................................. 105 5.1.1 debug hdlc............................................................................................................................................. 105 5.1.2 encapsulation hdlc................................................................................................................................. 107 第 6 章 ISDN 配置命令 ............................................................................................................................................... 109 6.1 ISDN 配置命令 ............................................................................................................................................... 109 6.1.1 debug isdn............................................................................................................................................. 109 6.1.2 isdn call ..................................................................................................................................................111 6.1.3 isdn disconnect...................................................................................................................................... 112 6.1.4 isdn switch-type..................................................................................................................................... 113 6.1.5 isdn tei-negotiation ................................................................................................................................ 114 6.1.6 show isdn .............................................................................................................................................. 114 第 7 章 WAN 性能配置命令....................................................................................................................................... 118 - III -
目录 7.1WAN性能配置命令 7.11 p fast-switch enable(全局配置态) 7.12 Ip fast-switch enable(接口配置态) 7.13 Show ip fast-switch stat…… 7.1.4 Show version module fsc
目录 7.1 WAN 性能配置命令....................................................................................................................................... 118 7.1.1 Ip fast-switch enable(全局配置态) ..................................................................................................... 118 7.1.2 Ip fast-switch enable(接口配置态) ..................................................................................................... 119 7.1.3 Show ip fast-switch stat......................................................................................................................... 119 7.1.4 Show version module fsc ...................................................................................................................... 121 - IV -
03广域网配置命令 第1章帧中继(FR配置命令 1.1FR配置命令 帧中继(FR)配置命令包括: encapsulation frame-relay ● frame-relay cir frame-relay interface frame-relay in ● frame- relay Imi-type frame-relay local-dlci frame-relay map ● frame-relay n391 frame-relay n392 frame-relay n393 frame-relay t391 ● frame-relay t392 clear frame-relay ● show frame-relay show frswitch show interface debug frame-relay 1.1.1 encapsulation frame-relay 接口封装帧中继。no取消封装 encapsulation frame-relay no encapsulation frame-relay
03-广域网配置命令 第1章 帧中继(FR)配置命令 1.1 FR配置命令 帧中继(FR)配置命令包括: z encapsulation frame-relay z frame-relay cir z frame-relay interface z frame-relay inverse-arp z frame-relay lmi-type z frame-relay local-dlci z frame-relay map z frame-relay n391 z frame-relay n392 z frame-relay n393 z frame-relay t391 z frame-relay t392 z frswitch z clear frame-relay-inarp z show frame-relay z show frswitch z show interface z debug frame-relay 1.1.1 encapsulation frame-relay 接口封装帧中继。no 取消封装。 encapsulation frame-relay no encapsulation frame-relay - 1 -
03广域网配置命令 参数 无 缺省 无 命令模式 接口配置态 使用指南 使用no取消封装,即回到封装HDLC方式 示例 下面例子在串口s1/1配置帧中继封装方式 1.1.2 frame-relay cir 为帧中继虚电路设定提交信息速率 frame-relay cir bps 参数 参数说明 ps 提交信息速率(CIR),每秒比特数.默认值64000 其值为1至2048000之间的值。 缺省 4000 命令模式 接口配置态
03-广域网配置命令 参数 无 缺省 无 命令模式 接口配置态 使用指南 使用 no 取消封装,即回到封装 HDLC 方式。 示例 下面例子在串口 s1/1 配置帧中继封装方式: interface s1/1 encapsulation frame-relay 1.1.2 frame-relay cir 为帧中继虚电路设定提交信息速率。 frame-relay cir bps 参数 参数 参数说明 bps 提交信息速率(CIR), 每秒比特数. 默认值64000。 其值为 1 至 2048000 之间的值。 缺省 64000 命令模式 接口配置态 - 2 -
03广域网配置命令 使用指南 提交速率在申请DLC时确定。 示例 把s1/1口配成帧中继,并配置ci为204800。 nterface s1/1 encapsulation frame-relay frame-relay cir 2048000 相关命令 无 1.1.3 frame-relay intf-type 设定帧中继的交换类型。 frame-relay intf-type [dce I dte I nni 参数 参数 参数说明 (可选项)连接到路由器的路由器或访问服务器以交换机的方式工作 (可选项路由器或访问服务器以接入帧中继网络的终端设备方式工作。这 缺省配置 (可选项)路由器或访问服务器以交换机的方式连接到网络,即支持NN网络 连接。 缺省 命令模式 接口配置态 使用指南 当帧中继端口与网络相连一般应配为DTE,若路由器为背靠背相连,则一台配成DTE, 另一台配成DCE。如果需要双向LM过程,应配置为NN。帧中继标准描述了一个终 端用户与一帧中继网络之间的接口,称为U№,以及邻近帧中继网络之间的接口,称之 为NN。下图描述了UN|和NN的概念
03-广域网配置命令 使用指南 提交速率在申请 DLCI 时确定。 示例 把 s1/1 口配成帧中继,并配置 cir 为 2048000。 interface s1/1 encapsulation frame-relay frame-relay cir 2048000 相关命令 无 1.1.3 frame-relay intf-type 设定帧中继的交换类型。 frame-relay intf-type [dce | dte | nni] 参数 参数 参数说明 dce (可选项) 连接到路由器的路由器或访问服务器以交换机的方式工作。 dte (可选项) 路由器或访问服务器以接入帧中继网络的终端设备方式工作。这是 缺省配置。 nni (可选项) 路由器或访问服务器以交换机的方式连接到网络,即支持NNI网络 连接。 缺省 dte 命令模式 接口配置态 使用指南 当帧中继端口与网络相连一般应配为 DTE,若路由器为背靠背相连,则一台配成 DTE, 另一台配成 DCE。如果需要双向 LMI 过程,应配置为 NNI。 帧中继标准描述了一个终 端用户与一帧中继网络之间的接口,称为 UNI,以及邻近帧中继网络之间的接口,称之 为 NNI。下图描述了 UNI 和 NNI 的概念。 - 3 -
03广域网配置命令 Dsucsu mn Pubic frame 一条端到端PVC链接由许多PVC段构成。每条PVC段由一个UN|和一个NN或两个 NN分隔。要激活一条PVC,需要激活所有PVC段。网络可以是链状的。一个终端用户 站点连接着的网络称作存取网络,中间的网络称作传输网。每个网络均为本地寻址,这 意味着PVC的每一段都有独立的DLc|号。但是在两个邻接着的网络中的链接上使用的 DLC号必须一致。NN与∪N基于同样的标准。为提供一个平衡接口,在两端必须同时 提供网络端与用户端过程 示例 把s1/1口配成 frame-relay,配置 interface为dce。 enca frame-relay e-relay intf-type dce 1.1.4 frame-relay inverse-arp 在配置帧中继的路由器或访问服务器上,如果未激活反向地址解析协议( I nverse arp) 则使用这个命令重新激活反向地址解析协议 [no] frame-relay inverse-arp 参数 缺省 打开反向地址解析协议(IARP)。 命令模式 接口配置态 使用指南 反向ARP是用于帧中继网上询问对方协议地址的协议。其实现可以参见RFC1293。它 使配置帧中继的路由器或访问服务器能发现与虚电路关联的协议地址
03-广域网配置命令 一条端到端 PVC 链接由许多 PVC 段构成。每条 PVC 段由一个 UNI 和一个 NNI 或两个 NNI 分隔。要激活一条 PVC,需要激活所有 PVC 段。网络可以是链状的。一个终端用户 站点连接着的网络称作存取网络,中间的网络称作传输网。每个网络均为本地寻址,这 意味着 PVC 的每一段都有独立的 DLCI 号。但是在两个邻接着的网络中的链接上使用的 DLCI 号必须一致。NNI 与 UNI 基于同样的标准。为提供一个平衡接口,在两端必须同时 提供网络端与用户端过程。 示例 把 s1/1 口配成 frame-relay,配置 interface 为 dce 。 interface s1/1 enca frame-relay frame-relay intf-type dce 1.1.4 frame-relay inverse-arp 在配置帧中继的路由器或访问服务器上,如果未激活反向地址解析协议(Inverse ARP), 则使用这个命令重新激活反向地址解析协议。 [no] frame-relay inverse-arp 参数 无 缺省 打开反向地址解析协议(IARP)。 命令模式 接口配置态 使用指南 反向 ARP 是用于帧中继网上询问对方协议地址的协议。其实现可以参见 RFC1293。它 使配置帧中继的路由器或访问服务器能发现与虚电路关联的协议地址。 - 4 -
03-广域网配置命令 在帧中继网络中,PVC的DLC|可以看成硬件地址。通过信令信息,网络建立一条虚电 路,通过反向ARP可以发现电路另一端的协议地址。 示例 把s11口配成帧中继,禁止反向ARP interface s1/1 enca 相关命令 show frame-relay 1.1.5 frame-relay Imi-type 配置LMl的类型。使用 no frame- relay Imi-type命令恢复到默认类型值: [no] frame-relay Imi-type q933a cisco ansi] 参数 参数说明 TUTQ933附件A。 ANS|T1617附件定义的接口类型。 bisco Group of Four的Rev1。与 Cisco兼容 缺省 Autosense 命令模式 接口配置态 使用指南 LMI定义了用户设备与帧中继网络之间的操作,它提供永久虚电路(PVC的状态或过时的 通知。q933a采用|TUTQ933附件A中定义的过程与消息。ansi采用ANS|T1617附 件D中定义的过程与消息。 bisco采用 Group of Four Rev#1中定义的过程与消息。LM 类型的设置是基于接口的,可以通过命令 show interface来查看
03-广域网配置命令 在帧中继网络中,PVC 的 DLCI 可以看成硬件地址。通过信令信息,网络建立一条虚电 路,通过反向 ARP 可以发现电路另一端的协议地址。 示例 把 s1/1 口配成帧中继,禁止反向 ARP 。 interface s1/1 enca frame-relay no fr inverse-arp 相关命令 show frame-relay 1.1.5 frame-relay lmi-type 配置 LMI 的类型。使用 no frame-relay lmi-type 命令恢复到默认类型值: [no] frame-relay lmi-type { q933a | bcisco | ansi} 参数 参数 参数说明 q933a ITU-T Q.933附件A。 ansi ANSI T1.617附件定义的接口类型。 bcisco Group of Four的Rev 1。与Cisco兼容。 缺省 Autosense 命令模式 接口配置态 使用指南 LMI 定义了用户设备与帧中继网络之间的操作,它提供永久虚电路(PVC)的状态或过时的 通知。q933a 采用 ITU-T Q.933 附件 A 中定义的过程与消息。ansi 采用 ANSI T1.617 附 件 D 中定义的过程与消息。bcisco 采用 Group of Four Rev.#1 中定义的过程与消息。 LMI 类型的设置是基于接口的,可以通过命令 show interface 来查看。 - 5 -