Results 1 to 2 of 2
Thread: Apache IP Address and NIC Messup
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Aug 2011
Apache IP Address and NIC Messup
Now when a client hits my apache webserver it goes to the application server to fetch data the problem is.. apache is using 4th IP address that is 192.168.100.5. I dont want apache to use 192.168.100.5 IP Address to connect to the application server. I want apache to use 2nd IP Address 10.10.2.1 to connect to Applicaton server at the backend.. is it possible? How can i accomplish this ?
NIC1 - 10.10.1.1
NIC1 - 10.10.2.1 - (additional IP)
NIC2 - 172.16.0.1
NIC3 - 188.8.131.52
NIC4 - 192.168.100.5
App server IP
please let me know if there is a solution to change the IP Addresses of outgoing apache connection
This could be a network routing issue on the web server - when your Apache session tries to connect to the remote machine it follows the normal routing table. I'm assuming you have a subnet for each of the NICs, so you want to do a 'route add' for the subnet (probably 10.10.2.*) that goes off to through the right device (eth1 or whatever it's called). Something like this:
route add -net 10.10.2.0 netmask 255.255.255.0 dev eth1Linux user #126863 - see http://linuxcounter.net/