1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

Force the router-id on all bgpd instances to make the expected output

predictable.
This commit is contained in:
claudio 2023-10-13 07:55:57 +00:00
parent 383b68ad89
commit 08626ad373
5 changed files with 26 additions and 22 deletions

View File

@ -1,4 +1,5 @@
AS 1
router-id 192.0.2.11
listen on 192.0.2.11
neighbor 192.0.2.2 {

View File

@ -1,4 +1,5 @@
AS 2
router-id 192.0.2.21
listen on 192.0.2.21
socket "/var/run/bgpd.sock.12_2"

View File

@ -1,4 +1,5 @@
AS 3
router-id 192.0.2.31
listen on 192.0.2.31
socket "/var/run/bgpd.sock.12_3"

View File

@ -1,4 +1,5 @@
AS 4
router-id 192.0.2.41
listen on 192.0.2.41
socket "/var/run/bgpd.sock.12_4"

View File

@ -1,47 +1,47 @@
BGP routing table entry for 2.0.3.0/24
2
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.41)
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21)
Origin IGP, metric 0, localpref 100, weight 0, ovs valid, avs unknown, external, valid, best
Ext. Communities: ovs valid
BGP routing table entry for 2.0.4.0/24
2
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.41)
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21)
Origin IGP, metric 0, localpref 1, weight 0, ovs invalid, avs unknown, external, valid, best
Communities: 65520:0 65520:14 65524:2
Ext. Communities: ovs invalid rt 65524:2
BGP routing table entry for 2.0.5.0/24
2
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.41)
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21)
Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best
Ext. Communities: ovs not-found
BGP routing table entry for 2.0.6.0/24
2 2 2 2 2 2 2 2 2
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.41)
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21)
Origin IGP, metric 0, localpref 1, weight 0, ovs not-found, avs unknown, external, valid, best
Communities: 65520:0 65520:1 65524:2
Ext. Communities: ovs not-found rt 65524:2
BGP routing table entry for 2.0.7.0/24
2
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.41)
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21)
Origin IGP, metric 0, localpref 1, weight 0, ovs not-found, avs unknown, external, valid, best
Communities: 65520:0 65520:3 65524:2
Ext. Communities: ovs not-found rt 65524:2
BGP routing table entry for 2.0.9.0/24
2
Nexthop 192.0.2.77 (via 192.0.2.77) Neighbor AS2_1 client (192.0.2.41)
Nexthop 192.0.2.77 (via 192.0.2.77) Neighbor AS2_1 client (192.0.2.21)
Origin IGP, metric 0, localpref 1, weight 0, ovs not-found, avs unknown, external, valid, best
Communities: 65520:0 65520:5 65524:2
Ext. Communities: ovs not-found rt 65524:2
BGP routing table entry for 2.0.11.0/24
2
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.41)
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21)
Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best
Communities: 65530:4 BLACKHOLE
Ext. Communities: ovs not-found
@ -49,7 +49,7 @@ BGP routing table entry for 2.0.11.0/24
BGP routing table entry for 2.0.12.0/24
2
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.41)
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21)
Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best
Communities: 65530:4 65534:0
Ext. Communities: ovs not-found
@ -57,7 +57,7 @@ BGP routing table entry for 2.0.12.0/24
BGP routing table entry for 2.0.13.0/24
2
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.41)
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21)
Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best
Communities: 65530:4
Ext. Communities: ovs not-found
@ -65,48 +65,48 @@ BGP routing table entry for 2.0.13.0/24
BGP routing table entry for 2.0.14.0/25
2
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.41)
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21)
Origin IGP, metric 0, localpref 1, weight 0, ovs not-found, avs unknown, external, valid, best
Communities: 65520:0 65520:13 65524:2
Ext. Communities: ovs not-found rt 65524:2
BGP routing table entry for 2.0.15.0/24
2
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.41)
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21)
Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best
Ext. Communities: ovs not-found
BGP routing table entry for 3.0.3.0/24
3
Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.41)
Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.31)
Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best
Communities: 65507:999
Ext. Communities: ovs not-found
BGP routing table entry for 3.0.4.0/24
3
Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.41)
Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.31)
Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best
Ext. Communities: ovs not-found
Large Communities: 999:65508:999
BGP routing table entry for 3.0.5.0/24
3
Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.41)
Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.31)
Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best
Ext. Communities: ovs not-found
Large Communities: 999:0:999
BGP routing table entry for 3.0.6.0/24
3
Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.41)
Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.31)
Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best
Communities: 0:1
Ext. Communities: ovs not-found
BGP routing table entry for 3.0.7.0/24
3
Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.41)
Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.31)
Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best
Communities: 0:999
Ext. Communities: ovs not-found
@ -114,42 +114,42 @@ BGP routing table entry for 3.0.7.0/24
BGP routing table entry for 3.0.8.0/24
3
Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.41)
Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.31)
Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best
Communities: 65521:1
Ext. Communities: ovs not-found
BGP routing table entry for 3.0.9.0/24
3
Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.41)
Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.31)
Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best
Ext. Communities: ovs not-found
Large Communities: 999:65522:1
BGP routing table entry for 3.0.10.0/24
3
Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.41)
Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.31)
Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best
Communities: 65523:1
Ext. Communities: ovs not-found
BGP routing table entry for 3.0.11.0/24
3
Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.41)
Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.31)
Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best
Communities: 65521:65521 65522:65522 65523:65523
Ext. Communities: ovs not-found
BGP routing table entry for 22.0.10.0/24
2
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.41)
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21)
Origin IGP, metric 0, localpref 1, weight 0, ovs not-found, avs unknown, external, valid, best
Communities: 65520:0 65520:12 65524:2
Ext. Communities: ovs not-found rt 65524:2
BGP routing table entry for 192.168.8.0/24
2
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.41)
Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21)
Origin IGP, metric 0, localpref 1, weight 0, ovs not-found, avs unknown, external, valid, best
Communities: 65520:0 65520:2 65524:2
Ext. Communities: ovs not-found rt 65524:2