帧中继Dynamips点到多点子接口配置 [ 网站地图 ]

发表于:2010-4-14 浏览:244 作者: 来源:互联网

关键字:帧中继,Dynamips,接口,配置

描述:四台3620路由器,一台3640路由器(用来模拟帧中继交换机)   CISCO3640配置过程如下:   FR#   FR#   FR#conft   Enterconfigurationcommands,oneperline.EndwithCNTL/Z.   FR(config)#fr

四台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(从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 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

{[csc:pagelist]}

  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#


站长资讯网 做中国最丰富的资讯网站 沪ICP备05004089号