帧中继的基础

 1、帧中继基本的配置的实现:

----------------------------------R1---------------------------------
R1(config)#int s0/0
R1(config-if)#encapsulation frame-relay  //包封装的类型为帧中继
R1(config-if)#ip add 124.1.1.1 255.255.255.0
R1(config-if)#frame-relay map ip 124.1.1.1 102 //手工加入帧中继交换表,ping通自己。
R1#ping 124.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 124.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/48/140 ms
 
-------------------------------R2------------------------------------
R2(config)#int s0/0
R2(config-if)#encapsulation fra
R2(config-if)#encapsulation frame-relay 
R2(config-if)#ip add 124.1.1.2 255.255.255.0
R2(config-if)#no shut 
 
------------------------------R4----------------------------------------
R4(config)#int s0/0
R4(config-if)#encapsulation frame-relay 
R4(config-if)#ip add 124.1.1.4 255.255.255.0
R4(config-if)#no shut
 
-----------------------------R3-----------------------------------------
R3(config)#frame-relay switching 
R3-FRSW(config)#int s0/0
R3-FRSW(config-if)#encapsulation frame-relay 
R3-FRSW(config-if)#clock rate 64000
R3-FRSW(config-if)#no shut
R3-FRSW(config-if)#int s0/0
R3-FRSW(config-if)#encapsulation frame-relay
R3-FRSW(config-if)#frame-relay intf-type dce    //配置接口为帧中继的DCE。
R3-FRSW(config-if)#frame-relay route 102 int s0/1 201  //定义接口s0/0和s0/1之间的PVC,建立帧中继交换表。
R3-FRSW(config-if)#frame-relay route 104 int s0/2 401
R3-FRSW(config)#int s0/1
R3-FRSW(config-if)#
R3-FRSW(config-if)#en
R3-FRSW(config-if)#encapsulation fra
R3-FRSW(config-if)#encapsulation frame-relay 
R3-FRSW(config-if)#frame-relay intf-type dce 
R3-FRSW(config-if)#frame-relay  route 201 int s0/0 102
R3-FRSW(config-if)#frame-relay route 204 int s0/2 402
R3-FRSW(config)#int s0/2
R3-FRSW(config-if)#encapsulation frame-relay 
R3-FRSW(config-if)#clock rate 64000
R3-FRSW(config-if)#frame-relay intf-type dce
R3-FRSW(config-if)#frame-relay route 401 int s0/0 104
R3-FRSW(config-if)#frame-relay route 402 int s0/1 204
 
 
 
实验调试:
R3-FRSW#show frame-relay route //查看接口进入和送出的DLCI,以及状态是否是active。
Input Intf      Input Dlci      Output Intf     Output Dlci     Status
Serial0/0       102             Serial0/1       201             active
Serial0/0       104             Serial0/2       401             active
Serial0/1       201             Serial0/0       102             active
Serial0/1       204             Serial0/2       402             active
Serial0/2       401             Serial0/0       104             active
Serial0/2       402             Serial0/1       204             active
 
 
R1#ping 124.1.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 124.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/39/96 ms
 
R1#ping 124.1.1.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 124.1.1.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/28/92 ms
 
R2#ping 124.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 124.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/20/40 ms
 
R2#ping 124.1.1.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 124.1.1.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/52/112 ms
 
R4#ping 124.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 124.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/38/76 ms
 
R4#ping 124.1.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 124.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/43/92 ms
 
R1#show frame-relay map
Serial0/0 (up): ip 124.1.1.2 dlci 102(0x66,0x1860), dynamic,//自动
              broadcast,, status defined, active
Serial0/0 (up): ip 124.1.1.4 dlci 104(0x68,0x1880), dynamic,//自动
              broadcast,, status defined, active
Serial0/0 (up): ip 124.1.1.1 dlci 102(0x66,0x1860), static,
              CISCO, status defined, active                              //手动注入的map。
 
R2#show frame-relay map
Serial0/0 (up): ip 124.1.1.4 dlci 204(0xCC,0x30C0), dynamic,
              broadcast,, status defined, active
Serial0/0 (up): ip 124.1.1.1 dlci 201(0xC9,0x3090), dynamic,
              broadcast,, status defined, active
 
R4#show frame-relay map
Serial0/0 (up): ip 124.1.1.2 dlci 402(0x192,0x6420), dynamic,
              broadcast,, status defined, active
Serial0/0 (up): ip 124.1.1.1 dlci 401(0x191,0x6410), dynamic,
              broadcast,, status defined, active
 
2.点对点自接口配置:
------------------------------------------R1-----------------------------------------------
R1#clear frame-relay inarp  //清除帧中继自动学习的交换表。
R1#show frame-relay map
Serial0/0 (up): ip 124.1.1.1 dlci 102(0x66,0x1860), static,
              CISCO, status defined, active
R1(config)#int s0/0
R1(config-if)#no ip add
R1(config)#int s0/0.12 point-to-point 
R1(config-subif)#ip add 12.1.1.1 255.255.255.0
R1(config-subif)#frame-relay interface-dlci 102
%PVC is already defined  //出现这种情况是因为你之前配了一条手动的map。
R1(config)#int s0/0
R1(config-if)#no frame-relay map ip 124.1.1.1 102 // no掉以后就不会出现了。
R1(config-subif)#frame-relay interface-dlci 102
R1(config)#int s0/0.14 point-to-point 
R1(config-subif)#ip add 14.1.1.1 255.255.255.0
R1(config-subif)#frame-relay interface-dlci 104
 
---------------------------------R2----------------------------------------------------------
R2#clear frame-relay inarp
R2(config)#int s0/0
R2(config-if)#ip add 12.1.1.2 255.255.255.0
R2(config-if)#no shut
 
 
------------------------------------R4--------------------------------------------------------
R4#clear frame-relay inarp
R4(config)#int s0/0
R4(config-if)#ip add 14.1.1.4 255.255.255.0
R4(config-if)#no shut
 
 
实验调试:
R1#ping 12.1.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/44/76 ms
R1#ping 14.1.1.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 14.1.1.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/40/64 ms
 
R2#ping 12.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/48/92 ms
R4#ping 14.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 14.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/36/96 ms
*子链路和主链路之间是先互相通信。
3.多点子接口的配置:
物理接口是没有配置ip地址:
R1(config)#int s0/0.124 multipoint  //创建帧中继多点子接口。
R1(config-subif)#ip add 124.1.1.1 255.255.255.0
R1(config-subif)#frame-relay map ip 124.1.1.2 102
R1(config-subif)#frame-relay map ip 124.1.1.4 104
R1(config-subif)#no frame-relay inverse-arp   //关闭帧中继逆向arp解析。
 
R4(config)#int s0/0.124 multipoint 
R4(config-subif)#ip add  124.1.1.4 255.255.255.0
R4(config-subif)#no frame-relay inverse-arp 
R4(config-subif)#frame-relay map ip 124.1.1.1 401
 
R2(config)#int s0/0.124
R2(config-subif)#frame-relay map ip 124.1.1.1 201
 R2(config-subif)#no frame-relay inverse-arp 
R2(config-subif)#ip add 124.1.1.2 255.255.255.0
*R2和R4的物理接口都没有配置ip add。
 
实验调试:
R2#ping 124.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 124.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/48/112 ms
 
R4#ping 124.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 124.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/31/68 ms
 
R1#ping 124.1.1.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 124.1.1.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/31/68 ms
R1#ping 124.1.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 124.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/40/72 ms
注意的地方:
1)要删除子接口的话,可以使用 no int s0/0.124 ,但是需要重新启动路由器 ,该接口才真正被删除。
2) 要使用clear frame  inarp清除帧中继交换表。
 

你可能感兴趣的:(职场,休闲,CCNA,帧中继)