实验拓朴:
 
 
 
 
 
 
 
 
 
广域网技术2<帧中继复配>_第1张图片
实验目的:
 
1.按照实验要求连接拓扑
2.规划IP、DLCI
3.配置ISP方的帧中继交换网络:DLCI映射、ISP FR交换机为DCE、FR路由
4.配置四个帧中继DTE
5.测试联通性
 
 
实验环境描述:
 
 
通过租用ISP(R5)的帧中继交换网络,连接四个网络
 
 
实验拓朴说明:
 
 
1.
    Router1 S0/0 <----> Router5 S0/0
    Router2 S0/0 <----> Router5 S0/1
    Router3 S0/0 <----> Router5 S0/2
    Router4 S0/0 <----> Router5 S0/3
 
2.multipoint
   R1 s0.1 to R5 s0/0 dlci 101,
   R5 s0/1 to R2 s0/0 dlci 101.
   R1 s0.1 to R5 s0/0 dlci 102
   R5 s0/2 to R3 s0/0 dlci 102
 
3.point
   R1 S0.2 to R5 s0/0 dlci 201
   R5 s0/3 to R4 s0/0 dlci 201
4. IP划分
   R1 S0.1 192.168.1.1/24
   R1 S0.2 192.168.2.1/24
   R2 192.168.1.2/24
   R3 192.168.1.3/24
   R4 192.168.2.2/24
 
实验步骤:
 
1.R5(ISP)相关配置:
 
r5(config)#frame-relay switching                       <启用帖中继>    
r5(config)#no ip routing                                        <关闭路由功能.>
 
r5(config)#in s0/0
r5(config-if)#encapsulation frame-relay
r5(config-if)#frame-relay intf-type dce
r5(config-if)#clock rate 64000
r5(config-if)#no sh
r5(config-if)#exit

 
r5(config)#interface s0/1
r5(config-if)#encapsulation frame-relay
r5(config-if)#frame-relay intf-type dce
r5(config-if)#clock rate 64000
r5(config-if)#no sh
r5(config-if)#exit

 
r5(config)#in s0/2
r5(config-if)#encapsulation frame-relay
r5(config-if)#frame-relay intf-type dce
r5(config-if)#clock rate 64000
r5(config-if)#no sh
r5(config-if)#exit
r5(config)#
 
r5(config)#in s0/3
r5(config-if)#encapsulation frame-relay
r5(config-if)#frame-relay intf-type dce
r5(config-if)#clock rate 64000
r5(config-if)#no sh
r5(config-if)#exit
 
r5#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  up                    down   
Serial0/3                  unassigned      YES unset  up                    down   

r5(config)#in s0/0
r5(config-if)#frame-relay route 101 interface s0/1 101       配置映射.
r5(config-if)#no sh
r5(config-if)#exit
 
r5(config)#in s0/1
r5(config-if)#frame-relay route 101 interface s0/0 101
r5(config-if)#no sh
r5(config-if)#exit
 
r5(config)#in s0/0              
r5(config-if)#frame-relay route 102 interface s0/2 102
r5(config-if)#no sh
r5(config-if)#exit
 
r5(config)#in s0/2
r5(config-if)#frame-relay route 102 interface s0/0 102
r5(config-if)#no sh
r5(config-if)#exit
r5(config)#
 
r5(config)#in s0/0
r5(config-if)#frame-relay route 201 interface s0/3 201
r5(config-if)#no sh
r5(config-if)#exit
 
r5(config)#in s0/3
r5(config-if)#frame-relay route 201 interface s0/0 201
r5(config-if)#no sh
r5(config-if)#exit
 
2.R1相关配置:
 
 r1(config)#in s0/0
r1(config-if)#encapsulation frame-relay
r1(config-if)#no frame-relay inverse-arp
r1(config-if)#no sh
r1(config-if)#exit
 
r1#show ip in br
Interface                  IP-Address      OK? Method Status                Protocol
Serial0/0                  unassigned      YES unset  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   
 
r5#show ip in br
Interface                  IP-Address      OK? Method Status                Protocol
Serial0/0                  unassigned      YES unset  up                    up     
Serial0/1                  unassigned      YES unset  up                    down   
Serial0/2                  unassigned      YES unset  up                    down   
Serial0/3                  unassigned      YES unset  up                    down   
 
r1(config)#in s0/0.1 multipoint                          (多子接口)
r1(config-subif)#ip add 192.168.1.1 255.255.255.0
r1(config-subif)#frame-relay interface-dlci 101
r1(config-fr-dlci)#frame-relay interface-dlci 102
r1(config-subif)#frame-relay map ip 192.168.1.2 101 broadcast
r1(config-subif)#frame-relay map ip 192.168.1.3 102 broadcast
r1(config-subif)#no sh
r1(config-subif)#exit
 
r1(config)#in s0/0.2 point-to-point                          (单子接口)
r1(config-subif)#ip add 192.168.2.1 255.255.255.0
r1(config-subif)#frame-relay interface-dlci 201
r1(config-subif)#no sh
r1(config-subif)#exit
r1(config)#exit
 
r1#show ip in br
Interface                  IP-Address      OK? Method Status                Protocol
Serial0/0                  unassigned      YES unset  up                    up     
Serial0/0.1                192.168.1.1     YES manual down                  down   
Serial0/0.2                192.168.2.1     YES manual down                  down   

Serial0/1                  unassigned      YES unset  administratively down down   
Serial0/2                  unassigned      YES unset  administratively down down   
Serial0/3                  unassigned      YES unset  administratively down down   
 
3.R2相关配置:
 
r2(config)#in s0/0
r2(config-if)#encapsulation frame-relay
r2(config-if)#no frame-relay inverse-arp
r2(config-if)#no sh
r2(config-if)#exit
*Mar  1 01:02:17.151: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up
 
r2(config)#in s0/0
r2(config-if)#ip add 192.168.1.2 255.255.255.0
r2(config-if)#no sh
r2(config-if)#frame-relay map ip 192.168.1.1 101 broadcast
r2(config-if)#no sh
r2(config-if)#exit
r2(config)#exit
 
r2#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   
 
r5#show ip in br
Interface                  IP-Address      OK? Method Status                Protocol
Serial0/0                  unassigned      YES unset  up                    up     
Serial0/1                  unassigned      YES unset  up                    up     
Serial0/2                  unassigned      YES unset  up                  down   
Serial0/3                  unassigned      YES unset  up                  down   
 
r1#show ip in br
Interface                  IP-Address      OK? Method Status                Protocol
Serial0/0                  unassigned      YES unset  up                    up     
Serial0/0.1                192.168.1.1      YES manual up                    up   
  
Serial0/0.2                192.168.2.1     YES manual down                  down   
Serial0/1                  unassigned      YES unset  administratively down down   
Serial0/2                  unassigned      YES unset  administratively down down   
Serial0/3                  unassigned      YES unset  administratively down down   
 
4.R3相关配置:
 
r3(config)#in s0/0
r3(config-if)#encapsulation frame-relay                      (封装协议为frame-relay)
r3(config-if)#no frame-relay inverse-arp                      (关掉反向ARP)
r3(config-if)#no sh
r3(config-if)#exit
*Mar  1 01:09:23.207: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up
 
r3(config)#in s0/0
r3(config-if)#ip add 192.168.1.3 255.255.255.0
r3(config-if)#no sh
r3(config-if)#frame-relay map ip 192.168.1.1 102 broadcast        (DLCI映射
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.3     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   

 
r5#show ip in br
Interface                  IP-Address      OK? Method Status                Protocol
Serial0/0                  unassigned      YES unset  up                    up     
Serial0/1                  unassigned      YES unset  up                    up     
Serial0/2                  unassigned      YES unset  up                    up     
Serial0/3                  unassigned      YES unset  up                    down   
 
r1#show ip in br
Interface                  IP-Address      OK? Method Status                Protocol
Serial0/0                  unassigned      YES unset  up                    up     
Serial0/0.1                192.168.1.1     YES manual up                    up     
Serial0/0.2                192.168.2.1     YES manual down                  down   
Serial0/1                  unassigned      YES unset  administratively down down   
Serial0/2                  unassigned      YES unset  administratively down down   
Serial0/3                  unassigned      YES unset  administratively down down   
 
5.R4 相关配置:
 
r4(config)#in s0/0
r4(config-if)#encapsulation frame-relay                   (封装协议为frame-relay)
r4(config-if)#no frame-relay inverse-arp                   (关掉反向ARP
r4(config-if)#no sh
r4(config-if)#exit
r4(config)#
*Mar  1 01:14:42.579: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up
 
r4(config)#in s0/0
r4(config-if)#ip add 192.168.2.2 255.255.255.0
r4(config-if)#no sh
r4(config-if)#frame-relay map ip 192.168.2.1 201 broadcast       (DLCI映射)
r4(config-if)#no sh
r4(config-if)#exit
r4(config)#exit
 
r4#show ip in br
Interface                  IP-Address      OK? Method Status                Protocol
Serial0/0                  192.168.2.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   
 
r5#show ip in br
Interface                  IP-Address      OK? Method Status                Protocol
Serial0/0                  unassigned      YES unset  up                    up     
Serial0/1                  unassigned      YES unset  up                    up     
Serial0/2                  unassigned      YES unset  up                    up     
Serial0/3                  unassigned      YES unset  up                    up     
 
r1#show ip in br
Interface                  IP-Address      OK? Method Status                Protocol
Serial0/0                  unassigned      YES unset  up                    up     
Serial0/0.1                192.168.1.1     YES manual up                    up     
Serial0/0.2                192.168.2.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   
 
6.测试实验效果

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)
 
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 = 16/52/148 ms
 
r1#ping 192.168.1.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/78/128 ms
 
r1#ping 192.168.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/56/144 ms
 
r1#ping 192.168.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/104/216 ms

 
 
r2#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 = 16/56/92 ms
 
r2#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/

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 = 24/67/108 ms
 
r3#ping 192.168.1.3                                                    (本身不通)
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.3, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
r4#ping 192.168.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/53/92 ms
 
r4#ping 192.168.2.2                                               (本身不通)
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
 
 
7.处理不通问题.
 
 
r2(config)#in s0/0
r2(config-if)#frame-relay map ip 192.168.1.2 101 broadcast
r2(config-if)#no sh
 
r2#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 = 28/86/260 ms

r3(config)#in s0/0
r3(config-if)#frame-relay map ip 192.168.1.3 102 broadcast
r3(config-if)#no sh
 
r3#ping 192.168.1.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.3, timeout is 2 seconds:
!!!!!                                                              ( 通了)
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/109/236 ms
 
r4(config)#in s0/0
r4(config-if)#frame-relay map ip 192.168.2.2 201 broadcast
r4(config-if)#no sh

 
r4#ping 192.168.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds:
!!!!!                                                         (  通了
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/83/160 ms

r1(config)#in s0/0.1
r1(config-subif)#frame-relay map ip 192.168.1.1 101 broadcas使用第1条DLCI )       
r1(config-subif)#no sh
 
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 = 60/106/232 ms
 
r1(config)#in s0/0.1
r1(config-subif)#no frame-relay map ip 192.168.1.1 101 broa    (关掉第1条DLCI的映射)
r1(config-subif)#no sh
r1(config-subif)#exit
r1(config)#exit
 
r1#show frame-relay map
Serial0/0.1 (up): ip 192.168.1.2 dlci 101(0x65,0x1850), static,
              broadcast,
              CISCO, status defined, active
Serial0/0.1 (up): ip 192.168.1.3 dlci 102(0x66,0x1860), static,
              broadcast,
              CISCO, status defined, active
Serial0/0.2 (up): point-to-point dlci, dlci 201(0xC9,0x3090), broadcast
          status defined, active
 
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)
 
r1(config)#in s0/0.1
r1(config-subif)#frame-relay map ip 192.168.1.1 102 broadcast     (使用第2条DLCI)
r1(config-subif)#no sh
 
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 = 52/107/204 ms
r1#
 
分析:
 S0/0。1 是多子接口模式。它有两条DLCI。分别为:101。102。
S0/0。1 IP 为 192.168.1.1. 要想在本身上PING 通自已。就要在
本身建DLCI 映射。以上的情况说明,2条DLCI 可以任选1条
DLCI做映射就可以联通S0/0。1。
 
r5#show frame-relay route
 
Input Intf      Input Dlci      Output Intf     Output Dlci     Status
Serial0/0       101             Serial0/1       101             active
Serial0/0       102             Serial0/2       102             active
Serial0/0       201             Serial0/3       201             active
Serial0/1       101             Serial0/0       101             active
Serial0/2       102             Serial0/0       102             active
Serial0/3       201             Serial0/0       201             active