Help with OSPF & Proxmox clusters

I was trying to get a fully routed network for my 3 node cluster. Each one has two NICs that are bonded and pass all traffic for the time being. They are 1Gbps links and due to my lack of a 2.5 Gbps switch I opted to go with direct connections at 2.5 Gbps. Networking is not my strong suit so after looking for a few guides I found the one below. I’ve also included some output that I think can help diagnose the issue.

It is mostly working. I can ping all hosts from Node 2 and 3 but Node 1 can only ping Node 3. I have validated this is not a firewall issue. I validated the configs from FRR. Any help or advise is greatly appreciated!

This is the guide I followed:

### Node1 (problem) ###

ip route
default via 10.0.5.1 dev vmbr0 proto kernel onlink 
10.0.5.0/24 dev vmbr0 proto kernel scope link src 10.0.5.2 
172.17.0.0/30 dev enx00242788ac09 proto kernel scope link src 172.17.0.1 
172.17.0.4/30 dev enx00242788ac16 proto kernel scope link src 172.17.0.5 
172.17.0.253 nhid 24 via 172.17.0.4 dev enx00242788ac16 proto ospf metric 20 
172.17.0.254 nhid 26 via 172.17.0.2 dev enx00242788ac09 proto ospf metric 20

vtysh -c "show ip ospf neighbor"
Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
0.0.0.3           1 Full/DR         1h00m07s          37.791s 172.17.0.4      enx00242788ac16:172.17.0.5           0     0     0
0.0.0.2           1 Full/DR         1h00m01s          38.235s 172.17.0.2      enx00242788ac09:172.17.0.1           0     0     0

vtysh -c "show ip route"
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
       f - OpenFabric,
       > - selected route, * - FIB route, q - queued, r - rejected, b - backup
       t - trapped, o - offload failure

C>* 10.0.5.0/24 is directly connected, vmbr0, 01:01:10
O   172.17.0.0/30 [110/40] is directly connected, enx00242788ac09, weight 1, 01:01:13
C>* 172.17.0.0/30 is directly connected, enx00242788ac09, 01:01:13
O   172.17.0.4/30 [110/40] is directly connected, enx00242788ac16, weight 1, 01:01:13
C>* 172.17.0.4/30 is directly connected, enx00242788ac16, 01:01:13
O>* 172.17.0.253/32 [110/40] via 172.17.0.4, enx00242788ac16, weight 1, 01:00:24
O>* 172.17.0.254/32 [110/40] via 172.17.0.2, enx00242788ac09, weight 1, 01:00:23
O   172.17.0.255/32 [110/0] is directly connected, lo, weight 1, 01:01:13
C>* 172.17.0.255/32 is directly connected, lo, 01:01:13
### Node 2 (Functional) ###

ip route
default via 10.0.5.1 dev vmbr0 proto kernel onlink 
10.0.5.0/24 dev vmbr0 proto kernel scope link src 10.0.5.3 
172.17.0.0/30 dev enx00242788ac2b proto kernel scope link src 172.17.0.3 
172.17.0.0/30 dev enx00242788bcd3 proto kernel scope link src 172.17.0.2 
172.17.0.4/30 nhid 22 via 172.17.0.1 dev enx00242788bcd3 proto ospf metric 20 
172.17.0.253 nhid 22 via 172.17.0.1 dev enx00242788bcd3 proto ospf metric 20 
172.17.0.255 nhid 22 via 172.17.0.1 dev enx00242788bcd3 proto ospf metric 20

vtysh -c "show ip ospf neighbor"
Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
0.0.0.1           1 Full/Backup     1h01m15s          39.921s 172.17.0.1      enx00242788bcd3:172.17.0.2           0     0     0

vtysh -c "show ip route"
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
       f - OpenFabric,
       > - selected route, * - FIB route, q - queued, r - rejected, b - backup
       t - trapped, o - offload failure

C>* 10.0.5.0/24 is directly connected, vmbr0, 05:22:11
O   172.17.0.0/30 [110/40] is directly connected, enx00242788bcd3, weight 1, 01:02:38
C * 172.17.0.0/30 is directly connected, enx00242788bcd3, 01:03:23
C>* 172.17.0.0/30 is directly connected, enx00242788bcd3, 05:22:14
O>* 172.17.0.4/30 [110/80] via 172.17.0.1, enx00242788bcd3, weight 1, 01:02:33
O>* 172.17.0.253/32 [110/80] via 172.17.0.1, enx00242788bcd3, weight 1, 01:02:33
O   172.17.0.254/32 [110/0] is directly connected, lo, weight 1, 01:25:02
C>* 172.17.0.254/32 is directly connected, lo, 05:22:14
O>* 172.17.0.255/32 [110/40] via 172.17.0.1, enx00242788bcd3, weight 1, 01:02:
### Node3 (Functional) ###

ip route
default via 10.0.5.1 dev vmbr0 proto kernel onlink 
10.0.5.0/24 dev vmbr0 proto kernel scope link src 10.0.5.4 
172.17.0.0/30 nhid 24 via 172.17.0.5 dev enx00242788ac29 proto ospf metric 20 
172.17.0.4/30 dev enx00242788ac29 proto kernel scope link src 172.17.0.4 
172.17.0.4/30 dev enx00242788ac32 proto kernel scope link src 172.17.0.6 
172.17.0.254 nhid 24 via 172.17.0.5 dev enx00242788ac29 proto ospf metric 20 
172.17.0.255 nhid 24 via 172.17.0.5 dev enx00242788ac29 proto ospf metric 20

vtysh -c "show ip ospf neighbor"
Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
0.0.0.1           1 Full/Backup     1h06m43s          32.653s 172.17.0.5      enx00242788ac29:172.17.0.4           0     0     0

vtysh -c "show ip route"
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
       f - OpenFabric,
       > - selected route, * - FIB route, q - queued, r - rejected, b - backup
       t - trapped, o - offload failure

C>* 10.0.5.0/24 is directly connected, vmbr0, 05:27:00
O   172.17.0.0/30 [110/40] is directly connected, enx00242788bcd3, weight 1, 01:07:27
C * 172.17.0.0/30 is directly connected, enx00242788bcd3, 01:08:12
C>* 172.17.0.0/30 is directly connected, enx00242788bcd3, 05:27:03
O>* 172.17.0.4/30 [110/80] via 172.17.0.1, enx00242788bcd3, weight 1, 01:07:22
O>* 172.17.0.253/32 [110/80] via 172.17.0.1, enx00242788bcd3, weight 1, 01:07:22
O   172.17.0.254/32 [110/0] is directly connected, lo, weight 1, 01:29:51
C>* 172.17.0.254/32 is directly connected, lo, 05:27:03
O>* 172.17.0.255/32 [110/40] via 172.17.0.1, enx00242788bcd3, weight 1, 01:07:22

So from Node1 you cannot ping Node 3 right.

Can you post a:

From Node1
ip route get (ip you are trying to ping)

From Node3
ip route get (ip from Node A as src from the previous ip route get in Node1)

Node 1 can ping Node 3. The problem is i cannot ping Node 2 from Node 1.
This is output of Node 1’s route to Node 2

 ip route get 172.17.0.254
172.17.0.254 via 172.17.0.2 dev enx00242788ac09 src 172.17.0.1 uid 0 
    cache 

This is output of Node 2’s route to Node 1

ip route get 172.17.0.255
172.17.0.255 via 172.17.0.1 dev enx00242788bcd3 src 172.17.0.2 uid 0

All of the outputs make sense to me and look like it should be working but this is still the result.
ping from Node 1 to Node 2

ping 172.17.0.254
PING 172.17.0.254 (172.17.0.254) 56(84) bytes of data.
^C
--- 172.17.0.254 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3091ms

and ping from Node 2 to Node 1

ping 172.17.0.255
PING 172.17.0.255 (172.17.0.255) 56(84) bytes of data.
64 bytes from 172.17.0.255: icmp_seq=1 ttl=64 time=0.962 ms
64 bytes from 172.17.0.255: icmp_seq=2 ttl=64 time=0.664 ms
64 bytes from 172.17.0.255: icmp_seq=3 ttl=64 time=0.934 ms
64 bytes from 172.17.0.255: icmp_seq=4 ttl=64 time=0.847 ms
64 bytes from 172.17.0.255: icmp_seq=5 ttl=64 time=0.915 ms
64 bytes from 172.17.0.255: icmp_seq=6 ttl=64 time=0.647 ms
^C64 bytes from 172.17.0.255: icmp_seq=7 ttl=64 time=0.527 ms
^C
--- 172.17.0.255 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6064ms
rtt min/avg/max/mdev = 0.527/0.785/0.962/0.157 ms

I am missing something. Why are you trying to create a routed network (ISO network layer 3) between your nodes? These should live on the same local network (layer 2) and simply talk directly to each other.
Get all the nodes into their own network so that they can talk to each other. E.g. 172.17.17.0/24.
Assing each node its own IP address 172.17.17.11, 172.17.17.12, 172.17.17.13, …
The routing table will be simple and look sth like this:

[email protected]$ ip route
default via 10.0.5.1 dev vmbr0 proto kernel onlink 
172.17.17.0/24 dev enx00242788ac09 proto kernel scope link src 172.17.17.11

done.

No need for routing, no need for OSPF (dynamic routing - why would these routes ever change?)

There is several reasons why you would want to create a routed network between the nodes. Aside from wanting to learn new things there is a benefit to using higher speed direct links. I mention in my original post that I don’t have a 2.5Gbps capable switch. These can be used for cluster communication or cephs and allowing for fault tolerance should one of the NIC’s go down. Wendell made a video on the concept and there are multiple posts on the Proxmox forums where users are trying to accomplish similar things. Check out the video “What the NUC Kind of Cluster is This???” if you’d like a more convincing pitch.

1 Like