linux – LVS-TUN:ifconfig显示tunl0接口的错误和冲突?

Check_MK给我发了一封电子邮件如下:
***** Nagios *****

Notification Type: PROBLEM

Service: Interface 5
Host: foo
Address: x.y.z.t
State: CRITICAL

Date/Time: Fri May 3 10:02:40 ICT 2013

Additional Info: CRIT - [tunl0] (up) speed unknown,in: 3.39MB/s,out: 0.00B/s,out-errors: 100.00%(!!) = 0.1

运行ifconfig,我得到:

tunl0     Link encap:IPIP Tunnel  HWaddr   
          inet addr:x.y.z.t  Mask:255.255.255.255
          UP RUNNING NOARP  MTU:1480  Metric:1
          RX packets:92101704629 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:652 dropped:0 overruns:0 carrier:0
          collisions:652 txqueuelen:0 
          RX bytes:18941091817671 (17.2 TiB)  TX bytes:0 (0.0 b)

注意错误和碰撞.我知道碰撞字段的非零值表示网络拥塞的可能性.但:

>可能是什么原因?我该如何排除故障?
> IPIP Tunnel接口是否有类似的ethtool?

modinfo ipip

filename:       /lib/modules/2.6.18-194.17.1.el5/kernel/net/ipv4/ipip.ko
license:        GPL
srcversion:     288C625C7521D577F7AD9E4
depends:        tunnel4
vermagic:       2.6.18-194.17.1.el5 SMP mod_unload gcc-4.1
module_sig: 883f3504ca37590565662cff69dd0be11277ff0a08d3a3...

ip隧道秀

tunl0: ip/ip  remote any  local any  ttl inherit  nopmtudisc

更新于5月6日星期一10:05:01 ICT 2013

@Danila Ladner:
通过Google搜索,我发现this链接对您有同感:

My tunnel does not work:

ifconfig tunl<n> reports errors and collisions

Did you use ifconfig,perhaps ifconfig ... pointopoint ... to set up your tunnel?

Shut it down; delete it; start again with ip.

但是你能进一步详细说明吗?

@Sergey Vlasov:

tunl0     Link encap:IPIP Tunnel  HWaddr   
          inet addr:x.y.z.t  Mask:255.255.255.255
          UP RUNNING NOARP  MTU:1480  Metric:1
          RX packets:81621711099 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:692 dropped:0 overruns:0 carrier:0
          collisions:692 txqueuelen:0 
          RX bytes:16915649263419 (15.3 TiB)  TX bytes:120 (120.0 b)

我不明白为什么有来自tunl0接口的2个传输数据包?当冲突计数器增加时,我将设置一个event handler来运行tcpdump.让我们等一下,看看会发生什么.

更新于5月7日星期二14:05:39 ICT 2013

@Danila Ladner:为排除这种可能性,我尝试了你的建议:

ifdown tun0
modprobe -r ipip
modprobe ipip
ip addr add dev tunl0 x.y.z.t/32 brd x.y.z.t
ip link set tunl0 up

我等着看问题是否解决了:

tunl0     Link encap:IPIP Tunnel  HWaddr   
          inet addr:x.y.z.t  Mask:255.255.255.255
          UP RUNNING NOARP  MTU:1480  Metric:1
          RX packets:19630041 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:4083271398 (3.8 GiB)  TX bytes:0 (0.0 b)

解决方法

正如量子所指出的那样,如果用ifconfig构建并用ip重建它,我建议他把隧道关闭.几年前我在Centos 5内核2.6.25上遇到了类似的问题,在我的情况下,它解决了这个问题,但我也在咨询IRC中的网络人员和开发人员为什么这是一个问题,因为我需要在生产箱上使用该路由并需要安排停机时间来核对它.我不记得确切,现在没有任何硬性证据,但Kuznetsov(内核来源的原始大贡献者建议用ip重建它,因为他已经看到了ifconfig的问题.我希望这有助于量子解决他的问题问题.

OFF主题:所以,最重要的是我自己使用了很多ifconfig并且很难切换到ip,只要我继续处理旧的Solaris 8盒子和bsd盒子.

相关文章

linux常用进程通信方式包括管道(pipe)、有名管道(FIFO)、...
Linux性能观测工具按类别可分为系统级别和进程级别,系统级别...
本文详细介绍了curl命令基础和高级用法,包括跳过https的证书...
本文包含作者工作中常用到的一些命令,用于诊断网络、磁盘占满...
linux的平均负载表示运行态和就绪态及不可中断状态(正在io)的...
CPU上下文频繁切换会导致系统性能下降,切换分为进程切换、线...