Hi,
Currently I got a server with two NIC, and each Nic get a public IP which are in different subnet.
The reason why I'm using two IP is one IP is used for PHP website and another one is for Static files.
For now the configuration is like
And for igb0, ISP limits it to use 50M bandwidth.
For igb1, the limitation is 450M
For now both IPs are working well. And two websites are also working well.
But when I run
I found that it seems all outgoing traffic are via igb1. The incoming traffic is OK.
I understand that all outgoing traffic are using the default gateway of sever. So when user access server 1, the incoming traffic are going via igb0, but when server response, the traffic is going via igb1.
Is it possible to force sever to use igb0 to response the requests from sever 1 (igb0)?
Currently I got a server with two NIC, and each Nic get a public IP which are in different subnet.
The reason why I'm using two IP is one IP is used for PHP website and another one is for Static files.
For now the configuration is like
Code:
ifconfig_igb0="inet 1.1.10.10 netmask 255.255.255.240" #sever 1, this is for php web
ifconfig_igb1="inet 1.1.50.10 netmask 255.255.255.248" # server 2, this is for static files
defaultrouter="1.1.50.1" # this is the default gateway for IP 1.1.50.10
For igb1, the limitation is 450M
For now both IPs are working well. And two websites are also working well.
But when I run
systat -ifstat
.I found that it seems all outgoing traffic are via igb1. The incoming traffic is OK.
Code:
igb0 in 113.650 KB/s 183.298 KB/s 199.078 MB
out 0.000 KB/s 0.000 KB/s 163.117 KB
igb1 in 90.482 KB/s 327.727 KB/s 21.578 TB
out 5.749 MB/s 13.245 MB/s 424.747 TB
I understand that all outgoing traffic are using the default gateway of sever. So when user access server 1, the incoming traffic are going via igb0, but when server response, the traffic is going via igb1.
Is it possible to force sever to use igb0 to response the requests from sever 1 (igb0)?
Last edited by a moderator: