V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  LokiSharp  ›  全部回复第 84 页 / 共 165 页
回复总数  3299
1 ... 80  81  82  83  84  85  86  87  88  89 ... 165  
❮ ❯
2019 年 8 月 6 日
回复了 CHYK 创建的主题 › 程序员 › 慢说下车: 有从 IntelliJ IDEA 成功下车的么?
JB 全家桶也不贵啊。。。
我 mi6 的每个礼拜更新最新版本 LOS 没问题啊
2019 年 8 月 2 日
回复了 opentrade 创建的主题 › Linux › centos8 等得好辛苦
@crystone #64 有啥不会用的,所有软件源里有的就装源里面的,别自己乱编译就行了。实在要用的绕不开的 Docker 里面用 Fedora coreos 作为容器就好
2019 年 8 月 2 日
回复了 RshMan 创建的主题 › Linux › 请问谁有 Red Hat 的订阅账号?帮忙看个 solution
GRE Keepalive does not work
SOLUTION 已验证 - 已更新 2013 年七月 17 日 18:56 - English
环境
Red Hat Enterprise Linux
GRE Tunnel to remote device, such as Cisco router
GRE Keepalives configured on remote device
问题
Configuring GRE Keepalives between a network device (such as a Cisco router) and RHEL system result in the keepalives being dropped by the Linux machine, and the networking device considering the tunnel down.
决议
Linux does not support GRE Keepalives.

You may disable GRE Keepalives on the remote device, or use a workaround such as an IP SLA ping down the GRE tunnel.

根源
A GRE Keepalive is a "host to router" GRE packet encapsulated inside a "router to host" GRE packet. The idea being the host (in this case Linux) receives the packet, sees the packet is actually a GRE packet for the router, and sends it back out. The router receives this packet and knows the remote end is still responding.

The Linux FIB code is such that if it receives traffic where the source is a local unicast address, the traffic is considered invalid.

Observe the following code:

Raw
net/ipv4/fib_frontend.c

if (res.type != RTN_UNICAST) {
if (res.type != RTN_LOCAL || !accept_local)
goto e_inval_res;
}
A GRE tunnel is not "stateful", there is no handshake or negotiation, just one side sending encapsulated packets and one side accepting encapsulated packets. As long as the network between the two sides stays up, the tunnel is up. Lack of Keepalives doesn't mean the tunnel is "down", just that you have no knowledge of the network state of the remote system. You could monitor this on the router with IP SLA, or monitor the remote end separately outside the tunnel.

诊断步骤
Cisco GRE Keepalive documentation:
http://www.cisco.com/en/US/tech/tk827/tk369/technologies_tech_note09186a008048cffc.shtml#t5

Linux GRE documentation:
http://lartc.org/lartc.html#LARTC.TUNNEL.GRE
2019 年 8 月 2 日
回复了 opentrade 创建的主题 › Linux › centos8 等得好辛苦
RHEL 8 从发布用到现在,感觉很舒服
2019 年 8 月 1 日
回复了 Hanggi 创建的主题 › Go 编程语言 › Go 语言程序部署到服务器好方便啊
@RYAN0UP #22 可是流行的发行版自带 JRE
2019 年 8 月 1 日
回复了 daijinming 创建的主题 › 程序员 › 勒索病毒不会感染 Linux 吗?
SELinux 日常开着的表示。。。上次我自己找了个放进去都跑不起来
2019 年 8 月 1 日
回复了 BinRelay 创建的主题 › 程序员 › Windows 下,访问 127.0.0.1 到底过不过 Windows 防火墙?
@BinRelay #8 你把所有规则都删掉然后 deny 所有出入站再看看?
2019 年 8 月 1 日
回复了 BinRelay 创建的主题 › 程序员 › Windows 下,访问 127.0.0.1 到底过不过 Windows 防火墙?
只是默认规则没有针对环回地址而已啊,你不能保证用户不自定义防火墙规则
DataGrid 买 JB 全家桶送的,还挺好用的
2019 年 7 月 31 日
回复了 goreliu 创建的主题 › Linux › WSL 和 WSL2 简单对比
告辞诉还不如直接用 vmware
我 24 岁,到手 1.6 万月供去掉公积金 1.1 万。。。
2019 年 7 月 30 日
回复了 blackbookbj 创建的主题 › Python › 中学生学 Python 到底有什么具体的用途?
嘛,我同事孩子小学一年级就学 Python 了
@reus 为了内存占用消耗这么多 cpu 我觉得划不来😹😹😹
这两个例子。。。Java 的内存使用是 Go 翻倍但是运行时间却是 Go 的三分之一,综合算下来资源使用并不比 Go 高
@abcbuzhiming #14
regex-redux
source secs mem gz busy cpu load
Go
29.20 399,668 802 61.29 71% 55% 37% 47%
Java
10.48 645,680 740 31.62 72% 87% 74% 68%
binary-trees
source secs mem gz busy cpu load
Go
25.25 374,780 1013 87.65 87% 88% 86% 86%
Java
8.28 907,060 835 27.59 86% 90% 80% 77%

额。。。哪你咋不说 Go 的运行时间是 Java 的几倍呢。。。
@abcbuzhiming #12 看起来内存占用差不多啊 Java 虚拟机初始化了差不多 30-40MB,你看 Go CPU 占用都比 Java 高。感觉是默认的 GC 频率比较高吧
2019 年 7 月 29 日
回复了 blackbookbj 创建的主题 › Python › 中学生学 Python 到底有什么具体的用途?
@blackbookbj #7 学啥语言能干的都一样,但是如果起步就写 Python 这样的高级语言的话,以后想学 C 和 Java 之类的低级中级语言会很痛苦。
1 ... 80  81  82  83  84  85  86  87  88  89 ... 165  
❮ ❯
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2278 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 43ms · UTC 09:52 · PVG 17:52 · LAX 02:52 · JFK 05:52
♥ Do have faith in what you're doing.