a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 114|回复: 0

[综合] CISCO路由器配置命令详解及实例6

[复制链接]
发表于 2012-8-3 20:03:30 | 显示全部楼层 |阅读模式
第二章:广域网协议设置 , v* n1 i& l' W9 a  z! C
一、HDLC 2 E8 f* w6 o$ j7 F; ?1 Y$ o4 {8 N
 HDLC是CISCO路由器使用的缺省协议,一台新路由器在未指定封装协议时默认使用HDLC封装。 0 ]+ x. Y7 ^6 U) M: D% L& `
1. 有关命令 2 m. P& R& ^4 c, Y
端口设置
% F! n' |2 h7 R7 a1 x) j6 q! N任务  命令
; `+ J5 \' C5 d! {" `: w5 {2 ]设置HDLC封装  encapsulation hdlc 8 C6 T/ |. r# d+ h
设置DCE端线路速度  clockrate speed % y" D! d+ L  ^) P
复位一个硬件接口  clear interface serial unit
9 t( t: m7 Q; c0 B+ s& o* h显示接口状态  show interfaces serial [unit] 1
0 x0 r) p/ [7 A# V1 d; e) _5 b注:1.以下给出一个显示Cisco同步串口状态的例子.
5 A- o7 b  s; f; d! DRouter#show interface serial 0
$ B  d. d" `" N# d* R& u/ {Serial 0 is up, line protocol is up / |: Z  Z% b% [+ r; ^3 j- l& t
Hardware is MCI Serial
5 N: }: p2 V- b+ x% J+ q. dInternet address is 150.136.190.203, subnet mask is 255.255.255.0 5 L  w  e0 b% y8 N9 Q, |9 t4 s& w
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255   F0 a# B% A  D+ @7 ]3 o6 ]
Encapsulation HDLC, loopback not set, keepalive set (10 sec) 9 z% ~# z# _, Q: q0 G# T
Last input 0:00:07, output 0:00:00, output hang never
' o6 ]+ E6 q% ?Output queue 0/40, 0 drops; input queue 0/75, 0 drops
, h7 _. z7 i% tFive minute input rate 0 bits/sec, 0 packets/sec 6 q8 p9 i  p) X0 ]
Five minute output rate 0 bits/sec, 0 packets/sec 9 D- ?( O5 M6 t
16263 packets input, 1347238 bytes, 0 no buffer
+ Y4 h3 t0 R! H" s7 W  K% YReceived 13983 broadcasts, 0 runts, 0 giants
& \$ }4 Z2 h( u+ C# b2 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 2 abort
7 F0 L% t1 N3 m8 W22146 packets output, 2383680 bytes, 0 underruns 5 @2 C, z% O2 q7 r
0 output errors, 0 collisions, 2 interface resets, 0 restarts & Y; x+ }' e% K% h1 I  T  h8 b
1 carrier transitions 7 z7 f' ]+ y) w- Q# t
2. 举例
$ X0 L8 F) L% Z 
. N4 h. h' w/ u, a- X' ? 
3 C) f- C* _& M8 A, z设置如下:
  W! E0 E7 {" F  \) T$ M4 r" DRouter1:
+ s9 l% e- |, D& Sinterface Serial0 ! N- v2 m0 p3 u, ^, ^
ip address 192.200.10.1 255.255.255.0
. d, b% L' j$ X: Wclockrate 1000000 * f  p" P, A- {- ?3 f7 _7 O
Router2:
( X& [) m' `) L( `. Y5 r' _interface Serial0 ) l% t# k( b3 K1 D
ip address 192.200.10.2 255.255.255.0
; W. }1 E. {' M* |) _1 u# |2 U, U9 D!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-4-29 09:03 , Processed in 0.959469 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表