路由技术 交换技术
   无线技术 综合技术 解决方案
   网络管理 网络协议 网络设备
   考试认证 juniper专题
3G纵览 数据通信
   光通信 智能网 WIMAX VOIP
   IPTV NGN
安全产品 病毒防治
    防火墙 安全方案 IDS/IPS    DOS/DDOS
存储技术 存储设备
   存储方案 服务器专区

Google
 
作者: 发布时间:2007-09-29 11:44:43 来源:ciscohuawei.com
 

环境:两台路由器,由 BRI 口相连。

要求:通过 ISDN 线路实现两个网段的互通,使用 PPP CHAP 验证,定义所有的 IP 流为感兴趣流。

f9eda7bac0c6c6997e443ff935656c8e.jpg

步骤 1 、初始化配置

r1 的配置:

r1(config)#no ip domain-lookup

r1(config)#line console 0

r1(config-line)#logging synchronous

r1(config-line)#exec-timeout 0 0

r1(config-line)#

r2 的配置:

r2(config)#no ip domain-lookup

r2(config)#line console 0

r2(config-line)#logging synchronous

r 2(config-line)#exec-timeout 0

r2(config-line)#

步骤二、 ISDN 的配置

r1 的配置 :

r1(config)#isdn switch-type basic-net3 à 交换机类型

r1(config)#username r2 password cisco à 验证用户名及密码

r1(config)# dialer-list 1 protocol ip permit à 定义兴趣流

r2 的配置 :

r2(config)#isdn switch-type basic-net3

r2(config)#username r1 password cisco

r2(config)# dialer-list 1 protocol ip permit

步骤三、配置验证

r1 的配置 :

r1(config)#interface loopback 0

r1(config-if)#ip address 10.1.1.1 255.255.255.0

r1(config-if)#interface bri0

r1(config-if)# encapsulation ppp à 封装 PPP

r1(config-if)# ppp authentication chap à 启用 CHAP 验证

r1(config-if)#ip address 30.1.1.1 255.255.255.0

r1(config-if)# dialer-group 1 à 加载感兴趣流

r1(config-if)# dialer map ip 30.1.1.2 name r2 1102 à 拨号映射

r1(config-if)# dialer idle-time 180 à 定义超时

r1(config-if)# no fair-queue à 关闭公平对列

r1(config-if)#no shutdown

r2 的配置 :

r2(config)#interface loopback 0

r2(config-if)#ip address 20.1.1.1 255.255.255.0

r2(config-if)#interface bri0

r2(config-if)# encapsulation ppp

r2(config-if)# ppp authentication chap

r2(config-if)#ip address 30.1.1.2 255.255.255.0

r2(config-if)# dialer-group 1

r2(config-if)# dialer map ip 30.1.1.1 name r1 1101

r2(config-if)# dialer idle-time 180

r2(config-if)# no fair-queue

r2(config-if)#no shutdown

步骤四、定义静态路由

r1(config)# ip route 20.1.1.0 255.255.255.0 30.1.1.2 à 指定静态路由

r2(config)# ip route 10.1.1.0 255.255.255.0 30.1.1.1

步骤五、测试

r1# ping à 触发感兴趣流

Protocol [ip]:

Target IP address : 20.1.1.1

Extended commands [n]: y

Source address or interface: 10.1.1.1

.!!!!

步骤六、查看相应状态

r1# show isdn status à 查看 ISDN 状态

Global ISDN Switchtype = basic-net3

ISDN BRI0 interface

dsl 0, interface ISDN Switchtype = basic-net3

Layer 1 Status:

ACTIVE

Layer 2 Status:

TEI = 71, Ces = 1, SAPI = 0, State = MULTIPLE_FRAME_ESTABLISHED

Layer 3 Status:

1 Active Layer 3 Call(s)

CCB:callid=8003, sapi=0, ces=1, B-chan=2, calltype=DATA

Active dsl 0 CCBs = 1

The Free Channel Mask: 0x80000001

Total Allocated ISDN CCBs = 1

Total Allocated ISDN CCBs = 1

r1# show isdn active à 此命令可以显示当前活跃的连接

--------------------------------------------------------------------------------

ISDN ACTIVE CALLS

--------------------------------------------------------------------------------

Call Calling Called Remote Seconds Seconds Seconds Charges

Type Number Number Name Used Left Idle Units/Currency

--------------------------------------------------------------------------------

Out ---N/A--- 1101 r1 11 170 9 0

--------------------------------------------------------------------------------

r1# show interface bri0:1 à 查看接口状态

BRI0:1 is down, line protocol is down

r1# show interface bri0:2 à 占用了一个 B 信道

BRI0:2 is up, line protocol is up

步骤七、显示当前配置

r1 的当前配置:

r1#show running-config

hostname r1

!

username r2 password 0 cisco

no ip domain-lookup

isdn switch-type basic-net3

!

interface Loopback0

ip address 10.1.1.1 255.255.255.0

!

interface BRI0

ip address 30.1.1.1 255.255.255.0

encapsulation ppp

dialer idle-timeout 180

dialer map ip 30.1.1.2 name r2 2202

dialer-group 1

isdn switch-type basic-net3

no fair-queue

ppp authentication chap

!

ip route 20.1.1.0 255.255.255.0 30.1.1.2

!

dialer-list 1 protocol ip permit

!

end

r2 的当前配置:

r2#show running-config

!

hostname r2

!

!

username r1 password 0 cisco

no ip domain-lookup

!

isdn switch-type basic-net3

!

interface Loopback0

ip address 20.1.1.1 255.255.255.0

!

interface BRI0

ip address 30.1.1.2 255.255.255.0

encapsulation ppp

dialer idle-timeout 180

dialer map ip 30.1.1.1 name r1 2201

dialer-group 1

isdn switch-type basic-net3

no fair-queue

ppp authentication chap

!

ip route 10.1.1.0 255.255.255.0 30.1.1.1

!

dialer-list 1 protocol ip permit

!

end

※ 相关信息
 ·ccna实验—背对背帧中继  (2007-09-29 11:41:38)
 ·ccna实验—帧中继链路上运行EIGRP  (2007-09-29 11:35:27)
 ·ccna实验—静态、动态NAT和PAT  (2007-09-29 11:23:30)
 ·ccna实验—访问列表与telnet访问控制  (2007-09-29 11:19:57)
 ·ccna实验—RIPv1与EIGRP在不连续网络下的比较  (2007-09-29 10:54:46)
 ·ccna实验—RIP路由协议  (2007-09-29 10:50:23)
 ·ccna实验—静态路由  (2007-09-29 10:47:55)
 ·ccna实验—配置STP与VTP  (2007-09-29 10:41:30)
 ·CCNA学习基础:Dynamic ACL的应用  (2007-09-29 10:03:53)
 ·CCNA考点精析---IP路由表分析  (2007-09-27 13:41:04)
 

  最新文章

·CCNA认证英文词汇中文解析
·CCNA640-802考试大纲
·CCNA管理手册:路由基础知
·CCNA——我的学习和考试感
·ccna实验—配置ISDN DDR
·ccna实验—背对背帧中继
·ccna实验—帧中继链路上运
·ccna实验—静态、动态NAT
·ccna实验—访问列表与tel
·ccna实验—RIPv1与EIGRP在
 

  热门文章

·CCNA最新考题 12.17
·Cisco常用单词(3)
·ccna实验—静态、动态NAT
·Cisco常用单词(2)
·ccna实验—配置STP与VTP
·CCNA学习:OSPF从入门到精
·CCNA常用学习书籍
·ccna实验—访问列表与tel
·ccna实验—帧中继链路上运
·ccna实验—RIP路由协议
 
 

 

Copyright ? 2006 All rights reserved