实验拓扑:
Frame-relay 综合实验-3
试验要求:R1R2R3通过Frame-relay相连,R2R3没有连接,形成一个hub and spoke网络拓扑,R1上采用点对多点子接口,R2R3上采用点对点子接口。
试验目的:掌握Frame-relay点对多点子接口的配置方法。

试验配置:
R1:(首先看能否利用InverseARP自动学习)
R1(config)#int s1/0
R1(config-if)#enca fram
R1(config-if)#no shu
R1(config-if)#exit
R1(config)#int s1/0.1 multipoint
R1(config-subif)#ip add 172.16.3.3 255.255.255.0
 
R2
R2(config)#int s1/0
R2(config-if)#enca fram
R2(config-if)#no shu
R2(config-if)#exit
R2(config)#int s1/0.1 point-to-point
R2(config-subif)#ip add 172.16.3.1 255.255.255.0
R2(config-subif)#fram interface-dlci 103
 
R3
R3(config)#int s1/0
R3(config-if)#enca fram
R3(config-if)#no shu
R3(config-if)#exit
R3(config)#int s1/0.1 point-to-point
R3(config-subif)#ip add 172.16.3.2 255.255.255.0
R3(config-subif)#frame-relay interface-dlci 203
 
好了,让我们在R1上用show fram map察看:
R1#show fram map
 
R1#
什么也没看到,说明没有通过InverseARP学到IPDLCI的映射,也说明点对多点子接口无法通过InverseARP来自动学习,下面我们手动为R1点对多点子接口配置frame-relay map
R1(config-subif)#frame-relay map ip 172.16.3.1 301 br
R1(config-subif)#frame-relay map ip 172.16.3.2 302 br
好了,用show fram map命令察看:
R1#show fram map
Serial1/0.1 (up): ip 172.16.3.1 dlci 301(0x12D,0x48D0), static,
              broadcast,
              CISCO, status defined, active
Serial1/0.1 (up): ip 172.16.3.2 dlci 302(0x12E,0x48E0), static,
              broadcast,
              CISCO, status defined, active
 
OK,全部activeping测试一下:
R1#ping 172.16.3.1
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.3.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 192/230/288 ms
R1#
R1#ping 172.16.3.2
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.3.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 188/191/192 ms
全部都可以ping通,然后我们再来测试一下spoke路由器之间的连通性:
Router#ping 172.16.3.2
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.3.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 360/384/408 ms
 
可以直接ping通。。。
接下来我们把在R1点对多点子接口上手动配置的frame map命令删除:
R1(config-subif)#no frame-relay map ip 172.16.3.1 301 br
R1(config-subif)#no frame-relay map ip 172.16.3.2 302 br
只给他配置本地DLCI。。
R1(config-subif)#frame-relay interface-dlci 301
R1(config-subif)#frame-relay interface-dlci 302
完成后记住先要把S1/0接口shutdown,再no shutdown,然后才能在show fram map中看到变化:
R1#show fram map
Serial1/0.1 (up): ip 172.16.3.1 dlci 301(0x12D,0x48D0), dynamic,
              broadcast,, status defined, active
Serial1/0.1 (up): ip 172.16.3.2 dlci 302(0x12E,0x48E0), dynamic,
              broadcast,, status defined, active
看到了吗?用fram map命令配置的后面显示是static,而用fram interface-dlci命令配置的后面显示的是dynamic。然后验证连通性:
R1#ping 172.16.3.1
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.3.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 216/240/264 ms
通了,再测试spoke路由器之间的连通性:
Router#ping 172.16.3.2
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.3.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 336/373/428 ms
OK,也通了!
 
实验总结:通过本试验重点掌握在hub and spoke网络拓扑中hub路由器点对多点子接口的配置方法。



















本文转自loveme2351CTO博客,原文链接:http://blog.51cto.com/loveme23/43508 ,如需转载请自行联系原作者