配置X.25
2 t& v1 l7 B) j+ J! R % o1 n% \6 K" P. k. y8 ~
X.25配置完成如下工作:
( Y9 Q1 G5 q- B功 能 命 令 % u( ]6 z1 r4 B9 k( }, b
设置X.25模式 encapsulation x25 [dte|dce] * s3 \1 F# o7 b* {% f- K# h
设置最大虚电路数 x25 htc max-vc-number
2 b6 x. y; ?! z& M) ~设置X.121地址 x25 address x121-address 5 @: X1 h4 {: a! Y4 P. Y( @9 w" e
建立IP地址与X.121地址对应 x25 map ip ip-address x121-addres [broadcast]
/ F2 }! p2 M8 a0 A- khtc----htc是最大的虚电路数,因为许多X.25交换机是从高到低建立虚电路的,max-vc-number不能超过申请的最大值. B+ h1 i: n" T. l8 P
请参阅"X.25 Example"的配置实例. * W. G+ v4 X+ e$ d
配置HDLC:
, w! T# H% `$ b2 c+ k2 kHDLC是CISCO路由器使用的缺省协议,一台新路由器在未指定封装协议时默认使用HDLC封装。
\% }7 a9 @' j% @% s; s% N1 m, }: s" l2 JA.有关命令
& F. ~& v5 f+ ?9 ^" w% h. O端口设置: 0 j' s H0 s3 J, y
任务
9 m1 B; a# t7 n3 \命令
) W4 e4 b7 i8 ?, y8 L8 e+ I. d设置HDLC封装 . u7 l% C0 [9 p' M4 |& a; r/ C
encapsulation hdlc
& n' H5 X. W$ I1 r' ~5 U设置DCE端线路速度 ' Z% j& [. p- Q3 c1 S1 K
clockrate speed) `9 t3 r9 x/ F* ]. R5 B/ c
复位一个硬件接口
. c) d& X+ ^' l* i b: d8 ]" i! J/ zclear interface serial unit# c1 l9 q8 g x( f' d
显示接口状态
% K1 ]3 U. m" ~- {show interfaces serial [unit] 1
" k/ N! h9 o& r6 }' R 注:1.以下给出一个显示Cisco同步串口状态的例子. & X3 u0 M' d" R: U, T
+ V, a4 L; g& K; ?7 D5 d6 H3 `$ ~Router#show interface serial 0 . `& v, R! t' O4 Z9 S+ t" o
Serial 0 is up, line protocol is up
+ b7 i" u1 z# U6 J- q. s( E n! AHardware is MCI Serial
+ U* n2 c3 n/ V1 m9 y* F7 s2 AInternet address is 150.136.190.203, subnet mask is 255.255.255.0
5 ~) H1 g0 _' n) J% R8 J1 ?MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255 ( z, n2 v! y4 _( u, l8 K9 I' l y
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
- H" `! e! P: ^" I1 `+ gLast input 0:00:07, output 0:00:00, output hang never & g2 }8 M- F5 ~* r* T
Output queue 0/40, 0 drops; input queue 0/75, 0 drops 4 Q) n' I% c/ l- I2 u
Five minute input rate 0 bits/sec, 0 packets/sec
/ U5 b# U' A7 X$ F1 a" t; NFive minute output rate 0 bits/sec, 0 packets/sec
! ~* A$ o) p) U& y" f! E16263 packets input, 1347238 bytes, 0 no buffer # R- _. e; A% c" K( V- b
Received 13983 broadcasts, 0 runts, 0 giants 5 U6 ^) O9 Q; T; p! _' Y
2 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 2 abort
; D* i( x3 X" y, X& f' k, {+ \. H22146 packets output, 2383680 bytes, 0 underruns
$ {6 q+ U- Q+ }9 J: h# ]) z2 D& X0 output errors, 0 collisions, 2 interface resets, 0 restarts 8 s' V# C, L8 F) V2 b7 v: u+ r
1 carrier transitions |