CCNP第二天 帧中继综合实验

实验题如图所示: 要求全网可达 R5为帧中继交换机 R6 和 R1之间为快速以太网接口

 所使用的拓扑为CCNA标准版拓扑图,如下所示:

 

---------------------------------------------------------------------------------------------------------------------------------

1.首先在帧中继交换机上打通各条PVC

frsw#conf t
frsw(config)#no ip routing         // 关闭路由器的路由功能
frsw(config)#frame-relay switching      // 打开帧中继交换功能
frsw(config)#int s1/0
frsw(config-if)#encapsulation frame-relay
frsw(config-if)#frame-relay intf-type dce
frsw(config-if)#frame-relay route 102 interface s1/1 201
frsw(config-if)#frame-relay route 103 interface s1/2 301
frsw(config-if)#frame-relay route 104 interface s1/3 401

frsw(config-if)#int s1/1
frsw(config-if)#encapsulation frame-relay
frsw(config-if)#frame-relay intf-type dce
frsw(config-if)#frame-relay route 201 interface s1/0 102

frsw(config-if)#int s1/2
frsw(config-if)#encapsulation frame-relay
frsw(config-if)#frame-relay intf-type dce
frsw(config-if)#frame-relay route 301 interface s1/0 103
frsw(config-if)#frame-relay route 304 interface s1/3 403

frsw(config-if)#int s1/3
frsw(config-if)#encapsulation frame-relay
frsw(config-if)#frame-relay intf-type dce
frsw(config-if)#frame-relay route 403 interface s1/2 304
frsw(config-if)#frame-relay route 401 interface s1/0 104

目前为止,帧中继上的pvc都已经打通了,下面进行客户端的配置
-------------------------------------------------------------------------

2. 各个客户端接口的配置

R1(config)#int s1/2
R1(config-if)#encapsulation frame-relay
R1(config-if)#no shutdown

R1(config)#int s1/2.1 multipoint       // 多点子接口
R1(config-subif)#ip add 123.1.1.1 255.255.255.0
R1(config-subif)#frame-relay interface-dlci 102
R1(config-fr-dlci)#frame-relay interface-dlci 103  


R1(config)#int s1/2.2 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(config)#int s1/2
R2(config-if)#encapsulation frame-relay
R2(config-if)#ip add 123.1.1.2 255.255.255.0
R2(config-if)#no shutdown


R3(config)#int s1/2
R3(config-if)#encapsulation frame-relay
R3(config-if)#no shutdown

R3(config)#int s1/2.1 point-to-point
R3(config-subif)#ip add 123.1.1.3 255.255.255.0
R3(config-subif)#frame-relay interface-dlci 301

R3(config)#int s1/2.2 multipoint
R3(config-subif)#ip add 34.1.1.1 255.255.255.0
R3(config-subif)#frame-relay interface-dlci 304

R4(config)#int s1/2
R4(config-if)#encapsulation frame-relay
R4(config-if)#no shutdown

R4(config)#int s1/2.1 point-to-point
R4(config-subif)#ip add 34.1.1.2 255.255.255.0
R4(config-subif)#frame-relay interface-dlci 403

R4(config)#int s1/2.2 point-to-point
R4(config-subif)#ip add 14.1.1.2 255.255.255.0
R4(config-subif)#frame-relay interface-dlci 401

目前为止所有客户端接口子接口都已经配置完成了,下面进行测试
用R1 分别ping R2 R3 R4
用R3 ping R4 应该都是可以ping 通的 若不行 请仔细检查前面的配置 和各接口是否开启

PS: 建议多点子接口和物理接口手写Map,因为多点子接口和物理接口自动生成Map速度太慢,而点对点子接口不能手写Map,就算写了,也没有作用,因为点对点不关注第三层的IP地址。
-----------------------------------------------------------------------------------

然后给每个路由器配环回 起eigrp协议

1.环回略

R1的环回1.1.1.1    R2的环回2.2.2.2      ……


2.分别在每个路由器上起eigrp协议

R1(config)#router eigrp 90
R1(config-router)#no auto-summary
R1(config-router)#network 123.0.0.0
R1(config-router)#network 1.0.0.0
R1(config-router)#network 14.0.0.0

R2(config)#router eigrp 90
R2(config-router)#no auto-summary
R2(config-router)#network 123.0.0.0
R2(config-router)#network 2.0.0.0


R3(config)#router eigrp 90
R3(config-router)#no auto-summary
R3(config-router)#network 123.0.0.0
R3(config-router)#network 34.0.0.0
R3(config-router)#network 3.0.0.0

R4(config)#router eigrp 90
R4(config-router)#no auto-summary
R4(config-router)#network 14.0.0.0
R4(config-router)#network 34.0.0.0

目前为止,等待路由条目收敛完成后R1 R3 R4 的路由条目应该收敛齐全(除了R6)
而R2 没有34.0.0.0/24 和 3.0.0.0/24 这两天路由条目
-----------------------------------------------------------------------

内网访问外网 缺省和Nat

1.缺省
R1(config)#ip route 0.0.0.0 0.0.0.0 16.1.1.2
R1(config)#router eigrp 90
R1(config-router)#redistribute static      // 重发布

2.Nat
R1(config)#access-list 1 permit any
R1(config)#ip nat inside source list 1 interface f0/0 overload

R1(config)#int f0/0
R1(config-if)#ip nat outside

R1(config)#int s1/2.1
R1(config-subif)#ip nat inside

R1(config)#int s1/2.2
R1(config-subif)#ip nat inside

PS: 1.ip nat inside时,必须把每个子接口当做一个物理接口而不能把 s1/2当做inside

  2.有缺省和汇总的时候为了安全起见,应该防止路由黑洞的出现,所以该在所有做过汇总的路由器R2-R6上写一条空接口路由条目

   eg: R2(config)# ip router 192.168.1.0 255.255.255.240 null 0

      ……

       R6(config)# ip router 192.168.1.0 255.255.255.0 null 0    // 因为R6在s1/1上做过一次对R2-R6上的/24位的汇总

 

看到这里您辛苦了,谢谢 : )

 

—————————————————————————————————————————————————————————————————————————————

声明:

  本文为 大Yi巴狼 对自己所学的知识整理和实现。

  本文档欢迎自由转载,但请务必保持本文档完整或注明来之本文档。本文档未经 大Yi巴狼 同意,不得用于商业用途。最后,如果您能从这个简单文档里获得些许帮助,大Yi巴狼 将对自己的一点努力感到非常高兴;由于作者本人水平有限,如果本文档中包含的错误给您造成了不便,在此提前说声抱歉。

  祝身体健康,工作顺利。

posted @ 2014-07-18 17:02  大Yi巴狼  阅读(427)  评论(0编辑  收藏  举报