A-A+

【CCNA】思科帧中继、EIGRP与子接口应用实验

2015年12月12日 站长资讯 【CCNA】思科帧中继、EIGRP与子接口应用实验已关闭评论

这是著名的红茶三杯耿叔的实验,将R4作为帧中继交换机,R1做2个子接口,DLCI号分别为102,103

R2与R3也分别做子接口,DLCI号为201和301(如图)。

实验目的:1.通过帧中继,使R1与R2,R1与R3互通。

2.分别在R1,R2,R3上做虚拟网段1.1.1.1 ,2.2.2.2 ,3.3.3.3,使互相都能学习到。

实验步骤:1.首先配置R4

  1. R4#conf t  
  2. Enter configuration commands, one per line.  End with CNTL/Z.  
  3. R4(config)#no ip routing  
  4. R4(config)#frame-relay switching     /指定为帧中继交换机  
  5. R4(config)#int s1/1  
  6. R4(config-if)#no sh  
  7. *Mar  1 00:26:56.955: %LINK-3-UPDOWN: Interface Serial1/1, changed state to up  
  8. *Mar  1 00:26:57.955: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to up  
  9. R4(config-if)#encapsulation frame-relay             /封装  
  10. R4(config-if)#clock rate 64000  
  11. R4(config-if)#frame-relay intf-type dce  
  12.   
  13. R4(config-if)#frame-relay route 102 int s1/2 201       
  14. R4(config-if)#frame-relay route 103 int s1/3 301     /指定本地DLCI与对应DLCI  
  15. *Mar  1 00:27:58.223: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to down  
  16. R4的s1/1口配置完毕,同理,配置s1/2和s1/3口  
  17. R4(config-if)#int s1/2  
  18. R4(config-if)#no sh  
  19. *Mar  1 00:30:29.043: %LINK-3-UPDOWN: Interface Serial1/2, changed state to up  
  20. *Mar  1 00:30:30.043: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/2, changed state to up  
  21. R4(config-if)#encapsulation frame-relay   
  22. R4(config-if)#clo rate 64000  
  23. R4(config-if)#frame-relay intf-type dce  
  24. R4(config-if)#frame-relay route 201 int s1/1 102  
  25. R4(config-if)#  
  26. *Mar  1 00:31:24.627: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/2, changed state to down  
  27.   
  28. R4(config-if)#int s1/3  
  29. R4(config-if)#no sh                       
  30. R4(config-if)#encapsulation frame-relay   
  31. R4(config-if)#  
  32. *Mar  1 00:31:46.835: %LINK-3-UPDOWN: Interface Serial1/3, changed state to up  
  33. *Mar  1 00:31:47.835: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/3, changed state to up  
  34. R4(config-if)#clo rate 64000  
  35. R4(config-if)#frame-relay intf-type dce  
  36. R4(config-if)#frame-relay route 301 int s1/1 103  

这样,R4的配置接完成了,下面配置R1,R2,R3

  1. R1  
  2. R1#conf t  
  3. Enter configuration commands, one per line.  End with CNTL/Z.  
  4. R1(config)#int s1/0  
  5. R1(config-if)#no sh  
  6. *Mar  1 00:35:26.943: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up  
  7. *Mar  1 00:35:27.943: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up  
  8. R1(config-if)#encapsulation frame-relay   
  9. R1(config-if)#ex  
  10. R1(config)#int s1/0.12 point-to-point                 /进子接口,点对点方式  
  11. R1(config-subif)#ip add 10.1.12.1 255.255.255.0  
  12. R1(config-subif)#no sh  
  13. R1(config-subif)#frame-relay interface-dlci 102         /指定DLCI  
  14. R1(config-fr-dlci)#ex                              
  15. R1(config-subif)#ex  
  16. R1(config)#int s1/0.13 point-to-point     
  17.   
  18.   
  19. R1(config-subif)#ip add 10.1.13.1 255.255.255.0  
  20. R1(config-subif)#no sh  
  21. R1(config-subif)#frame-relay interface-dlci 103  
  22. R1#show frame-relay map  
  23. Serial1/0.12 (down): point-to-point dlci, dlci 102(0x66,0x1860), broadcast  
  24.           status defined, inactive  
  25. Serial1/0.13 (down): point-to-point dlci, dlci 103(0x67,0x1870), broadcast  
  26.           status defined, inactive  

可以发现,两个子接口已经自动变成广播形式。

  1. R2  
  2. R2(config)#int s1/0  
  3. R2(config-if)#no sh  
  4. *Mar  1 00:39:56.155: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up  
  5. *Mar  1 00:39:57.155: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up  
  6. R2(config-if)#encapsulation frame-relay   
  7. R2(config-if)#  
  8. *Mar  1 00:40:25.271: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down  
  9. R2(config-if)#ex  
  10. R2(config)#  
  11. *Mar  1 00:40:27.455: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up  
  12. R2(config)#int s1/0.12 point-to-point   
  13. R2(config-subif)#ip add 10.1.12.2 255.255.255.0  
  14. R2(config-subif)#no sh  
  15. R2(config-subif)#frame-relay interface-dlci 201  
  16. R2(config-fr-dlci)#end  
  17. *Mar  1 00:40:58.447: %SYS-5-CONFIG_I: Configured from console by console  
  18. R2#show frame-relay map  
  19. Serial1/0.12 (up): point-to-point dlci, dlci 201(0xC9,0x3090), broadcast  
  20.           status defined, active   

可以发现,接口已经激活了。

  1. R3  
  2. R3#conf t  
  3. Enter configuration commands, one per line.  End with CNTL/Z.  
  4. R3(config)#int s1/0  
  5. R3(config-if)#no sh  
  6. R3(config-if)#encapsulation frame-relay   
  7. *Mar  1 00:43:18.151: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up  
  8. *Mar  1 00:43:19.151: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up  
  9. R3(config-if)#encapsulation frame-relay   
  10. R3(config-if)#ex  
  11. R3(config)#int s1/0.13 point-to-point   
  12. R3(config-subif)#ip add 10.1.13.3 255.255.255.0  
  13. R3(config-subif)#no sh  
  14. R3(config-subif)#frame-relay interface-dlci 301  
  15. R3(config-fr-dlci)#end  
  16. *Mar  1 00:43:56.467: %SYS-5-CONFIG_I: Configured from console by console  
  17. R3#show frame-relay map  
  18. Serial1/0.13 (up): point-to-point dlci, dlci 301(0x12D,0x48D0), broadcast  
  19.           status defined, active  

R3也激活了

在R1上查看一下map

  1. R1#show frame-relay map  
  2. Serial1/0.12 (up): point-to-point dlci, dlci 102(0x66,0x1860), broadcast  
  3.           status defined, active  
  4. Serial1/0.13 (up): point-to-point dlci, dlci 103(0x67,0x1870), broadcast  
  5.           status defined, active  

可以发现,已经学习到了R2和R3的帧中继了。

连通测试:

  1. R1#p 10.1.12.2  
  2.   
  3. Type escape sequence to abort.  
  4. Sending 5, 100-byte ICMP Echos to 10.1.12.2, timeout is 2 seconds:  
  5. !!!!!  
  6. Success rate is 100 percent (5/5), round-trip min/avg/max = 20/44/64 ms  
  7. R1#p 10.1.13.3  
  8.   
  9. Type escape sequence to abort.  
  10. Sending 5, 100-byte ICMP Echos to 10.1.13.3, timeout is 2 seconds:  
  11. !!!!!  
  12. Success rate is 100 percent (5/5), round-trip min/avg/max = 40/50/88 ms  

R1与R2,R3都可以ping通了。

下面,在R1,R2,R3上做虚拟接口,用EIGRP使全网互通。

  1. R1(config)#int l0  
  2. R1(config-if)#  
  3. *Mar  1 00:51:26.343: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up  
  4. R1(config-if)#ip add 1.1.1.1 255.255.255.255  
  5. R1(config-if)#no sh  
  6. R1(config-if)#router ei 1                                 /EIGRP  
  7. R1(config-router)#no auto-summary   
  8. R1(config-router)#network 10.0.0.0                        /宣告网段  
  9. R1(config-router)#network 1.1.1.1  
  10.   
  11. R2#conf t  
  12. Enter configuration commands, one per line.  End with CNTL/Z.  
  13. R2(config)#int l0  
  14. *Mar  1 00:52:43.727: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up  
  15. R2(config-if)#ip add 2.2.2.2 255.255.255.255  
  16. R2(config-if)#no sh  
  17. R2(config-if)#router ei 1  
  18. R2(config-router)#no auto-summary   
  19. R2(config-router)#network 10.0.0.0     
  20. *Mar  1 00:53:06.799: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 10.1.12.1 (Serial1/0.12) is up: new adjacency  
  21. R2(config-router)#network 2.2.2.2  
  22.   
  23. R3#conf t  
  24. Enter configuration commands, one per line.  End with CNTL/Z.  
  25. R3(config)#int l0  
  26. *Mar  1 00:53:50.815: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up  
  27. R3(config-if)#ip add 3.3.3.3 255.255.255.255  
  28. R3(config-if)#no sh  
  29. R3(config-if)#router ei 1  
  30. R3(config-router)#no auto-summary   
  31. R3(config-router)#network 10.0.0.0        
  32. *Mar  1 00:54:13.195: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 10.1.13.1 (Serial1/0.13) is up: new adjacency  
  33. R3(config-router)#network 3.3.3.3  

配置完成,在R1,R2 ,R3上查看是否能互相学习到3个网段。

  1. R1#show ip route  
  2.   
  3. Gateway of last resort is not set  
  4.   
  5.      1.0.0.0/32 is subnetted, 1 subnets  
  6. C       1.1.1.1 is directly connected, Loopback0  
  7.      2.0.0.0/32 is subnetted, 1 subnets  
  8. D       2.2.2.2 [90/2297856] via 10.1.12.2, 00:00:25, Serial1/0.12  
  9.      3.0.0.0/32 is subnetted, 1 subnets  
  10. D       3.3.3.3 [90/2297856] via 10.1.13.3, 00:00:09, Serial1/0.13  
  11.      10.0.0.0/24 is subnetted, 2 subnets  
  12. C       10.1.13.0 is directly connected, Serial1/0.13  
  13. C       10.1.12.0 is directly connected, Serial1/0.12  
  14.   
  15. R2#show ip   
  16. *Mar  1 01:02:06.219: %SYS-5-CONFIG_I: Configured from console by console  
  17. R2#show ip route  
  18.   
  19. Gateway of last resort is not set  
  20.   
  21.      1.0.0.0/32 is subnetted, 1 subnets  
  22. D       1.1.1.1 [90/2297856] via 10.1.12.1, 00:02:12, Serial1/0.12  
  23.      2.0.0.0/32 is subnetted, 1 subnets  
  24. C       2.2.2.2 is directly connected, Loopback0  
  25.      3.0.0.0/32 is subnetted, 1 subnets  
  26. D       3.3.3.3 [90/2809856] via 10.1.12.1, 00:01:23, Serial1/0.12  
  27.      10.0.0.0/24 is subnetted, 2 subnets  
  28. D       10.1.13.0 [90/2681856] via 10.1.12.1, 00:09:00, Serial1/0.12  
  29. C       10.1.12.0 is directly connected, Serial1/0.12  
  30.   
  31. R3#show ip route  
  32.   
  33. Gateway of last resort is not set  
  34.   
  35.      1.0.0.0/32 is subnetted, 1 subnets  
  36. D       1.1.1.1 [90/2297856] via 10.1.13.1, 00:02:47, Serial1/0.13  
  37.      2.0.0.0/32 is subnetted, 1 subnets  
  38. D       2.2.2.2 [90/2809856] via 10.1.13.1, 00:02:14, Serial1/0.13  
  39.      3.0.0.0/32 is subnetted, 1 subnets  
  40. C       3.3.3.3 is directly connected, Loopback0  
  41.      10.0.0.0/24 is subnetted, 2 subnets  
  42. C       10.1.13.0 is directly connected, Serial1/0.13  
  43. D       10.1.12.0 [90/2681856] via 10.1.13.1, 00:08:28, Serial1/0.13  

R1,R2,R3都可以互相学习虚拟网段了,全网互通.

标签:

评论已关闭!