说明: hub节点的网络类型为P2MP ,spoke 节点的网络类型为Piont-to-Piont,R4、R5、R6 模拟的是帧中继交换机,R1为hub, R2、R3是spoke节点。

实验拓扑图如下:

OSPF在Frame-relay环境下的实验

配置:

R1 :

interface Loopback1
 ip address 1.1.1.1 255.255.255.0
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial1/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/1
 ip address 123.1.1.1 255.255.255.0
 encapsulation frame-relay IETF
 ip ospf network point-to-multipoint
 ip ospf hello-interval 10
 serial restart-delay 0
!
interface Serial1/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart-delay 0
!
router ospf 110
 router-id 91.1.1.1
 log-adjacency-changes
 network 1.1.1.1 0.0.0.0 area 0
 network 123.1.1.1 0.0.0.0 area 0
 default-information originate always metric 10 metric-type 1

R2:

!
interface Loopback2
 ip address 2.2.2.2 255.255.255.0
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial1/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/2
 ip address 123.1.1.2 255.255.255.0
 encapsulation frame-relay IETF
 ip ospf network point-to-point
 serial restart-delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart-delay 0
!
router ospf 110
 router-id 92.2.2.2
 log-adjacency-changes
 network 2.2.2.2 0.0.0.0 area 0
 network 123.1.1.2 0.0.0.0 area 0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server

 

R3:

!
interface Loopback3
 ip address 3.3.3.3 255.255.255.0
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial1/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/3
 ip address 123.1.1.3 255.255.255.0
 encapsulation frame-relay IETF
 ip ospf network point-to-point
 serial restart-delay 0
!
router ospf 110
 router-id 93.3.3.3
 log-adjacency-changes
 network 3.3.3.3 0.0.0.0 area 0
 network 123.1.1.3 0.0.0.0 area 0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server

 

R4:

frame-relay switching
!
interface Tunnel45
 no ip address
 tunnel source 54.1.1.1
 tunnel destination 54.1.1.2
!
interface Tunnel46
 no ip address
 tunnel source 64.1.1.1
 tunnel destination 64.1.1.2
!
interface FastEthernet0/0
 ip address 54.1.1.1 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 64.1.1.1 255.255.255.0
 duplex auto
 speed auto
!
interface Serial1/0
 no ip address
 encapsulation frame-relay IETF
 serial restart-delay 0
 frame-relay lmi-type ansi
 frame-relay intf-type dce
 frame-relay route 102 interface Tunnel45 502
 frame-relay route 103 interface Tunnel46 503
!
interface Serial1/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart-delay 0
!
router eigrp 90
 network 54.1.1.1 0.0.0.0
 network 64.1.1.1 0.0.0.0
 no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server

R5:

!
frame-relay switching
!
!
interface Tunnel45
 no ip address
 tunnel source 54.1.1.2
 tunnel destination 54.1.1.1
!
interface FastEthernet0/0
 ip address 65.1.1.1 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 54.1.1.2 255.255.255.0
 duplex auto
 speed auto
!
interface Serial1/0
 no ip address
 encapsulation frame-relay IETF
 serial restart-delay 0
 frame-relay lmi-type ansi
 frame-relay intf-type dce
 frame-relay route 201 interface Tunnel45 502
!
interface Serial1/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart-delay 0
!
router eigrp 90
 network 54.1.1.2 0.0.0.0
 network 65.1.1.1 0.0.0.0
 no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!

R6:

!
frame-relay switching
!
!
interface Tunnel46
 no ip address
 tunnel source 64.1.1.2
 tunnel destination 64.1.1.1
!
interface Tunnel503
 no ip address
!
interface FastEthernet0/0
 ip address 64.1.1.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 65.1.1.2 255.255.255.0
 duplex auto
 speed auto
!
interface Serial1/0
 no ip address
 encapsulation frame-relay IETF
 serial restart-delay 0
 frame-relay lmi-type ansi
 frame-relay intf-type dce
 frame-relay route 301 interface Tunnel46 503
!
interface Serial1/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart-delay 0
!
router eigrp 90
 network 64.1.1.0 0.0.0.255
 network 65.1.1.0 0.0.0.255
 no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server