Ich muss/möchte nach mehreren Quagga-Schluckaufen von Quagga zu BIRD migrieren, nämlich, dass Quagga nach Updates in Stretch nicht mehr funktioniert.
BIRD ist auch flexibler und moderner.
Ich habe meine OSPF-BIND-Anycast-Konfiguration in Quagga und möchte den OSPF-Dienst auf ähnliche Weise auf BIRD einrichten.
Was tun?
Meine /etc/quagga/ospfd.conf
ist:
!
! Zebra configuration saved from vty
! 2011/03/22 21:17:11
!
hostname dns
password 8 xxxxxxx
enable password 8 xxxxxxx
log stdout
service password-encryption
!
!
!
interface dummy0
ip ospf cost 100
!
interface dummy1
ip ospf cost 500
!
interface dummy2
ip ospf cost 1000
!
interface dummy3
ip ospf cost 900
!
interface eth0
ip ospf authentication message-digest
ip ospf message-digest-key 5 md5 MySecretPassword
ip ospf cost 1000
!
interface eth1
ip ospf cost 1000
!
interface lo
!
router ospf
ospf router-id 1.1.1.1
auto-cost reference-bandwidth 10000
network 1.1.1.0/22 area 0.0.0.0
network 2.2.2.2/32 area 0.0.0.0
network 3.3.3.3/32 area 0.0.0.0
network 4.4.4.4/32 area 0.0.0.0
network 5.5.5.5/32 area 0.0.0.0
area 0 filter-list prefix AREA_1_OUT out
!
ip prefix-list AREA_1_OUT seq 5 permit 2.2.2.2/32
ip prefix-list AREA_1_OUT seq 10 permit 3.3.3.3/32
ip prefix-list AREA_1_OUT seq 15 permit 4.4.4.4/32
ip prefix-list AREA_1_OUT seq 20 permit 5.5.5.5/32
ip prefix-list AREA_1_OUT seq 25 deny any
!
line vty
!
Akzeptierte Antwort:
Nach der Lösung der hier beschriebenen Probleme der OSPF-md5-Verschlüsselung von Quagga zu BIRD und der OSPF-Routenkosten in BIRD ist der Rest der Migration relativ einfach.
Um einen gleichwertigen Dienst zu haben, sind die Schritte:
sudo dpkg --purge quagga
sudo apt-get install bird
sudo chkconfig bird6 off
sudo service bird6 stop
Dann muss das Setup in /etc/bird/bird.conf
erstellt werden als:
#
router id 1.1.1.1;
# The Device protocol is not a real routing protocol. It doesn't generate any
# routes and it only serves as a module for getting information about network
# interfaces from the kernel.
protocol device {
scan time 10;
}
protocol ospf {
tick 2;
rfc1583compat yes;
area 0.0.0.0 {
networks {
1.1.1.0/22;
};
stubnet 2.2.2.2/32 {
cost 100;
};
stubnet 3.3.3.3/32 {
cost 500;
};
stubnet 4.4.4.4/32 {
cost 1000;
};
stubnet 5.5.5.5/32 {
cost 900;
};
interface "eth0" {
cost 1000;
password "MySecretPassword" {
id 5;
};
authentication cryptographic;
};
interface "dummy0" {
stub;
};
interface "dummy1" {
stub;
};
interface "dummy2" {
stub;
};
interface "dummy3" {
stub;
};
};
}
Nach dem Ändern der Konfiguration:
sudo service bird restart
So prüfen Sie den Dienst auf dem lokalen Server:
sudo birdc
und dann
show status
und
show ospf
und
show ospf state
und
show ospf neighbors
P.S. Ich habe kein einfaches Dokument gefunden und nicht viel über die Koexistenz von Quagga und die Migration zu BIRD gefunden, und habe beschlossen, es hier zu dokumentieren.
Verwandte:Verwendung von Regex in if-Klausel in Bash?Ich habe nicht alle meine Quagga-Server/OSPF-Knoten auf einmal migriert, weil beide Konfigurationen ähnlich sind und miteinander kommunizieren (natürlich über das OSPF-Protokoll).