配置FramerelayWord格式.docx
《配置FramerelayWord格式.docx》由会员分享,可在线阅读,更多相关《配置FramerelayWord格式.docx(43页珍藏版)》请在冰豆网上搜索。
第一步:
基本配置
Red-Giant>
enable
Red-Giant(config)#hostnameFR
FR(config)#frame-relayswitching!
路由器模拟成帧中继交换机
FR(config)#interfaceserial0!
进入广域网接口serial0
FR(config-if)#encapsulationframe-relayietf!
封装帧中继并封装其格式为ietf
FR(config-if)#frame-relayintf-typedce!
封装帧中继接口类型为dce
FR(config-if)#frame-relaylmi-tyansi!
定义帧中继本地接口管理类型
FR(config-if)#cloclkrate64000!
定义时钟速率
FR(config-if)#framroute20interfaceserial121!
设定帧中继交换,指定两个同步口之间的dlci互换
FR(config-if)#framroute30interfaceserial331!
FR(config-if)#nosh!
启用该接口
FR(config-if)#end
FR(config)#intserial1
FR(config-if)#encapsulationframe-relayietf
FR(config-if)#frame-relayintf-typedce
FR(config-if)#frame-relaylmi-tyansi
FR(config-if)#clockrate64000
FR(config-if)#frame-relayroute21interfaceserial020
FR(config-if)#frame-relayroute23interfaceserial332
FR(config-if)#nosh
FR(config)#conft
FR(config)#intserial3
FR(config-if)#frame-relaylmi-typeansi
FR(config-if)#clockrate64000
FR(config-if)#frame-relayroute31interfaceserial030
FR(config-if)#frame-relayroute32interfaceserial123
验证测试:
FR#shframe-relayroute
InputIntfInputDlciOutputIntfOutputDlciStatus
Serial020Serial121inactive
Serial030Serial331inactive
Serial121Serial020inactive
Serial123Serial332inactive
Serial331Serial030inactive
Serial332Serial123inactive
第二步:
配置路由器并能通过帧中继交换机通信
R1#conft
R1(config)#ints0
R1(config-if)#ipadd192.168.123.1255.255.255.0
R1(config-if)#encapsulationframe-relayietf!
R1(config-if)#noframe-relayinverse-arp!
禁止帧中继特定的协议dlci使用反向ARP!
禁止动态学习地址和DLCI之间的映射
R1(config-if)#frame-relaylmi-typeansi!
定义帧中继本地接口管理类型,
R1(config-if)#frame-relaymapip192.168.123.220!
建立帧中继静态地址映射
R1(config-if)#frame-relaymapip192.168.123.330!
R1(config-if)#nosh
R1(config-if)#end
Red-Giant(config)#hostnameR2
R2(config)#ints0
R2(config-if)#ipadd192.168.123.2255.255.255.0
R2(config-if)#encapsulationframe-relayietf
R2(config-if)#noframe-relayinverse-arp!
R2(config-if)#frame-relaylmi-typeansi
R2(config-if)#frame-relaymapip192.168.123.121
R2(config-if)#frame-relaymapip192.168.123.323
R2(config-if)#nosh
R2(config-if)#end
Red-Giant(config)#hostnameR3
R3(config)#ints0
R3(config-if)#ipadd192.168.123.3255.255.255.0
R3(config-if)#encapsulationframe-relayietf
R3(config-if)#frame-relaylmi-tyansi
R3(config-if)#noframe-relayinverse-arp!
R3(config-if)#frammapip192.168.123.131
R3(config-if)#frammapip192.168.123.232
R3(config-if)#nosh
R3#showframe-relaymap
Serial1(up):
ip192.168.123.1dlci31(0x1F,0x4F0),static,
IETF,statusdefined,active
ip192.168.123.2dlci32(0x20,0x800),static,
IETF,statusdefined,active
R2#shframe-relaymap
Serial0(up):
ip192.168.123.1dlci21(0x15,0x450),static,
ip192.168.123.3dlci23(0x17,0x470),static,
R1#shframe-relaymap
ip192.168.123.2dlci20(0x14,0x440),static,
ip192.168.123.3dlci30(0x1E,0x4E0),static,
FR#shframe-relayroute
InputIntfInputDlciOutputIntfOutputDlciStatus
Serial020Serial121active
Serial030Serial331active
Serial121Serial020active
Serial123Serial332active
Serial331Serial030active
Serial332Serial123active
第三步:
测试各点之间的连通性
R1#ping192.168.123.2
Typeescapesequencetoabort.
Sending5,100-byteICMPEchoesto192.168.123.2,timeoutis2seconds:
!
Successrateis100percent(5/5),round-tripmin/avg/max=56/56/60ms
R1#ping192.168.123.3
Sending5,100-byteICMPEchoesto192.168.123.3,timeoutis2seconds:
【注意事项】
●注意各个接口之间与帧中继交换机的匹配,比如本地接口管理类型;
●帧中继交换机是DCE端;
●在各个接口配置远程IP地址与本地DLCI号的映射。
【参考配置】
FR#shrun
Currentconfiguration:
version6.14
(2)
hostname"
FR"
ipsubnet-zero
frame-relayswitching
interfaceFastEthernet0
ipaddress192.168.10.1255.255.255.0
interfaceFastEthernet1
noipaddress
shutdown
interfaceFastEthernet2
noipaddress
interfaceFastEthernet3
interfaceSerial0
encapsulationframe-relayIETF
clockrate64000
frame-relaylmi-typeansi
frame-relayinverse-arp
frame-relayintf-typedce
frame-relayroute20interfaceSerial121
frame-relayroute30interfaceSerial331
interfaceSerial1
frame-relayintf-typedce
frame-relayroute21interfaceSerial020
frame-relayroute23interfaceSerial332
interfaceSerial2
interfaceSerial3
frame-relayroute31interfaceSerial030
frame-relayroute32interfaceSerial123
ipclassless
linecon0
lineaux0
linevty04
nologin
end
Frame-relaymultipoint子接口
【实验名称】
掌握路由器封装帧中继multipoint子接口技术。
【背景描述】
你是公司的网管,公司网络实施改造,在Frame-Relay上需要实现Frame-Relay中一点对多点的通信,而不使用全互连的构建方式。
实现非全互联的点到多点的访问模式。
R2620或R2624路由器(4台)、m2602AS同异步接口模块一个、V35DCE(3根)、V35DTE(3根)
基本配置,配置帧中继交换机
帧中继点到多点配置
关闭动态学习IP和DLCI映射
R1(config-if)#frame-relaylmi-typeansi
R1(config-if)#nosh
R1(config)#interfaceSerial0.1multipoint
R1(config-if)#ipaddress192.168.12.1255.255.255.0
R1(config-if)#noframe-relayinverse-arp
R1(config-if)#frame-relaymapip192.168.12.220
R1(config-if)#frame-relaymapip192.168.12.330
R2(config-if)#ipadd192.168.12.2255.255.255.0
R2(config-if)#noframe-relayinverse-arp
R2(config-if)#frame-relaymapip192.168.12.121
R3(config)#ints1
R3(config-if)#ipadd192.168.12.3255.255.255.0
R3(config-if)#noframe-relayinverse-arp
R3(config-if)#frame-relaymapip192.168.12.131
R3#shframmap
ip192.168.12.1dlci31(0x1F,0x4F0),static,
R2#shframmap
ip192.168.12.1dlci21(0x15,0x450),static,
ip192.168.123.2dlci20(0x14,0x440),dynamic,
broadcast,
ip192.168.123.3dlci30(0x1E,0x4E0),dynamic,
broadcast,
IETF,statusdefined,activeFR#shframe-relayroute
R1#ping192.168.12.2
Sending5,100-byteICMPEchoesto192.168.12.2,timeoutis2seconds:
R1#ping192.168.12.3
Sending5,100-byteICMPEchoesto192.168.12.3,timeoutis2seconds:
子接口继承主接口的封装模式。
R1#shrun
Currentconfigurati