NBMA為一種沒有廣播類型的的網路連接,這會使得OSPF建立需要手動設定
拓樸如下:
R1#
!
interface Loopback0
ip address 172.16.1.1 255.255.255.0
ip ospf network point-to-point
!
interface Serial2/0
ip address 192.168.1.1 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-multipoint
serial restart-delay 0
frame-relay map ip 192.168.1.2 102 broadcast
frame-relay map ip 192.168.1.3 103 broadcast
no frame-relay inverse-arp
!
!
router ospf 1
network 172.16.1.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
!
R2#
!
interface Loopback0
ip address 172.16.3.1 255.255.255.0
ip ospf network point-to-point
!
interface Serial2/0
ip address 192.168.1.2 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-multipoint
serial restart-delay 0
frame-relay map ip 192.168.1.1 201 broadcast
no frame-relay inverse-arp
!
router ospf 1
network 172.16.3.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
!
R3#
!
interface Loopback0
ip address 172.16.4.1 255.255.255.0
ip ospf network point-to-point
!
interface Serial2/0
ip address 192.168.1.3 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-multipoint
serial restart-delay 0
frame-relay map ip 192.168.1.1 301 broadcast
no frame-relay inverse-arp
!
!
router ospf 1
network 172.16.4.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
!
R4為frame-relay switch的設定
hostname SW
! !
frame-relay switching
!
interface Serial2/1
no ip address
encapsulation frame-relay frame-relay intf-type dce
frame-relay route 102 interface Serial2/2 201
frame-relay route 103 interface Serial2/3 301
no sh
!
interface Serial2/2
no ip address
encapsulation frame-relay frame-relay intf-type dce
frame-relay route 201 interface Serial2/1 102
no sh interface Serial2/3
no ip address
encapsulation frame-relay frame-relay intf-type dce
frame-relay route 301 interface Serial2/1 103
no sh