资格考试]cisco路由器配置手册强烈推荐内容摘要:

:tag值(可选) permanent :指定此路由即使该端口关掉也不被移掉。 以下在 Router1 上设置了访问 ,即当有目的地址属于,应将其路由到地址为 的相邻路由器。 在 Router3 上设置了访问。 由 于在 Router1 上端口 Serial 0 地址为 , ,已经存在访问 ,所以不需要在 Router1 上添加静态路由。 Router1: ip route Router3: ip route ip route 同时由于路由器 Router3 除了与路由器 Router2 相连外,不再与其他路由器相连,所以也可以为它赋予一条 默认路由 以代替以上的二条静态路由, ip route 即只要没有在路由表里找到去特定目的地址的路径 ,则数据均被路由到地址为 器。 10 第二章 广域网协议设置 一、 HDLC HDLC 是 CISCO 路由器使用的缺省协议,一台新路由器在未指定封装协议时默认使用 HDLC 封装。 1. 有关命令 端口 设置 任务 命令 设置 HDLC封装 encapsulation hdlc 设置 DCE端线路速度 clockrate speed 复位一个硬件接口 clear interface serial unit 显示接口状态 show interfaces serial [unit] 1 注 : Cisco 同步串口状态的例子 . Routershow interface serial 0 Serial 0 is up, line protocol is up Hardware is MCI Serial Inter address is , sub mask is MTU 1500 bytes, BW 1544 Kbit, DLY 20200 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec) Last input 0:00:07, output 0:00:00, output hang never Output queue 0/40, 0 drops。 input queue 0/75, 0 drops Five minute input rate 0 bits/sec, 0 packets/sec Five minute output rate 0 bits/sec, 0 packets/sec 16263 packets input, 1347238 bytes, 0 no buffer Received 13983 broadcasts, 0 runts, 0 giants 2 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 2 abort 22146 packets output, 2383680 bytes, 0 underruns 0 output errors, 0 collisions, 2 interface resets, 0 restarts 1 carrier transitions 2. 举例 S0(DCE) (DTE)S0 Router1 Router2 11 设置如 下: Router1: interface Serial0 ip address clockrate 1000000 Router2: interface Serial0 ip address ! 3. 举例使用 E1 线路实现多个 64K 专线连接 . 相关命令 : 任务 命令 进入 controller 配置模式 controller {t1 | e1} number 选择帧类型 framing {crc4 | nocrc4} 选择 linecode类型 linecode {ami | b8zs | hdb3} 建立逻辑通道组与时隙的映射 channelgroup number timeslots range1 显示 controllers 接口状态 show controllers e1 [slot/port]2 注 : 1. 当链路为 T1 时 ,channelgroup 编号为 023, Timeslot 范围 124。 当链路为 E1 时 , channelgroup编号为 030, Timeslot范围 131. show controllers e1 观察 controller 状态 ,以下为帧类型为 crc4时 controllers 正常的状态 . Router show controllers e1 e1 0/0 is up. Applique type is Channelized E1 unbalanced Framing is CRC4, Line Code is HDB3 No alarms detected. Data in current interval (725 seconds elapsed): 0 Line Code Violations, 0 Path Code Violations 0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins 0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs Total Data (last 24 hours) 0 Line Code Violations, 0 Path Code Violations, 0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins, 0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs 以下例子为 E1 连接 3 条 64K 专线 , 帧类型为 NOCRC4,非平衡链路 ,路由器具体设置如下 : shanxiwri t Building configuration... Current configuration: ! version no service udpsmallservers no service tcpsmallservers 12 ! hostname shanxi ! enable secret 5 $1$XN08$enable password shanxi ! ip subzero ! controller E1 0 framing NOCRC4 channelgroup 0 timeslots 1 channelgroup 1 timeslots 2 channelgroup 2 timeslots 3 ! interface Ether0 ip address mediatype 10BaseT ! interface Ether1 no ip address shutdown ! interface Serial0:0 ip address no ip mroutecache ! interface Serial0:1 ip address no ip mroutecache ! interface Serial0:2 ip address no ip mroutecache ! no ip classless ip route Serial0:0 ip route Serial0:1 ip route Serial0:2 ! line con 0 line aux 0 line vty 0 4 password shanxi login ! end 13 二、 PPP PPP(PointtoPoint Protocol)是 SLIP(Serial Line IP protocol)的继承者,它提供了跨过同步和异步电路实现路由器到路由器 (routertorouter)和主机到网络 (hosttowork)的连接。 CHAP(Challenge Handshake Authentication Protocol)和 PAP(Password Authentication Protocol) (PAP)通常被用于在 PPP 封装的串行线路上提供安全性认证。 使用 CHAP 和 PAP 认 证 ,每个路由器通过名字来识别,可以防止未经授权的访问。 CHAP 和 PAP 在 RFC 1334 上有详细的说明。 1. 有关命令 端口设置 任务 命令 设置 PPP封装 encapsulation ppp1 设置认证方法 ppp authentication {chap | chap pap | pap chap | pap} [ifneeded] [listname | default] [callin] 指定口令 username name password secret 设置 DCE端线路速度 clockrate speed 注: 要使用 CHAP/PAP必须使用 PPP封装。 在与非 Cisco路由器连接时,一般采用 PPP封装,其它厂家路由器一般不支持 Cisco的 HDLC封装协议。 2. 举例 路由器 Router1 和 Router2 的 S0口均封装 PPP协议,采用 CHAP做认证,在 Router1 中应建立一个用户,以对端路由器主机名作为用户名,即用户名应为 router2。 同时在 Router2中应建立一个用户,以对端路由器主机名作为用户名,即用户名应为 router1。 所建的这两用户的 password必须相同。 设置如下: Router1: hostname router1 username router2 password xxx interface Serial0 ip address clockrate 1000000 ppp authentication chap ! S0(DCE) (DTE)S0 Router1 Router2 14 Router2: hostname router2 username router1 password xxx interface Serial0 ip address ppp authentication chap ! 三、 1. X25技术 OSI三层,。 LAPB( Link Access Procedure, Balanced)实现,它定义了用于 DTE/DCE连接的帧格式。 电气和物理端口特性。 ( DTE)、数据电路终端设备( DCE)及分组交换设备( PSE)。 DTE是 ,如终端、计算机或网络主机,一般位于用户端, Cisco路由器就是 DTE设备。 DCE设备是专用通信设备,如调制解调器和分组交换机。 PSE是公共网络的主干交换机。 ,每个分配给用户的 端口都具有一个 ,当用户申请到的是 SVC(交换虚电路)时, ,首先将呼叫对方 ,然后接收到呼叫的一端可以接受或拒绝,如果接受请求,于是连接建立实现数据传输,当没有数据传输时挂断连接,整个呼叫过程就类似我们拨打 普通电话一样,其不同的是。 其中 、 htc均必须与。 PVC(永久虚电路),没有呼叫的过程,类似 DDN专线。 2. 有关命令 : 任务 命令 设置 encapsulation x25 [dce] 设置 x25 address 设置远方站点的地址映射 x25 map protocol address [protocol2 address2[..[protocol9 address9]]] x121address [option] 设置最大的双向虚电路数 x25 htc citcuitnumber1 设置一次连接可同时建立的虚电路数 x25 nvc count2 设置 x25 在清除空闲虚电路前的等待周期 x25 idle minutes 重新启动 x25,或清一个 svc,启动一个 pvc相关参数 clear x25 {serial number | cmnsinterface macaddress} [vcnumber] 3 清 x25虚电路 clear x25vc 显示接口及 x25相关信息 s。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。