isdnpz.docx
- 文档编号:8877114
- 上传时间:2023-02-02
- 格式:DOCX
- 页数:30
- 大小:1,021.51KB
isdnpz.docx
《isdnpz.docx》由会员分享,可在线阅读,更多相关《isdnpz.docx(30页珍藏版)》请在冰豆网上搜索。
isdnpz
本实验提供了两台路由器通过ISDN线路进行连接时的最基本配置,从一个最简单的配置开始研究,有利于对技术的掌握。
1.实验目的
通过本实验,读者可以掌握以下技能
●配置ISDN交换机类型;
●配置PPP封装;
●配置dialerstring;
●配置dialer-group及dialer-list;
●查看有关信息。
2.设备需求
本实验需要以下设备:
●Cisco路由器2台,分别命名为R1和R2,要求每台路由器具有1个ISDNBRI接口。
●2条ISDN线路和相应的NT1及线缆;
●1台终端服务器,如Cisco2509路由器,及用于反向Telnet的相应电缆;
●1台带有超级终端程序的PC机,以及Console电缆及转接器。
3.拓扑结构及配置说明
本实验的拓扑结构如图7-1所示,R1和R2路由器各连接1条ISDNBRE线路。
图7-1中的"广域网云"代表运营商的ISDN网络,路由器的BRI接口通过NT1连接到ISDN线路上。
各路由器BRI接口的IP地址和所连接线路的ISDN号码见图7-1中的标注。
实验要求配置R1和R2,使得R1和R2可以互相ping通。
4.实验配置及监测结果
本实验虽说是最基本的ISDN实验,但它涉及到ISDN配置的关键技术,尤其是有效的监测和查看命令对调试非常重要。
设备和线缆连接好之后,打开所有设各的电源,开始进行实验。
配置清单7-1记录了本实验的操作过程。
配置清单7-1ISDN的基本配置
第1段:
配置ISDN类型并查看其状态
R1#conft
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
R1(config)#isdnswitch-type?
basic-1tr6 1TR6switchtypeforGermany
basic-5ess Lucent5ESSswitchtypefortheU.S.
basic-dms1OONorthernTelecomDMS-100switchtypefortheU.S.
basic-net3 NET3switchtypeforUK,Europe,AsiaandAustralia
basic-ni NationalISDNswitchtypefortheU.S.
basic-qsig QSIGswitchtype
basic-ts013 TS013switchtypeforAustralia(obsolete)
ntt NTTswitchtypeforJapan
vn3 VN3andVN4switchtypesforFrance
R1(config)#isdnswitch-typebasic-net3
R1(config)#intbri0
R1(config-if)@iioshut
R1(config-if)#^Z
R1#shisdnstatus
GlobalISDNSwitchtype=basic-net3
ISDNBRIOinterface
dsL0,interfaceISDNSwitchtype=basic-net3
Layer1Status:
ACTIVE
Layer3,Status:
TEI=70,Ces=1,SAPI=0,State=MULTIPLE_FRAME_ESTABLISHED
Layer3Status:
0ActiveLayer3Call(s)
Activedsl0CCBs=0
TheFreeChannelMask:
0x80000003
NumberofL2Discards=0,L2SessionID=5
TotalAllocatedISDNCCBs=0
R1#
[Resumingconnection1R2]
R2#conft
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
R2(config)#isdnswitch-typebasic-net3
R2(config)#intbri0
R2(config-if)#nosh
R2(config-if)#^Z
R2#
R2#shisdnstatus
GlobalISDNSwitchtype=basic-net3
ISDNBRIOinterface
dsl0,interfaceISDNSwitchtype=basic-net3
Layer1Status:
ACTIVE
Layer2Status:
TEI=66,Ces=1,SAPI=0,State=MULTIPLE_FRAME_ESTABLISHED
Layer3Status:
0ActiveLayer3Call(s)
Activedsl0CCBs=0
TheFreeChannelMask:
0x80000003
TotalAllocatedISDNCCBs=0
R2#conft
第2段:
配置R1路由器
R1#conft
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
R1(config)#intbri0
R1(config-if)#ipaddr192.168.1.1255.255.255.0
R1(config~if)#encapsulationppp
R1(config-if)#dialerstring80000002
R1(config-if)#dialer-group1
R1(config-if)#exit
R1(config)#diaaer-list1protocolippermit
R1(config)#^Z
R1#
第3段:
配置R2路由器
R2#conft
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
R1(config)#intbri0
R2(config-if)#ipaddr192.168.1.2255.255.255.0
R2(config-if)#encapppp
R2(config-if)#dialerstring80000001
R2(config-if)#dialer-group1
R2(config-if)#exit
R2(config)#dialer-list1protippermit
R2(config)#^Z
R2#
第4段:
测试配置结果
R1#shintbri0
BRIOisup,lineprotocolisup(spoofing)
HardwareisBRI
Internetaddressis192.168.1.1/24
MTU1500bytes,BW64Kbit,DLY20000usec,
reliability255/255,txioad1/255,rxioad1/255
EncapsulationPPP,loopbacknotset
Lastinput00:
00:
05,output00:
00:
05,outputhangnever
Lastclearingof"showinterface"counters02:
25:
35
Inputqueue:
0/75/0/0(size/max/drops/flushes);Totaloutputdrops:
0
Queueisigstrategy:
weightedfair
Outputqueue:
0/1000/64/0(size/maxtotal/threshold/drops)
Conversations0/1/16(active/maxactive/maxtotal)
ReservedConversations0/0(allocated/maxallocated)
5minuteinputrate0bits/sec,0packets/sec
5minuteoutputrate0bits/sec,0packets/sec
0packetsinput,0bytes,0nobuffer
Received0broadcasts,0runts,0giants,0throttles
0inputerrors,0CRC,0frame,0overrun,0ignored,0abort
0packetsoutput,0bytes,0underruns
0outputerrors,0collisions,0interfaceresets
0outputbufferfailures,0outputbuffersswappedout
0carriertransitions
R1#shintbri0:
1
BRIO:
1isdown,StiseprotocolisdowN
HardwareisBRI
MTU1500bytes,BW64Kbit,DLY20000usec,
reliability255/255,txioad1/255,rxioad1/255
EncapsulationPPP,loopbacfenotset
Keepaliveset(10see)
LCPClosed
Closed:
IPCP
Lastinputnever,outputnever,outputhangnever
Lastclearingof"showinterface"countersnever
Inputqueue:
0/75/0/0(size/max/drops/flushes);Totaloutputdrops:
0
Queueingstrategy:
fifo
Outputqueue:
0/40(size/max)
5minuteinputrate0bits/sec,0packets/sec
5minuteoutputrate0bits/sec,0packets/sec
0packetsinput,0bytes,0nobuffer
Received0broadcasts,0runts,0giants,0throttles
0inputerrors,0CRC,0frame,0overrun,0ignored,0abort
0packetsoutput,0bytes,0underruns
0outputerrors,0collisions,3interfaceresets
0outputbufferfailures,0outputbuffersswappedout
0carriertransitions
R1#conft
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
R1(config)#loggcon
R1(config)#^Z
R1#
R1#debugdialer
Dialondemandeventsdebuggingison
R1#ping192.168.1.2
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto192.168.1.2,timeoutis2seconds:
02:
27:
36:
BRODDR:
Dialingcauseip(s=192.168.1..1,d=192.168.1.2)
02:
27:
36:
BRODDR:
Attemptiongtodial80000002.
02:
27:
38:
%LINK-3-UPDOWN:
InterfaceBRIO:
1,changedstatetoup
02:
27:
38:
%ISDN-6CONNECT:
InterfaceBRIO:
1isnowconnectedto80000002
!
!
!
Successrateis60percent(3/5),round-tripmin/avg/max=36/37/40ms
02:
27:
40:
BRO:
1DDR:
dialerprotocolup
02:
27:
41:
ISDN的基本配置
1、ISDNBRI的基本配置
假设两端的电话号码分别是R2-1002,R3-1003
R2:
usernameR3passwordcisco//定义对端用于拨号的用户名和密码,密码两边要一至。
dialer-list1protocolippermit//定义能触发ISDN拨号的感兴趣数据包。
intbri0
encapppp//定义PPP封装
pppauthenticationchap//启用CHAP认证
nocdpenable//关闭CDP,否则会触发拨号,引起不必要的ISDN使用费。
isdnswitch-typebasic-net3|basic-ni
//定义ISDN交换类型,这是常用的两种类型,也可在全局模式下配。
isdnspid1spid-numberldn
isdnspid2spid-numberldn
//定义ISDN的SPID号,有时可不做,这要根据实际的交换类型来定,公司的机架上需要配。
dialermapip1.1.32.3nameR3broadcast1003//定义ISDN的拨号映射。
dialeridle-timeout60//缺省是120秒,可不配,0表示永不超时。
dialer-group1//在接口上调用dialer-list
noshut
R3:
usernameR2passwordcisco
dialer-list1protocolippermit
intbri0
encapppp
pppauthenticationchap
nocdpenable
isdnswitch-typebasic-net3|basic-ni
isdnspid1spid-numberldn
isdnspid2spid-numberldn
dialermapip1.1.32.2nameR2broadcast1002
dialeridle-timeout60
dialer-group1
noshut
关于如何定义触发拨号的数据流,可以在dialer-list调用访问控制列表ACL来做更具体的
定义。
比如在R2上只允许R1的Lo0到R4的Lo0的ping才能触发ISDN拨号,则可以做以下配置.
R2:
access-list100permiticmphost1.1.1.1host1.1.4.4eqecho
access-list100permiticmphost1.1.1.1host1.1.4.4eqecho-reply
dialer-list1protocoliplist100
intbri0
dialer-group1
当主线路DOWN时,在R1上用扩展的PING命令测试,R2上会看到ISDN的拨号,并且超时后
ISDN会自动断掉。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2、PPP的认证配置
1)首先要定义认证的用户名密码
R2:
usernameR3passwordcisco
R3:
usernameR2passwordcisco
用户名为对端路由器的名子,密码两边要一至。
2)之后定义PPP认证的方法,常用的有两种:
chap和pap,ms-chap很少用。
用chap认证时只要在两边配上ppp封装和启用chap认证.
R2,R3:
intbri0
encapppp
pppauthenticationchap
用pap认证时除了在两边配上ppp封装和启用pap认证外,还要加一条命令.
R2:
intbri0
encapppp
pppauthenticationpap
ppppapsent-usernameR2passwordcisco
R3:
intbri0
encapppp
pppauthenticationpap
ppppapsent-usernameR3passwordcisco
3)关于用户名和密码,两边也可以不同,但只有CHAP支持两边使用不同的用户名和密码,
具体方法如下.
R2:
usernameXpasswordY
intbri0
pppchaphostnameA
pppchappasswordB
R3:
usernameApasswordB
intbri0
pppchaphostnameX
pppchappasswordY
4)关于认证的方向问题
PPP认证分进来和出去两个方向上的认证,缺省是两个方向都认证,也可以手工设置为只对
某一个方向进行认证,但此时要注意两台路由器的认证设置在数据流量的方向上要一至。
比如:
R2对out方向认证,则R3就应对in方向认证,此时R2拨号呼叫R3就会有认证,但R3拨
号呼叫R2不会有认证;如果两台路由器都设为相同的in或out时,认证就会失败。
命令如下:
intbri0
pppauthenticationchap[callin|callout]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3、Multilink多链路的配置
ISDN传输数据有两个信道,所以会有多链路的配置问题,如不配则缺省只用一条信道。
R2,R3:
intbri0
pppmultilink//启用多链路捆绑功能
dialerload-threshold127[outbound|inbound|either]
//当负载超过接口带宽的50%时起用第二条信道
命令解释:
dialerload-thresholdload[outbound|inbound|either]
load
Interfaceloadusedtodeterminewhethertoinitiateanothercallortodropa
linktothedestination.Thisargumentrepresentsautilizationpercentage;
itisanumberbetween1and255,where255is100percent.
Theloadargumentisthecalculatedweightedaverageloadvaluefortheinterface;
1isunloadedand255isfullyloaded.Theloadiscalculatedbythesystemdynamically,
basedonbandwidth.Youmustsetthebandwidthforaninterfaceinkilobitspersecond,
usingthebandwidthcommand.
outbound
(Optional)Calculatestheactualloadusingoutbounddataonly.
inbound
(Optional)Calculatestheactualloadusinginbounddataonly.
either
(Optional)Setsthemaximumcalculatedloadasthelargeroftheoutboundandinboundloads.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4、ISDNCallback的回拨配置
ISDN的回拨设置中分为回拨客户端和回拨服务器端,假设R2为客户端,R3为服务器端。
R2:
intbri0
pppcallbackrequest//R3请求回拨
dialerwait-for-carrier-time10//CISCO建议设为允许再次拨号的时间间隔的两倍
R3:
map-classdialercallback//定义回拨映射类
dialercallback-serverusername
intbri0
dialermapip1.1.32.2nameR2classcallbackbroadcast1002
//在拨号映射中调用回拨映射类
pppcallbackaccept//R5接受回拨
dialercallback-secure//启用安全回拨功能
dialerenable-timeout5//允许再次拨号的时间间隔为5秒
dialercaller1002
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- isdnpz
![提示](https://static.bdocx.com/images/bang_tan.gif)