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#
.分页: [1] [2]
TAG: 帧中继 Dynamips 接口 配置