云计算大赛在服务器上碰到的坑之一
发现双节点双网卡可以互相ping通,但客户机无法ping通第二块网卡。最后查到是因为centos旧内核的反向路由检查机制的锅。这里直接关闭反向路由检测即可正常ping通
首先是临时关闭反向路由检测
echo 0 > /proc/sys/net/ipv4/conf/em1/rp_filter
echo 0 > /proc/sys/net/ipv4/conf/em2/rp_filter
#em1,2是实际网卡名,请使用ip a命令查询自己的网卡名
echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
其次永久关闭反向路由检测,因为这鬼东西每次重启网络都会再次开启
vim /etc/sysctl.conf
#添加以下内容
net.ipv4.conf.em1.rp_filter = 0
net.ipv4.conf.em2.rp_filter = 0
net.ipv4.conf.all.rp_filter = 0
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
minimumshen5天前0
微软确实傻逼Lars11天前0
大佬空了整个docker镜像吧,自己安装一直卡在 app_set_config 90GG2个月前0
总结没毛病过客2个月前0
reunion插件是干什么用的?fom3个月前0
你好,请问一下如果用的是QTS5.0自带的反向代理,有什么方法解决吗?amen1233个月前0
服务器也成功搭建了,想咨询下最后防止服务器被黑。是要在XSHELL里头,最后输入/etc/passwd 和/sbin/nologin 吗skyline3个月前0
感谢解释,这个问题要是不想明白,也是永远想不通为什么会这样b1215个月前0
teamspeak@VM-24-13-debian:~$ ./ts3server_startscript.sh start ts3server.pid found, but no server running. Possibly your previously started server crashed Please view the logfile for details. Starting the TeamSpeak 3 server TeamSpeak 3 server started, for details please view the log file 大佬,創了ts服務器卻進不去,這咋辦啊