I have a VPS with 4 IP addresses. I am changing the IP address of
eth0 on daily basis.
eht0:1 has its own IP address.
eth0 (192.168.1.3, 192.168.1.4, 192.168.1.5) eth0:1 (192.168.2.1)
I have my custom written Python scripts those are continuously uploading data to remote database and other processes. I want to know which interface my scripts will use?
Because I am changing the
eth0 IP address daily, I want that my script will use only
eth0. And I want to use
eth0:1 for ping and http apache server.