
我正在使用以下拓撲配置網路:
我需要做的是提供 Anycast 可用且 OSPF 宣布的服務。我設法在路由器上設定 OSPF。我還在兩台伺服器中建立了一個具有相同 IP 的虛擬介面。但現在我不知道如何在伺服器上配置 Bird,以便客戶端可以透過 Anycast IP 存取它們。我正在 GNS3 上模擬網路。
答案1
在伺服器上,您可以嘗試使用此配置:
router id x.x.x.x;
protocol device {
}
protocol kernel {
metric 64; # Use explicit kernel route metric to avoid collisions
# with non-BIRD routes in the kernel routing table
import none;
export all; # Actually insert routes into the kernel routing table
}
protocol static {
import all;
}
protocol ospf myOSPF {
import all;
export all;
area 0 {
interface "Your dummy interface name" {
cost 5;
type broadcast;
hello 5; retransmit 2; wait 10; dead 20;
authentication cryptographic; password "XXXX";
};
};
}
我希望這有幫助!