惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
V
Visual Studio Blog
P
Privacy International News Feed
月光博客
月光博客
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
Lohrmann on Cybersecurity
N
News and Events Feed by Topic
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Apple Machine Learning Research
Apple Machine Learning Research
阮一峰的网络日志
阮一峰的网络日志
Webroot Blog
Webroot Blog
T
Threatpost
宝玉的分享
宝玉的分享
The Last Watchdog
The Last Watchdog
小众软件
小众软件
L
LINUX DO - 最新话题
C
Cisco Blogs
T
Troy Hunt's Blog
Schneier on Security
Schneier on Security
酷 壳 – CoolShell
酷 壳 – CoolShell
www.infosecurity-magazine.com
www.infosecurity-magazine.com
雷峰网
雷峰网
G
GRAHAM CLULEY
有赞技术团队
有赞技术团队
Know Your Adversary
Know Your Adversary
博客园 - 叶小钗
罗磊的独立博客
V
V2EX
博客园 - Franky
P
Proofpoint News Feed
SecWiki News
SecWiki News
腾讯CDC
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Jina AI
Jina AI
博客园 - 三生石上(FineUI控件)
S
Secure Thoughts
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
PCI Perspectives
PCI Perspectives
V2EX - 技术
V2EX - 技术
Google DeepMind News
Google DeepMind News
Last Week in AI
Last Week in AI
aimingoo的专栏
aimingoo的专栏
Cisco Talos Blog
Cisco Talos Blog
N
News and Events Feed by Topic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
S
SegmentFault 最新的问题

博客园 - 迷路中的路人甲

sqlserver 创建 aspstate的方法 yum 快速安装 Rabbitmq for CentOS6 DataTable 2 Sql Table 存储过程提示临时表字段不存在的解决办法--直接修改临时表的名称,用唯一值作为名称 强制删除TFS的签出文件办法 sqlserver 2005 查找对象引用或者依赖的存储过程。 js运算BUG doubanclaim7fc6594541441a59 Excel 导入数据库的问题 C# 执行存储过程返回小数的输出值的设置方法 IE 无法显示JPG格式图片 Jquery选择器 记录 - 迷路中的路人甲 - 博客园 TED 中文视频收集 Jquery 验证插件formValidator 一点问题。 Select在IE7中的一个bug,多个Select互相重叠的问题 Google wave 发送中..... 这是什么样子的天气呀。 Office 2010 Beta 安装成功 msn9强制更新(版本:14.0.8089.726)后的 2003下的解决办法 。
双网卡只有一个能ping通的解决办法
迷路中的路人甲 · 2018-01-29 · via 博客园 - 迷路中的路人甲

2018-01-29 14:02  迷路中的路人甲  阅读(5305)  评论(0)    收藏  举报

来源:http://blog.csdn.net/centerpoint/article/details/38542719

Linux默认启用了反向路由检查

如果2个网卡在一个Lan里面,那么服务器可能从eth0或者eth1发现网关, 如果一个包从eth0进入了, 而网关在eth1上, 那么从eth1是出不去的, 就不通了.  反向路由检查要求从哪里来的才能回哪去. 

关闭反向路由检查(根据自己的情况替换第二第三行的网卡名):

echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter 
echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter 
echo 0 > /proc/sys/net/ipv4/conf/eth1/rp_filter 

 每次开机自动关闭反向路由检查, 加入 /etc/rc.local 即可.