mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 18:42:23 +00:00
tests: Make ospf convergence predictable by setting if priority
Added OSPF priorities to force a predictable DR/Backup router selection Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
This commit is contained in:
parent
a3014b9ac7
commit
3636b6c158
@ -4,17 +4,16 @@ debug ospf6 neighbor
|
||||
!
|
||||
interface r1-lo
|
||||
!
|
||||
interface r1-eth0
|
||||
!
|
||||
interface r1-eth1
|
||||
ipv6 ospf6 priority 10
|
||||
!
|
||||
interface r1-eth2
|
||||
ipv6 ospf6 priority 10
|
||||
!
|
||||
router ospf6
|
||||
ospf6 router-id 192.168.0.1
|
||||
log-adjacency-changes
|
||||
interface r1-lo area 0.0.0.0
|
||||
interface r1-eth0 area 0.0.0.0
|
||||
interface r1-eth1 area 0.0.0.0
|
||||
interface r1-eth2 area 0.0.0.0
|
||||
!
|
||||
|
@ -2,14 +2,14 @@
|
||||
"neighbors":{
|
||||
"192.168.0.2":[
|
||||
{
|
||||
"priority":1,
|
||||
"state":"Full\/DR"
|
||||
"priority":5,
|
||||
"state":"Full\/Backup"
|
||||
}
|
||||
],
|
||||
"192.168.0.3":[
|
||||
{
|
||||
"priority":1,
|
||||
"state":"Full\/DR"
|
||||
"priority":5,
|
||||
"state":"Full\/Backup"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -3,6 +3,16 @@ log file ospfd.log
|
||||
debug ospf event
|
||||
debug ospf zebra
|
||||
!
|
||||
interface r1-eth1
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 10
|
||||
!
|
||||
interface r1-eth2
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 10
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 192.168.0.1
|
||||
log-adjacency-changes
|
||||
@ -13,11 +23,4 @@ router ospf
|
||||
refresh timer 10
|
||||
!
|
||||
line vty
|
||||
interface r1-eth1
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
!
|
||||
interface r1-eth2
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
!
|
||||
|
@ -4,17 +4,16 @@ debug ospf6 neighbor
|
||||
!
|
||||
interface r2-lo
|
||||
!
|
||||
interface r2-eth0
|
||||
!
|
||||
interface r2-eth1
|
||||
ipv6 ospf6 priority 5
|
||||
!
|
||||
interface r2-eth2
|
||||
ipv6 ospf6 priority 10
|
||||
!
|
||||
router ospf6
|
||||
ospf6 router-id 192.168.0.2
|
||||
log-adjacency-changes
|
||||
interface r2-lo area 0.0.0.0
|
||||
interface r2-eth0 area 0.0.0.0
|
||||
interface r2-eth1 area 0.0.0.0
|
||||
interface r2-eth2 area 0.0.0.0
|
||||
!
|
||||
|
@ -2,14 +2,14 @@
|
||||
"neighbors":{
|
||||
"192.168.0.1":[
|
||||
{
|
||||
"priority":1,
|
||||
"state":"Full\/Backup"
|
||||
"priority":10,
|
||||
"state":"Full\/DR"
|
||||
}
|
||||
],
|
||||
"192.168.0.3":[
|
||||
{
|
||||
"priority":1,
|
||||
"state":"Full\/DR"
|
||||
"priority":5,
|
||||
"state":"Full\/Backup"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -3,6 +3,16 @@ log file ospfd.log
|
||||
debug ospf event
|
||||
debug ospf zebra
|
||||
!
|
||||
int r2-eth1
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 5
|
||||
!
|
||||
int r2-eth2
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 10
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 192.168.0.2
|
||||
log-adjacency-changes
|
||||
@ -12,12 +22,5 @@ router ospf
|
||||
timers throttle lsa all 0
|
||||
refresh timer 10
|
||||
!
|
||||
int r2-eth1
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
int r2-eth2
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
!
|
||||
line vty
|
||||
!
|
||||
|
@ -4,17 +4,16 @@ debug ospf6 neighbor
|
||||
!
|
||||
interface r3-lo
|
||||
!
|
||||
interface r3-eth0
|
||||
!
|
||||
interface r3-eth1
|
||||
ipv6 ospf6 priority 5
|
||||
!
|
||||
interface r3-eth2
|
||||
ipv6 ospf6 priority 5
|
||||
!
|
||||
router ospf6
|
||||
ospf6 router-id 192.168.0.3
|
||||
log-adjacency-changes
|
||||
interface r3-lo area 0.0.0.0
|
||||
interface r3-eth0 area 0.0.0.0
|
||||
interface r3-eth1 area 0.0.0.0
|
||||
interface r3-eth2 area 0.0.0.0
|
||||
!
|
||||
|
@ -2,14 +2,14 @@
|
||||
"neighbors":{
|
||||
"192.168.0.1":[
|
||||
{
|
||||
"priority":1,
|
||||
"state":"Full\/Backup"
|
||||
"priority":10,
|
||||
"state":"Full\/DR"
|
||||
}
|
||||
],
|
||||
"192.168.0.2":[
|
||||
{
|
||||
"priority":1,
|
||||
"state":"Full\/Backup"
|
||||
"priority":10,
|
||||
"state":"Full\/DR"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -3,6 +3,16 @@ log file ospfd.log
|
||||
debug ospf event
|
||||
debug ospf zebra
|
||||
!
|
||||
int r3-eth1
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 5
|
||||
!
|
||||
int r3-eth2
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 5
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 192.168.0.3
|
||||
log-adjacency-changes
|
||||
@ -12,12 +22,5 @@ router ospf
|
||||
timers throttle lsa all 0
|
||||
refresh timer 10
|
||||
!
|
||||
int r3-eth1
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
int r3-eth2
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
!
|
||||
line vty
|
||||
!
|
||||
|
@ -8,4 +8,5 @@ router ospf
|
||||
int r1-eth0
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 1
|
||||
!
|
||||
|
@ -2,7 +2,7 @@
|
||||
"neighbors":{
|
||||
"2.2.2.2":[
|
||||
{
|
||||
"priority":1,
|
||||
"priority":2,
|
||||
"state":"Full\/DR",
|
||||
"address":"10.0.1.2",
|
||||
"ifaceName":"r1-eth0:10.0.1.1"
|
||||
|
@ -8,8 +8,10 @@ router ospf
|
||||
int r2-eth0
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 2
|
||||
!
|
||||
int r2-eth1
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 1
|
||||
!
|
||||
|
@ -5,15 +5,12 @@
|
||||
"priority":1,
|
||||
"state":"Full\/Backup",
|
||||
"address":"10.0.1.1",
|
||||
"ifaceName":"r2-eth0:10.0.1.2",
|
||||
"retransmitCounter":0,
|
||||
"requestCounter":0,
|
||||
"dbSummaryCounter":0
|
||||
"ifaceName":"r2-eth0:10.0.1.2"
|
||||
}
|
||||
],
|
||||
"3.3.3.3":[
|
||||
{
|
||||
"priority":1,
|
||||
"priority":2,
|
||||
"state":"Full\/Backup",
|
||||
"address":"10.0.2.3",
|
||||
"ifaceName":"r2-eth1:10.0.2.2"
|
||||
@ -21,7 +18,7 @@
|
||||
],
|
||||
"4.4.4.4":[
|
||||
{
|
||||
"priority":1,
|
||||
"priority":3,
|
||||
"state":"Full\/DR",
|
||||
"address":"10.0.2.4",
|
||||
"ifaceName":"r2-eth1:10.0.2.2"
|
||||
|
@ -9,4 +9,5 @@ router ospf
|
||||
int r3-eth0
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 2
|
||||
!
|
||||
|
@ -10,7 +10,7 @@
|
||||
],
|
||||
"4.4.4.4":[
|
||||
{
|
||||
"priority":1,
|
||||
"priority":3,
|
||||
"state":"Full\/DR",
|
||||
"address":"10.0.2.4",
|
||||
"ifaceName":"r3-eth0:10.0.2.3"
|
||||
|
@ -8,4 +8,5 @@ router ospf
|
||||
int r4-eth0
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 3
|
||||
!
|
||||
|
@ -11,7 +11,7 @@
|
||||
],
|
||||
"3.3.3.3":[
|
||||
{
|
||||
"priority":1,
|
||||
"priority":2,
|
||||
"state":"Full\/Backup",
|
||||
"address":"10.0.2.3",
|
||||
"ifaceName":"r4-eth0:10.0.2.4"
|
||||
|
@ -8,4 +8,5 @@ router ospf
|
||||
int r1-eth0
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 1
|
||||
!
|
||||
|
@ -2,7 +2,7 @@
|
||||
"neighbors":{
|
||||
"2.2.2.2":[
|
||||
{
|
||||
"priority":1,
|
||||
"priority":2,
|
||||
"state":"Full\/DR",
|
||||
"address":"10.0.1.2",
|
||||
"ifaceName":"r1-eth0:10.0.1.1"
|
||||
|
@ -8,8 +8,10 @@ router ospf
|
||||
int r2-eth0
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 2
|
||||
!
|
||||
int r2-eth1
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 1
|
||||
!
|
||||
|
@ -5,15 +5,12 @@
|
||||
"priority":1,
|
||||
"state":"Full\/Backup",
|
||||
"address":"10.0.1.1",
|
||||
"ifaceName":"r2-eth0:10.0.1.2",
|
||||
"retransmitCounter":0,
|
||||
"requestCounter":0,
|
||||
"dbSummaryCounter":0
|
||||
"ifaceName":"r2-eth0:10.0.1.2"
|
||||
}
|
||||
],
|
||||
"3.3.3.3":[
|
||||
{
|
||||
"priority":1,
|
||||
"priority":2,
|
||||
"state":"Full\/Backup",
|
||||
"address":"10.0.2.3",
|
||||
"ifaceName":"r2-eth1:10.0.2.2"
|
||||
@ -21,7 +18,7 @@
|
||||
],
|
||||
"4.4.4.4":[
|
||||
{
|
||||
"priority":1,
|
||||
"priority":3,
|
||||
"state":"Full\/DR",
|
||||
"address":"10.0.2.4",
|
||||
"ifaceName":"r2-eth1:10.0.2.2"
|
||||
|
@ -9,4 +9,5 @@ router ospf
|
||||
int r3-eth0
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 2
|
||||
!
|
||||
|
@ -10,7 +10,7 @@
|
||||
],
|
||||
"4.4.4.4":[
|
||||
{
|
||||
"priority":1,
|
||||
"priority":3,
|
||||
"state":"Full\/DR",
|
||||
"address":"10.0.2.4",
|
||||
"ifaceName":"r3-eth0:10.0.2.3"
|
||||
|
@ -8,4 +8,5 @@ router ospf
|
||||
int r4-eth0
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 3
|
||||
!
|
||||
|
@ -11,7 +11,7 @@
|
||||
],
|
||||
"3.3.3.3":[
|
||||
{
|
||||
"priority":1,
|
||||
"priority":2,
|
||||
"state":"Full\/Backup",
|
||||
"address":"10.0.2.3",
|
||||
"ifaceName":"r4-eth0:10.0.2.4"
|
||||
|
@ -8,8 +8,10 @@ router ospf
|
||||
int r1-eth1
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 1
|
||||
!
|
||||
int r1-eth2
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 1
|
||||
!
|
||||
|
@ -4,8 +4,8 @@
|
||||
{
|
||||
"dbSummaryCounter": 0,
|
||||
"retransmitCounter": 0,
|
||||
"priority": 1,
|
||||
"state": "Full/DR",
|
||||
"priority": 2,
|
||||
"state": "Full\/DR",
|
||||
"address": "10.0.1.2",
|
||||
"ifaceName": "r1-eth1:10.0.1.1",
|
||||
"requestCounter": 0
|
||||
@ -15,8 +15,8 @@
|
||||
{
|
||||
"dbSummaryCounter": 0,
|
||||
"retransmitCounter": 0,
|
||||
"priority": 1,
|
||||
"state": "Full/DR",
|
||||
"priority": 2,
|
||||
"state": "Full\/DR",
|
||||
"address": "10.0.2.3",
|
||||
"ifaceName": "r1-eth2:10.0.2.1",
|
||||
"requestCounter": 0
|
||||
|
@ -8,8 +8,10 @@ router ospf
|
||||
int r2-eth1
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 2
|
||||
!
|
||||
int r2-eth2
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 1
|
||||
!
|
||||
|
@ -3,7 +3,7 @@
|
||||
"1.1.1.1": [
|
||||
{
|
||||
"priority":1,
|
||||
"state":"Full/Backup",
|
||||
"state":"Full\/Backup",
|
||||
"address":"10.0.1.1",
|
||||
"ifaceName":"r2-eth1:10.0.1.2",
|
||||
"retransmitCounter":0,
|
||||
@ -13,8 +13,8 @@
|
||||
],
|
||||
"3.3.3.3": [
|
||||
{
|
||||
"priority":1,
|
||||
"state":"Full/DR",
|
||||
"priority":2,
|
||||
"state":"Full\/DR",
|
||||
"address":"10.0.3.3",
|
||||
"ifaceName":"r2-eth2:10.0.3.2",
|
||||
"retransmitCounter":0,
|
||||
|
@ -8,8 +8,10 @@ router ospf
|
||||
int r3-eth1
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 2
|
||||
!
|
||||
int r3-eth2
|
||||
ip ospf hello-interval 2
|
||||
ip ospf dead-interval 10
|
||||
ip ospf priority 2
|
||||
!
|
||||
|
@ -3,7 +3,7 @@
|
||||
"1.1.1.1": [
|
||||
{
|
||||
"priority":1,
|
||||
"state":"Full/Backup",
|
||||
"state":"Full\/Backup",
|
||||
"address":"10.0.2.1",
|
||||
"ifaceName":"r3-eth1:10.0.2.3",
|
||||
"retransmitCounter":0,
|
||||
@ -14,7 +14,7 @@
|
||||
"2.2.2.2": [
|
||||
{
|
||||
"priority":1,
|
||||
"state":"Full/Backup",
|
||||
"state":"Full\/Backup",
|
||||
"address":"10.0.3.2",
|
||||
"ifaceName":"r3-eth2:10.0.3.3",
|
||||
"retransmitCounter":0,
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user