技术解析
ubuntu 系统,两个公网 ip 同一个物理网卡上
eth0 Link encap:Ethernet HWaddr 88:23:ac:07:5a:7c
inet addr:118.118.182.89 Bcast:118.118.182.255 Mask:255.255.254.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:122222 errors:0 dropped:0 overruns:0 frame:0
TX packets:122222 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:36394218 (30 MiB) TX bytes:42491387 (40 MiB)
eth0:0 Link encap:Ethernet HWaddr 88:23:ac:07:5a:7c
inet addr:118.118.182.90 Bcast:118.118.182.255 Mask:255.255.254.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
问题,如何让流量从哪个 ip 进就从哪个 ip 出?