实验十广域网协议配置.docx
- 文档编号:4403516
- 上传时间:2023-05-07
- 格式:DOCX
- 页数:14
- 大小:51.36KB
实验十广域网协议配置.docx
《实验十广域网协议配置.docx》由会员分享,可在线阅读,更多相关《实验十广域网协议配置.docx(14页珍藏版)》请在冰点文库上搜索。
实验十广域网协议配置
实验十、广域网协议配置
实验10.1PPP的配置
【实验目的】
了解点对点的广域网连接
掌握PPP的配置
【实验条件】
2台PC、2台路由器
【实验拓扑图】
图11-1
【实验步骤】
1、按照拓扑图将设备连接正确,并为设备配置IP地址,在DCE向DTE配置时钟频率。
2、具体配置
Router1:
hostnamerouter1
usernamerouter2passwordxxx
interfaceSerial0
encapsulationppp
ipaddress192.200.10.1255.255.255.0
clockrate1000000
pppauthenticationchap
!
Router2:
hostnamerouter2
usernamerouter1passwordxxx
interfaceSerial0
encapsulationppp
ipaddress192.200.10.2255.255.255.0
pppauthenticationchap
/*注:
两个路由认证协议必须相同*/
3、ppp命令汇总
Router(config)#configterminal
Router(config)#Interfaceserial0
Router(config-if)#encapsulationppp
Router(config-if)#compress[predictor|stacker]
Router(config-if)#pppqualitynumber_1-100
Router(config-if)#pppmultilink
Router(config)#hostnamename
Router(config)#usernamenamepasswordpassword
Router(config-if)#encapsulationppp
Router(config-if)#pppauthentication{chap|chappap|papchap|pap}
实验10.2ISDN的配置
【实验目的】
配置ISDN交换机类型
配置dialer-group及dialer-list
【实验条件】
路由器2台,分别命名为R1和R2,要求每台路由器具有1个ISDNBRI接口。
2条ISDN线路和相应的NT1及线缆;
1台终端服务器,如Cisco2509路由器,及用于反向Telnet的相应电缆;
1台带有超级终端程序的PC机,以及Console电缆及转接器。
【实验拓扑图】
图11-2
【实验步骤】
1、本实验虽说是最基本的ISDN实验,但它涉及到ISDN配置的关键技术,尤其是有效的监测和查看命令对调试非常重要。
2、设备和线缆连接好之后,打开所有设各的电源,开始进行实验。
配置清单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:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceBRIO:
1,changedstatetoup
R1#ping192.168.1.2
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto192.168.1.2,timeoutis2seconds:
!
!
!
!
!
Successrateis100percent(5/5),round-tripmin/avg/max=36/38/40ms
R1#undebugall
Allpossibledebugginghasbeenturnedoff第5段:
查看有关信息
R1#shdialer
BRIO-dialertype=ISDN
DialStringSuccessesFailuresLastDNISLaststatus
800000021000:
00:
18successfulDefault
0incomingcall(s)havebeenscreened.
0incomingcall(s)rejectedforcallback.
BRIO:
1-dialertype=ISDN
Idletimer(120secs),Fastidletimer(20secs)
Waitforcarrier(30sees).Re-enable(15secs)
Dialerstateisdatalinklayerup
Dialreason:
ip(s=192.168.1.1,d=192.168.1.2)
Timeuntildisconnect111secs
Currentcallconnected00:
00:
18
Connectedto80000002
BRIO:
2-dialertype=ISDN
Idletimer(120secs).Fastidletimer(20secs)
Waitforcarrier(30secs).Re-enable(15secs)
R1#shisdnstatus
GlobalISDNSwitchtype=basic-net3
ISDNBRIOinterface
dsl0,interfaceISDNSwitchtype=basic-net3
Layer1Status:
ACTIVE
Layer2Status:
TEI=71,Ces=I,SAPI=0,State=MULTIPLE_FRAME_ESTABLISHED
Layer3Status:
1ActiveLayer3Call(s)
CCB:
callid=800B,sapi=O,ces=1,B-chan=1,calltype=DATA
Activedsl0CCBs=1
TheFreeChannelMask:
0x80000002
NumberofL2Discards=0,L2SessionID=20
TotalAllocatedISDNCCBs=1
R1#
R2#ping192.168.1.1
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto192.168.1.1,timeoutis2seconds:
!
!
!
!
!
Successrateis100percent(5/5),round-tripmin/avg/max=36/41/48ms
(1)在第1段中,首先配置ISDN交换机的类型。
有许多可以设置的ISDN交换机类型,如命令所列出的各项。
在中国使用basic-net3类型的最多。
应根据所租用的ISDN线路情况配置相应的ISDN交换机类型,本例中配置的类型为basic-net3。
(2)进入BRIO接口配置模式,激活该接口。
(3)使用showisdnstatus命令查看ISDN状态,所列出的信息如下:
ISDN的第1层(Layer1)是激活状态;
ISDN第2层(Layer2)显示"TEI=70,Ces=1,SAPI=0,State=MULTIPLE_FRAME_ESTABLISHED"说明路由器B信道已经获得了1个TEI(TerminalEndpointIdentifier,终端节点标识,此处为70),处于可用状态;
第3层状态为"没有活动的呼叫"。
以上状态表明路由器与ISDN线路的连接完全正常,可以进行后续的实验。
(4)对R2路由器进行相同配置,并且查看ISDN状态。
(5)第2段对R1路由器进行了配置,对BRIO接口的配置为:
配置IP地址;
配置封装类型为PPP;
配置拨号串为80000001,为R2的1SDN号码;
配置拨号组号为1,把BRIO接口与拨号列表1相关联。
另外。
定义了拨号列表(dialer-list)1,允许IP协议包成为引起拨号的"感兴趣包",即当有IP包需要在拨号线路上传送时可以引起拨号。
(6)第3段对R2路由器进行了与R1相似的配置,需要注意的是IP地址和ISDN号码两项。
IP地址必须和R1的BRIO接口IP地址处于同一个网段;ISDN号码是与R1相连的ISDN线路的号码。
(7)配置好R1和R2之后,第3段提供了相应的测试。
首先执行的命令是showintbri0,BRIO接口处于up状态,说明BRI线路上的D信道处于激活状态,D信道协议处于up(spoofing),即欺骗的激活状态。
各项目的5min统计均为0,表明目前B信道没有工作。
(8)showintbri0:
1命令显示了第1个B信道的工作状态,列出的接口状态是Down,线路协议也是Down,并且与PPP相关的LCP和IPCP协议也处于关闭状态。
(9)使用debugdialer命令可以监测拨号行为。
(10)从R1上,发出ping192.168.1.2(R2)的指令,引发一次拨号行为。
监测结果说明了发起拨号的源IP地址、目的IP地址、所拨的ISDN号码、所用的信道等信息。
随后有3个代表ping测试成功的"!
"号出现,最后报吉了"LineprotocolonInterfaceBRIO:
1,changedstatetoup",BRIO:
1接口的线路协议己经激活。
用showintbriO:
1命令也可以看到"up/up"的状态显示。
(11)记住关闭所有的Debug操作。
(12)showdialer命令显示了当前的拨号及其配置,列出的项目主要有:
当前拨号串:
80000002;
拨号接口:
BRIO:
1
空闲时间:
1205;
源和目的IP地址:
192.168.1.1和192.168.1.2;
空闲多长时间后自动挂断:
111s;
当前呼叫己连接的时间:
18s;
当前连接的目标号码:
80000002。
对于BRIO:
2接口,当前状态为空闲。
(13)showisdnstatus命令显示了与拨号之前不同的项是第3层的状态,现在此处显示有1个活动呼叫(1ActiveLayer3Call(s))。
(14)在R2路由器上用ping指令测试到R1的连通性,结果是成功的,说明己经实现了双向的连通。
实验10.3帧中继的配置
【实验目的】
了解并掌握帧中继(Frame-relay)的配置
【实验条件】
Cisco2611三台,其中一台配置为Frame-relaySwitch。
装有终端模拟程序PC1台。
RADASM-31数字modem1台。
【实验拓扑图】
图11-3
【实验步
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 实验 广域网 协议 配置