只有一个IP规则正在实施

我有一个有10g卡的服务器。 我需要configuration该服务器,以便对于特定的IP地址(172.16.2.180),stream量通过两个10g端口,第二个故障转移需要。

服务器只实现我为主机创build的最后一个networking规则。 我至less需要两个规则/端口来隔离stream量到10g,并进行故障转移。

我添加了以下规则,在每个规则之后,我testing了ping和“IP路由获取”

这是一个例子

[19:53:13] shock:~ # ip rule add from all to 172.16.2.180 lookup eth3 [19:53:22] shock:~ # ip rule add from all to 172.16.2.180 lookup eth4 [19:53:50] shock:~ # ip rule add from all to 172.16.2.180 lookup eth5 [19:54:18] shock:~ # ip rule add from all to 172.16.2.180 lookup eth6 [20:12:56] shock:~ # **ip route get 172.16.2.180 (Only Eth6 Active)** 172.16.2.180 dev eth6 src 172.16.2.178 [20:04:15] shock:/home/debug # **ip rule show** 0: from all lookup local 57: from all to 172.16.2.180 lookup eth6 (Only Rule Being Implemented) 58: from all to 172.16.2.180 lookup eth5 59: from all to 172.16.2.180 lookup eth4 60: from all to 172.16.2.180 lookup eth3 

平结果

 [19:55:30] shock:~ # *ping -I eth6 172.16.2.180* **(Only Ethernet Card Working)** PING 172.16.2.180 (172.16.2.180) from 172.16.2.178 eth6: 56(84) bytes of data. 64 bytes from 172.16.2.180: icmp_seq=1 ttl=64 time=3.29 ms [19:55:22] shock:~ # *ping -I eth5 172.16.2.180* PING 172.16.2.180 (172.16.2.180) from 172.16.2.179 eth5: 56(84) bytes of data. --- 172.16.2.180 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2499ms [20:10:15] shock:~ # *ping -I eth4 172.16.2.180* PING 172.16.2.180 (172.16.2.180) from 172.16.2.177 eth4: 56(84) bytes of data. --- 172.16.2.180 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2387ms [20:10:26] shock:~ # *ping -I eth3 172.16.2.180* PING 172.16.2.180 (172.16.2.180) from 172.16.2.175 eth3: 56(84) bytes of data. --- 172.16.2.180 ping statistics --- 6 packets transmitted, 0 received, 100% packet loss, time 5091ms 

我只用三个活动规则和两个活动规则的端口复制了这个结果,结果相同。 无论如何,我可以获得多个IP规则来实施?

使用vanillaconfiguration,这是不支持的,因为您违反了路由器上的ARP规则。 但是,大多数操作系统具有将两个物理端口组合在一起以作为一个逻辑端口的机制。 由于您标记了linux,下面是在RHEL上设置NIC绑定的链接。 它基本上创build了一个在物理接口之间共享的虚拟接口,并最终通过将其分配给虚拟接口来允许IP地址进行故障切换。

信道绑定接口

为了清楚起见,Windows Server 2012引入了组合,并且在Server 2012之前有NIC制造商的驱动程序。