How to bind a new IP address into haproxy.cfg?

Hi Guys,

I have a new server and new ip address that I’d like to configure with HAproxy, here is what it looks like in haproxy.cfg:

frontend my-prod-URL-https
bind 10.23.12.15:443
mode tcp
no log
default_backend prod-myserver01_backend_tcp_ssl

backend prod-myserver01_backend_tcp_ssl
mode tcp
no log
server myserver01.test.local 172.26.12.23:443 check #ssl verify none cookie A

Is this the right configuration?
This IP address 10.23.12.15 is available and never assigned to any host but I still can’t ping it after configured (bind 10.23.12.15:443) it in the HAproxy.cfg. Did I miss any step(s) before binded this ip address?
Both subnets 10.23.12.0/24 and 172.26.12.0/24 are routed with OSPF. Any hosts in these 2 subnets are reachable.

Thanks.

Haproxy does not respond to pings, your kernel does, IF you actually configured the IP address on your OS/kernel.

So, did you configure the IP address 10.23.12.15 on your operating system?

Thanks Lukastribus. I didn’t a quick check, I have not configured IP 10.23.12.15 on the OS. It’s Redhat, what is quick command to add 10.23.12.15 into it? This box’s NIC is having 10.23.12.5.