分类: 系统运维
2007-12-18 18:49:27
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(从R1的s1/0接口接收DLCI为102的信息经由s1/1口DLCI为201的路线上转发出去)
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
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
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 i
R1(config-subif)#frame-relay map i
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
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
R3(config-if)#encap frame-relay
R3(config-if)#no shut
R3(config-if)#frame-relay map i
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
R4(config-if)#encap frame-relay
R4(config-if)#no shut
R4(config-if)#frame-relay map i
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#
penguinstorm2008-02-25 21:04:26
to 本站网友: 我在全局配置模式下输入了frame-relay switching的呀,这个就是: “FR(config)#frame-relay switching(在CISCO路由器上启用帧中继交换,在帧中继交换命令之前执行,否则其他命令不被允许)”,这个实验过程我也是参照人家的,但并不完全正确,一些理想的结果并没有,待实验之后再将结果贴出来。
chinaunix网友2008-02-04 18:57:19
我照着楼主的试验做了一遍,用3640模拟的时候还应该首先在全局配置模式下打:router(config)#frame-relay switching,楼主好像没有打,还有在3640的每个接口上应该配制时钟频率clockrate 64000