In neo4j 5.19 3 node cluster ( core ) port 7687 and 7474 are not listening

I am having neo4j 5.19 enterprise edition installed on 3 servers and I am trying to create cluster but when I am using the parameter below the port 7687 and 7474 are not listening
dbms.cluster.discovery.endpoints=10.254.x.1:5000,10.254.x.2:5000,10.254.x.3:5000

when I comment the parameter dbms.cluster.discovery.endpoints=10.254.x.1:5000,10.254.x.2:5000,10.254.x.3:5000 the port start listening and I am able to use it as standalone

only we are able to see below error in bebug.log

[root@xxxxxxx neo4j]# tail -n 200 /var/log/neo4j/debug.log | grep -i failed
2024-05-30 10:32:47.171+0000 WARN [c.n.c.d.r.InternalRemotesResolver] Failed to resolve endpoints with LIST{endpoints:'[10.254.x.1:5000, 10.254.x.2:5000, 10.254.x.3:5000]'}

Also if we check neo4j service status it keeps on restarting discovery in loop

May 30 15:06:33 dna-awm1neojscore01.x neo4j[1056400]: 2024-05-30 15:06:33.092+0000 INFO Restarting discovery system after probable network partition
May 30 15:06:35 dna-awm1neojscore01.x neo4j[1056400]: 2024-05-30 15:06:35.128+0000 INFO Successfully restarted discovery system
May 30 15:07:38 dna-awm1neojscore01.fnb.co.za neo4j[1056400]: 2024-05-30 15:07:38.386+0000 INFO Restarting discovery system after probable network partition
May 30 15:07:39 dna-awm1neojscore01.x neo4j[1056400]: 2024-05-30 15:07:39.412+0000 INFO Successfully restarted discovery system
May 30 15:08:31 dna-awm1neojscore01.fnb.co.za neo4j[1056400]: 2024-05-30 15:08:31.450+0000 INFO Restarting discovery system after probable network partition