我有一个网站,使用eth0,这是一个饱和的千兆位线路,提供stream媒体。 我想在eth1上设置一个单独的“高级”行,使特殊用户能够“优先访问”网站。 我有第二个100mbit的专用线路。
基本上,当有人使用media.domain.com时,它会去eth0,当有人使用premium.domain.com它会使用eth1
我使用lighttpd
不能弄明白….
这是我现在所拥有的,但所有的stream量仍然通过eth0
[root@localhost ~]# ip route show 61.43.52.242 dev eth1 scope link 61.43.52.128/25 dev eth1 proto kernel scope link src PREMIUM_IP metric 1 75.12.33.0/24 dev eth0 proto kernel scope link src REGULAR_IP metric 1 169.254.0.0/16 dev eth0 scope link metric 1002 default via 1.3.3.7 dev eth0 proto static
您需要设置路由,以确保数据包从相同的接口返回。 这不是默认情况下发生的。