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

**URL:** <https://discourse.haproxy.org/t/how-to-bind-a-new-ip-address-into-haproxy-cfg/5853>\
**Category:** Help!\
**Created:** [October 26, 2020, 4:04pm UTC](https://discourse.haproxy.org/t/how-to-bind-a-new-ip-address-into-haproxy-cfg/5853 "2020-10-26T16:04:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tinhnho](https://avatars.discourse-cdn.com/v4/letter/t/9de0a6/32.png) [@tinhnho](https://discourse.haproxy.org/u/tinhnho)\
**Post date:** [October 26, 2020, 4:04pm UTC](https://discourse.haproxy.org/t/how-to-bind-a-new-ip-address-into-haproxy-cfg/5853/1 "2020-10-26T16:04:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [October 26, 2020, 7:33pm UTC](https://discourse.haproxy.org/t/how-to-bind-a-new-ip-address-into-haproxy-cfg/5853/2 "2020-10-26T19:33:51Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![tinhnho](https://avatars.discourse-cdn.com/v4/letter/t/9de0a6/32.png) [@tinhnho](https://discourse.haproxy.org/u/tinhnho)\
**Post date:** [October 26, 2020, 7:56pm UTC](https://discourse.haproxy.org/t/how-to-bind-a-new-ip-address-into-haproxy-cfg/5853/3 "2020-10-26T19:56:32Z")

</div>

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.
