返回首页
当前位置: 主页 > 认证考试 > Cisco认证 >

CISCO路由器配置命令详解第二章广域网协议设置试题

时间:2014-10-20 23:34来源:电脑教程学习网 www.etwiki.cn 编辑:admin

设置如下:

  Router1:

  interface Serial0

  ip address 192.200.10.1 255.255.255.0

  clockrate 1000000

  Router2:

  interface Serial0

  ip address 192.200.10.2 255.255.255.0

  !

  3. 举例使用E1线路实现多个64K专线连接.

  相关命令:

  任务 命令

  进入controller配置模式 controller {t1 | e1} number

  选择帧类型 framing {crc4 | no-crc4}

  选择line-code类型 linecode {ami | b8zs | hdb3}

  建立逻辑通道组与时隙的映射 channel-group number timeslots range1

  显示controllers接口状态 show controllers e1 [slot/port]2

  注: 1. 当链路为T1时,channel-group编号为0-23, Timeslot范围1-24; 当链路为E1时, channel-group编号为0-30, Timeslot范围1-31.

  2.使用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专线, 帧类型为NO-CRC4,非平衡链路,路由器具体设置如下:

  shanxi#wri t

  Building configuration...

  Current configuration:

  !

  version 11.2

  no service udp-small-servers

  no service tcp-small-servers

  !

  hostname shanxi

  !

  enable secret 5 $1$XN08$Ttr8nfLoP9.2RgZhcBzkk/

  enable password shanxi

  !

  !

  ip subnet-zero

  !

  controller E1 0

  framing NO-CRC4

  channel-group 0 timeslots 1

  channel-group 1 timeslots 2

  channel-group 2 timeslots 3

  !

  interface Ethernet0

  ip address 133.118.40.1 255.255.0.0

  media-type 10BaseT

  !

  interface Ethernet1

  no ip address

  shutdown

  !

  interface Serial0:0

  ip address 202.119.96.1 255.255.255.252

  no ip mroute-cache

  !

  interface Serial0:1

  ip address 202.119.96.5 255.255.255.252

  no ip mroute-cache

  !

  interface Serial0:2

  ip address 202.119.96.9 255.255.255.252

  no ip mroute-cache

  !

  no ip classless

  ip route 133.210.40.0 255.255.255.0 Serial0:0

  ip route 133.210.41.0 255.255.255.0 Serial0:1

  ip route 133.210.42.0 255.255.255.0 Serial0:2

  !

  line con 0

  line aux 0

  line vty 0 4

  password shanxi

  login

  !

  end
 

路由器Router1和Router2的S0口均封装PPP协议,采用CHAP做认证,在Router1中应建立一个用户,以对端路由器主机名作为用户名,即用户名应为router2。同时在Router2中应建立一个用户,以对端路由器主机名作为用户名,即用户名应为router1。所建的这两用户的 password必须相同。

  设置如下:

  Router1:

  hostname router1

  username router2 password xxx

  interface Serial0

  ip address 192.200.10.1 255.255.255.0

  clockrate 1000000

  ppp authentication chap

  !

  Router2:

  hostname router2

  username router1 password xxx

  interface Serial0

  ip address 192.200.10.2 255.255.255.0

  ppp authentication chap

  !
 

在以下实例中每二个路由器间均通过svc实现连接。

  路由器设置如下:

  Router1:

  interface Serial0

  encapsulation x25

  ip address 192.200.10.1 255.255.255.0

  x25 address 110101

  x25 htc 16

  x25 nvc 2

  x25 map ip 192.200.10.2 110102 broadcast

  x25 map ip 192.200.10.3 110103 broadcast

  !

  Router2:

  interface Serial0

  encapsulation x25

  ip address 192.200.10.2 255.255.255.0

  x25 address 110102

  x25 htc 16

  x25 nvc 2

  x25 map ip 192.200.10.1 110101 broadcast

  x25 map ip 192.200.10.3 110103 broadcast

  !

  Router:

  interface Serial0

  encapsulation x25

  ip address 192.200.10.3 255.255.255.0

  x25 address 110103

  x25 htc 16

  x25 nvc 2

  x25 map ip 192.200.10.1 110101 broadcast

  x25 map ip 192.200.10.2 110102 broadcast

顶一下
(0)
0%
踩一下
(0)
0%
标签(Tag):cisco认证考试试题
------分隔线----------------------------
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
验证码:点击我更换图片