三台路由器 R1/R2/R3 透過幀中繼交換機 FR 互聯,R1 使用多點子介面 Serial1/0.2 multipoint 映射 DLCI 102/103 至 R2/R3;R2/R3 使用實體介面配置 frame-relay map。FR 交換機配置 frame-relay route 完成 PVC 交換。
幀中繼預設為 **NBMA(非廣播多重存取)** 網路類型。OSPF 在 NBMA 上需手動指定 neighbor 或變更網路類型為 broadcast 才能自動發現鄰居並建立鄰居關係。R2/R3 之間無直接 PVC(DLCI 203/302 不存在),且 OSPF 預設不發送 Hello 至非直接映射的 DLCI,導致鄰居關係無法建立,路由不傳遞。
在所有路由器的 Serial 介面/子介面下設定:
interface Serial1/0.2 multipoint // R1
ip ospf network broadcast
interface Serial1/0 // R2, R3
ip ospf network broadcast
| 網路類型 | Hello 發送方式 | 鄰居發現 | 適用場景 |
|---|---|---|---|
| NBMA | 單播至手動指定 neighbor | 需靜態配置 | 全網狀 PVC、節省頻寬 |
| Broadcast | 多播 224.0.0.5 | 自動 | 支援多播的 NBMA(如 FR、ATM) |
| Point-to-Multipoint | 單播至動態學習的鄰居 | 自動 | 非全網狀 PVC、Hub-Spoke |
設為 broadcast 後,R1 子介面會將 Hello 多播至 DLCI 102、103;R2/R3 實體介面同樣多播,雙方皆能收到 Hello 並建立鄰居,進而交換 Loopback 路由,實現全網互通。
show ip ospf neighbor 確認 R1-R2、R1-R3、R2-R3 均為 FULL/ - 狀態。show ip route ospf 檢視 192.168.1.0/24、192.168.2.0/24、192.168.3.0/24 均出現。ip ospf network point-to-multipoint 並配合 frame-relay map ... broadcast。ip ospf authentication 保護路由交換。一行 ip ospf network broadcast 解決幀中繼 OSPF 不通難題,關鍵在於理解 NBMA 與多播行為的差異。