实验拓扑:


实验要求:R1通过FR分别与R2R3相连,R2R3无连接,这样形成一个hub and spoke型网络拓扑,然后在R1上采用点对多点子接口,R2R3采用物理接口。
试验目的:掌握在hub and spoke网络环境下hub路由器与spoke路由器的基本配置。

实验配置:
R1
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
R1(config-subif)#fram interface-dlci 301
R1(config-fr-dlci)#exit                  
R1(config-subif)#fram interface-dlci 302
R1(config-fr-dlci)#exit
 
R2
R2(config)#int s1/0
R2(config-if)#enca fram
R2(config-if)#ip add 172.16.3.1 255.255.255.0
R2(config-if)#no shu
 
R3
R3(config)#int s1/0
R3(config-if)#enca fram
R3(config-if)#ip add 172.16.3.2 255.255.255.0
R3(config-if)#no shu
 
这样配置后我们分别查看三台路由器的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
 
R2#show fram map
Serial1/0 (up): ip 172.16.3.3 dlci 103(0x67,0x1870), dynamic,
              broadcast,, status defined, active
 
R3#show fram map
Serial1/0 (up): ip 172.16.3.3 dlci 203(0xCB,0x30B0), dynamic,
              broadcast,, status defined, active
全部都active,并且都有地址到DLCI的映射,下面我们在R1ping R2/R3,验证:
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 = 144/198/284 ms
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 = 144/205/404 ms
可以ping通,下面在R2ping R3 看结果:
R2#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 0 percent (0/5)
无法ping通,再查看一下R2/R3fram map时发现没有到远端地址与DLCI的映射,同全物理接口一样,R2/R3上都需要加上映射:
R2(config-if)#fram map ip 172.16.3.2 103 br
 
R3(config-if)#fram map ip 172.16.3.1 203 br
再查看一下他们的fram map
R2#show fram map
Serial1/0 (up): ip 172.16.3.2 dlci 103(0x67,0x1870), static,
              broadcast,
              CISCO, status defined, active
Serial1/0 (up): ip 172.16.3.3 dlci 103(0x67,0x1870), dynamic,
              broadcast,, status defined, active
 
R3#show fram map
Serial1/0 (up): ip 172.16.3.1 dlci 203(0xCB,0x30B0), static,
              broadcast,
              CISCO, status defined, active
Serial1/0 (up): ip 172.16.3.3 dlci 203(0xCB,0x30B0), dynamic,
              broadcast,, status defined, active
 
注意区别,一个是动态学到的,一个是手动添加的。。然后进行ping验证:
R2#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 = 288/354/428 ms
OK,通了~~

实验总结:在hub and spoke拓扑环境下,如果spoke路由器采用的是物理接口,无论hub路由器采用哪种接口,spoke路由器上都需要做到远端spoke路由器的IPDLCI的静态映射。




















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