cisco产品配置手册1-路由器配置手册内容摘要:

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 ! 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 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 必须相同。 S0(DCE) (DTE)S0 Router1 Router2 设置如下: Router1: hostname router1 username router2 password xxx interface Serial0 ip address clockrate 1000000 ppp authentication chap ! 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 相关信息 show interfaces serial show x25 interface show x25 map show x25 vc 注: 虚电路号从 1到 4095, Cisco路由器默认为 1024,国内一般分配为 16。 虚电路计数从 1到 8,缺省为 1。 在改变了 ,应重新启动 x25( 使用 clear x25 {serial number | cmnsinterface macaddress} [vcnumber]或 clear x25vc命令 ),否则新设置的参数可能不能生效。 同时应对照服务提供商对于 ,若出现参数不匹配则可能 会导致连接失败或其它意外情况。 3. 实例: . 在以下实例中每二个路由器间均通过 svc实现连接。 路由器设置如下: Router1: interface Serial0 encapsulation x25 ip address x25 address 110101 x25 htc 16 x25 nvc 2 x25 map ip 110102 broadcast x25 map ip 110103 broadcast ! Router2: interface Serial0 encapsulation x25 ip address x25 address 110102 x25 htc 16 x25 nvc 2 x25 map ip 110101 broadcast x25 map ip 110103 broadcast ! Router: interface Serial0 encapsulation x25 ip address x25 address 110103 x25 htc 16 x25 nvc 2 x25 map ip 110101 broadcast x25 map ip 110102 broadcast ! 相关调试命令 : clear x25vc show interfaces serial show x25 map show x25 route show x25 vc . 在以下实例中路由器 router1 和 router2 均通过 svc 与 router 连接,但 router1和 router2 不通过 svc 直接连接,此三个路由器的串口运行 RIP 路由协议,使用了子接 口的概念。 由于使用子接口, router1 和 router2 均学习到了访问对方局域网的路径,若不使用子接口, router1 和 router2 将学不到到 对方局域网的路由。 子接口( Subinterface)是一个物理接口上的多个虚接口,可以用于在同一个物理接口上连接多个网。 我们知道为了避免路由循环,路由器支持 split horizon 法则,它只允许路由更新被分配到路由器的其它接口,而不会再分配路由更新回到此路由被接收的接口。 无论如何,在广域网环境使用基于连接的接口 (象 和 Frame Relay),同一接口通过虚电路 (vc)连接多台远端路由器时,从同一接口来的路由更新信息不可以再被发回到相同的接口,除非强制使用分开的物理接口连接不同的路由器。 Cisco 提供子接口( subinterface)作为分开的接口对待。 你可以将路由器逻辑地连接到相同物理接口的不同子接口 , 这样来自不同子接口的路由更新就可以被分配到其他子接口,同时又满足split horizon 法则。 Router1: interface Serial0 en。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。