博客首页 注册 建议与交流 排行榜 加入友情链接
推荐 投诉 搜索: 帮助

好好学习,天天向SUN

联系方式: leiyu530@163.com
  penguinstorm.cublog.cn

关于作者
姓名:雷宇
昵称:storm
职业:IT
年龄:26
位置:北京
个性介绍:没啥个性
不聊MSN/QQ
本着资源共享的精神,所有文章欢迎转载
|| << >> ||
我的分类


Dynamips-帧中继点到多点子接口实验
实验设备:四台3620路由器,一台3640路由器(用来模拟帧中继交换机)
实验拓扑图如下:
 

CISCO 3640配置过程如下:

FR#
FR#
FR#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
FR(config)#frame-relay switching
(在CISCO路由器上启用帧中继交换,在帧中继交换命令之前执行,否则其他命令不被允许)
FR(config)#interface serial 1/0
FR(config-if)#no shutdown
FR(config-if)#encapsulation frame-relay
FR(config-if)#frame-relay lmi-type ansi
(将lmi类型由默认的cisco更改为ansi
FR(config-if)#frame-relay intf-type dce
(为了帧中继交换,需要把它改变成DCE,路由器默认是DTE
FR(config-if)#frame-relay route 102 interface serial1/1 201
(从R1s1/0接口接收DLCI102的信息经由s1/1DLCI201的路线上转发出去)
FR(config-if)#frame-relay route 103 interface serial1/2 301
FR(config-if)#frame-relay route 104 interface serial1/3 401
FR(config-if)#exit
FR(config)#interface serial 1/1
FR(config-if)#no shut
FR(config-if)#encapsulation frame-relay
FR(config-if)#frame-relay lmi-type ansi
FR(config-if)#frame-relay intf-type dce
FR(config-if)#frame-relay route 201 interface serial 1/0 102
FR(config-if)#exit
FR(config)#interface s1/2
FR(config-if)#no shut
FR(config-if)#en frame-relay
FR(config-if)#frame-relay lmi-type ansi
FR(config-if)#frame-relay intf-type dce
FR(config-if)#frame-relay route 301 interface serial 1/0 103
FR(config-if)#exit
FR(config)#interface s1/3
FR(config-if)#no shut
FR(config-if)#en frame-relay
FR(config-if)#frame-relay lmi-type ansi
FR(config-if)#frame-relay intf-type dce
FR(config-if)#frame-relay route 401 interface serial 1/0 104
FR(config-if)#end

 

ROUTER1配置如下:

R1#
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#interface fa0/0
R1(config-if)#ip address 10.1.1.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#int s1/0
R1(config-if)#no ip address
R1(config-if)#no shut
R1(config-if)#encapsulation frame-relay
R1(config-if)#no frame-relay inverse-arp
(关掉动态寻址功能)
R1(config-if)#frame-relay lmi-type ansi
R1(config-if)#exit

NOTE:当每个PVC都是一个独立的子网时使用点对点,当所有的PVC都使用相同的子网时使用多点
R1(config)#int s1/0.2 point-to-point
(点到点)
R1(config-subif)#ip address 12.12.12.1 255.255.255.0
R1(config-subif)#frame-relay interface-dlci 102
R1(config-fr-dlci)#int s1/0.34 multipoint
(点到多点)
R1(config-subif)#ip address 13.13.13.1 255.255.255.0
R1(config-subif)#no ip split-horizon
(关掉水平分割功能,使R3/R4可以互通路由信息)
R1(config-subif)#frame-relay map ip 13.13.13.3 103 broadcast
R1(config-subif)#frame-relay map ip 13.13.13.4 104 broadcast
R1(config-subif)#exit
R1(config)#router rip
R1(config-router)#network 10.0.0.0
R1(config-router)#network 12.0.0.0
R1(config-router)#network 13.0.0.0
R1(config-router)#end
R1#
R1#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]

 

ROUTER2配置如下:

R2#
R2#
R2#en
R2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#int f0/0
R2(config-if)#ip address 172.16.1.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#int s1/0
R2(config-if)#ip address 12.12.12.2 255.255.255.0
R2(config-if)#encap frame-relay
R2(config-if)#no shut
R2(config-if)#no frame-relay inverse-arp
R2(config-if)#frame-relay lmi-type ansi
R2(config-if)#exit
R2(config)#router rip
R2(config-router)#network 172.16.1.0
R2(config-router)#network 12.0.0.0
R2(config-router)#end
R2#
R2#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]

 

ROUTER3配置如下:

R3#
R3#
R3#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R3(config)#int f0/0
R3(config-if)#ip address 192.168.1.3 255.255.255.0
R3(config-if)#no shut
R3(config-if)#int s1/0
R3(config-if)#ip address 13.13.13.3 255.255.255.0
R3(config-if)#encap frame-relay
R3(config-if)#no shut
R3(config-if)#frame-relay map ip 13.13.13.1 301 broadcast
R3(config-if)#no frame-relay inverse-arp
R3(config-if)#frame-relay lmi-type ansi
R3(config-if)#exit
R3(config)#router rip
R3(config-router)#network 192.168.1.0
R3(config-router)#network 13.0.0.0
R3(config-router)#end
R3#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]

 

ROUTER4配置如下:

R4#
R4#
R4#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R4(config)#int f0/0
R4(config-if)#ip address 192.168.2.4 255.255.255.0
R4(config-if)#no shut
R4(config-if)#int s1/0
R4(config-if)#ip address 13.13.13.4 255.255.255.0
R4(config-if)#encap frame-relay
R4(config-if)#no shut
R4(config-if)#frame-relay map ip 13.13.13.1 401 broad
R4(config-if)#no frame-relay inverse-arp
R4(config-if)#frame-relay lmi-type ansi
R4(config-if)#exit
R4(config)#router rip
R4(config-router)#network 192.168.2.0
R4(config-router)#network 13.0.0.0
R4(config-router)#end

 

FR中检验配置:

FR#show frame-relay route
Input Intf      Input Dlci      Output Intf     Output Dlci     Status
Serial1/0       102             Serial1/1       201             active
Serial1/0       103             Serial1/2       301             active
Serial1/0       104             Serial1/3       401             active
Serial1/1       201             Serial1/0       102             active
Serial1/2       301             Serial1/0       103             active
Serial1/3       401             Serial1/0       104             active
FR#

发表于: 2007-12-18,修改于: 2007-12-19 17:32,已浏览857次,有评论4条 推荐 投诉


网友评论
网友: 本站网友 时间:2008-02-04 18:57:19 IP地址:121.62.65.★
我照着楼主的试验做了一遍,用3640模拟的时候还应该首先在全局配置模式下打:router(config)#frame-relay switching,楼主好像没有打,还有在3640的每个接口上应该配制时钟频率clockrate 64000

网友: penguinstorm 时间:2008-02-25 21:04:26 IP地址:125.33.23.★
to 本站网友:
我在全局配置模式下输入了frame-relay switching的呀,这个就是:
“FR(config)#frame-relay switching(在CISCO路由器上启用帧中继交换,在帧中继交换命令之前执行,否则其他命令不被允许)”,这个实验过程我也是参照人家的,但并不完全正确,一些理想的结果并没有,待实验之后再将结果贴出来。

网友: 本站网友 时间:2008-10-02 12:01:35 IP地址:202.108.59.★
使用静态映射后IARP自动关闭,所以,关掉动态寻址的那一条不必要

网友: penguinstorm 时间:2008-10-06 13:07:28 IP地址:202.106.78.★
to 本站网友:
多谢!

 发表评论