实验拓扑:
实验要求: R1
通过 FR
分别与 R2
R3
相连, R2
R3
无连接,这样形成一个 hub and spoke
型网络拓扑,然后在 R1
上采用点对多点子接口, R2
R3
采用物理接口。
试验目的:掌握在
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
的映射,下面我们在 R1
ping 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
通,下面在 R2
ping 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/R3
fram 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
路由器的 IP
DLCI
的静态映射。

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