Bind outgoing traffic to eth0 instead of eth0:1

懵懂的女人 提交于 2019-12-04 08:52:32

I think you'll have to play with the route command to tell the system how to route the packets. Something like :

route add -net APACHE_VHOST_IP netmask 255.255.255.0 dev eth0:1

to force the packet in destination of APACHE_VHOST_IP to use the eth0:1 interface.

And

route add -net MYSQL_SERVER_IP netmask 255.255.255.0 dev eth0

to force the packet in destination of MYSQL_SERVER_IP to use the eth0 interface.

ScurvyJim

Add this to /etc/sysconfig/network

GATEWAYDEV=eth0

Forces default gateway to eth0 interface

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!