实验拓朴:
实验目的:
1. 按照实验要求连接拓扑
2. 配置ROUTER2为帧中继交换机、并配置帧中继路由
3. 配置ROUTER1、ROUTER3帧中继映射
4. 测试联通性
实验环境描述:
通过对R2进行中继配置,使R1和R3之间能够互通.
实验步骤:
目的1:搭建实验环境.
Router1 S0/0 <----> Router2 S0/0
Router2 S0/1 <----> Router3 S0/0
目的2:配置ROUTER2为帧中继交换机、并配置帧中继路由.
1.r2(config)#no ip routing (关闭路由)
r2(config)#frame-relay switching (启用帧中继交换)
r2(config)#in s0/0
r2(config-if)#encapsulation frame-relay (接口封装为帧中继)
r2(config-if)#frame-relay intf-type dce (接口配置成DCE终端)
r2(config-if)#clock rate 64000 (DCE同步时钟)
r2(config-if)#no sh
r2(config-if)#exit
r2(config)#in s0/1
r2(config-if)#encapsulation frame-relay
r2(config-if)#frame-relay intf-type dce
r2(config-if)#clock rate 64000
r2(config-if)#no sh
r2(config-if)#exit
r2(config)#in s0/0
r2(config-if)#frame-relay route 102 interface s0/1 201 (配置帧中继路由)
r2(config-if)#no sh
r2(config-if)#exit
r2(config)#in s0/1
r2(config-if)#frame-relay route 201 interface s0/0 102 (配置帧中继路由)
r2(config-if)#no sh
r2(config-if)#exit
r2#show frame-relay route (测试)
Input Intf Input Dlci Output Intf Output Dlci Status
Serial0/0 102 Serial0/1 201 inactive
Serial0/1 201 Serial0/0 102 inactive
r2#show ip in br (测试)
Interface IP-Address OK? Method Status Protocol
Serial0/0 unassigned YES unset up down
Serial0/1 unassigned YES unset up down
Serial0/2 unassigned YES unset administratively down down
Serial0/3 unassigned YES unset administratively down down
目的3:配置ROUTER1.ROUTER2的帧中继映射.
1.r1(config)#in s0/0
r1(config-if)#encapsulation frame-relay
r1(config-if)#no frame-relay inverse-arp (关掉反向ARP)
r1(config-if)#ip add 192.168.1.1 255.255.255.0
r1(config-if)#frame-relay map ip 192.168.1.2 102 broadcast (帧中继映射)
r1(config-if)#no sh
r1(config-if)#exit
r1#show ip in br
Interface IP-Address OK? Method Status Protocol
Serial0/0 192.168.1.1 YES manual up up
Serial0/1 unassigned YES unset administratively down down
Serial0/2 unassigned YES unset administratively down down
Serial0/3 unassigned YES unset administratively down down
r1#
*Mar 1 00:22:47.223: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
r1#show frame-relay map
Serial0/0 (up): ip 192.168.1.2 dlci 102(0x66,0x1860), static,
broadcast,
CISCO, status defined, inactive
3.r3(config)#in s0/0
r3(config-if)#encapsulation frame-relay
r3(config-if)#no frame-relay inverse-arp
r3(config-if)#ip add 192.168.1.2 255.255.255.0
r3(config-if)#frame-relay map ip 192.168.1.1 201 broadcast
r3(config-if)#no sh
r3(config-if)#exit
r3(config)#exit
r3#show ip in br
Interface IP-Address OK? Method Status Protocol
Serial0/0 192.168.1.2 YES manual up up
Serial0/1 unassigned YES unset administratively down down
Serial0/2 unassigned YES unset administratively down down
Serial0/3 unassigned YES unset administratively down down
r3#show frame-relay map
Serial0/0 (up): ip 192.168.1.1 dlci 201(0xC9,0x3090), static,
broadcast,
CISCO, status defined, active
r1#show frame-relay map
Serial0/0 (up): ip 192.168.1.2 dlci 102(0x66,0x1860), static,
broadcast,
CISCO, status defined, active
目的4:测试ROUTER1. ROUTER2之间的互通性.
r1#ping 192.168.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/96/184 ms
r1#ping 192.168.1.1 (本身不通)
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
r3#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/104/172 ms
r3#ping 192.168.1.2 (本身不通)
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
注意:本身不通是因为没有做通向本身的帧中继映射。
目标5:解决上面不通的问题.
1.r1(config)#in s0/0
r1(config-if)#frame-relay map ip 192.168.1.1 102 broadcast (通向本身的帧中继映射)
r1(config-if)#no sh
r1(config-if)#exit
r1#ping 192.168.1.1 ( 通了)
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 128/202/264 ms
r1#
r3(config)#in s0/0
r3(config-if)#frame-relay map ip 192.168.1.2 201 broadcast (通向本身的帧中继映射)
r3(config-if)#no sh
r3(config-if)#exit
r3(config)#exit
r3#ping 192.168.1.2 ( 通了)
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 108/146/264 ms
测试OK!
本文出自 “michaelfung_专栏” 博客,转载请与作者联系!