2

如何防止数据跨 NIC 流动

 2 years ago
source link: https://www.v2ex.com/t/806275
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  程序员

如何防止数据跨 NIC 流动

  sherlock1122 · 11 小时 20 分钟前 · 407 次点击
两个节点,每个节点有 2 个 NIC,分别是千兆和万兆口。IP 分别是:
Host1:
nic1:192.168.100.10
nic2:10.0.100.10

Host2:
nic1:192.168.100.11
nic2:10.0.100.11

Host1 里面有发送到 10.0.100.11 的数据,当停掉 host1 的 nic2:ifdown nic2,数据就会从 nic1 的默认网关出去,怎么避免这个行为呢?
经过测试,(策略)路由好像解决不了问题,因为 ifdown nic2 之后,nic2 相关的路由都被删除了。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK