
Ich konfiguriere ein Netzwerk mit der folgenden Topologie:
Ich muss einen Dienst bereitstellen, der über Anycast verfügbar ist und über OSPF angekündigt wird. Ich habe es geschafft, OSPF auf den Routern zu konfigurieren. Außerdem habe ich auf beiden Servern eine Dummy-Schnittstelle mit derselben IP erstellt. Jetzt bin ich mir aber nicht sicher, wie ich Bird auf den Servern konfigurieren soll, damit der Client über die Anycast-IP darauf zugreifen kann. Ich simuliere das Netzwerk auf GNS3.
Antwort1
Auf den Servern könnten Sie versuchen, diese Konfiguration zu verwenden:
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";
};
};
}
Ich hoffe das hilft!