配置:
R1:interface Loopback0
ip address 1.1.1.1 255.255.255.0
no keepalive
!
interface Serial0/0
no ip address
encapsulation frame-relay
serial restart-delay 0
!
interface Serial0/0.1 point-to-point
ip address 192.168.1.1 255.255.255.0
frame-relay interface-dlci 100
!
interface Serial0/0.2 point-to-point
ip address 192.168.2.1 255.255.255.0
frame-relay interface-dlci 300
!
router rip
version 2
network 1.0.0.0
network 192.168.1.0
network 192.168.2.0
!
R2:
frame-relay switching
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Serial0/0
no ip address
encapsulation frame-relay
serial restart-delay 0
clock rate 64000
frame-relay intf-type dce
frame-relay route 100 interface Serial0/1 200
frame-relay route 300 interface Serial0/2 400
!
interface Serial0/1
no ip address
encapsulation frame-relay
serial restart-delay 0
clock rate 64000
frame-relay intf-type dce
frame-relay route 200 interface Serial0/0 100
!
interface Serial0/2
no ip address
encapsulation frame-relay
serial restart-delay 0
clock rate 64000
frame-relay intf-type dce
frame-relay route 400 interface Serial0/0 300
!
R3:
!
!
interface Loopback0
ip address 2.2.2.2 255.255.255.0
!
interface Serial0/0
ip address 192.168.1.2 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
frame-relay interface-dlci 200
!
interface Serial0/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
router rip
version 2
network 2.0.0.0
network 192.168.1.0
!
R4:
!
interface Loopback0
ip address 3.3.3.3 255.255.255.0
!
interface Serial0/0
ip address 192.168.2.2 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
frame-relay interface-dlci 400
!
router rip
version 2
network 3.0.0.0
network 192.168.2.0
!