
次のトポロジでネットワークを構成しています。
私がする必要があるのは、Anycast で利用可能で、OSPF によってアナウンスされるサービスを提供することです。ルーターで OSPF を構成することができました。また、両方のサーバーで同じ IP を持つダミー インターフェイスを作成しました。しかし、クライアントが Anycast IP 経由でアクセスできるようにサーバーで Bird を構成する方法がわかりません。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";
};
};
}
これが役に立つことを願っています!