Linux系统 message日志出现“entered promiscuous mode”和“left promiscuous mode”信息

        问题描述<br />

Linux系统的ECS实例message日志中出现如下信息。


entered promiscuous mode
left promiscuous mode
  


   解决方案


  根据日志信息判断,报错并不是异常的错误日志,对服务器系统没有影响。
  “device eth0 entered promiscuous mode” ,指eth0网卡进入了混杂模式。
  “device eth0 left promiscuous mode” ,指eth0网卡退出了混杂模式。
  混杂模式是网卡的一种工作模式,一般在抓取网卡数据包时使用。系统日志里出现这个日志信息,说明在服务器上对网卡进行过抓包的操作,tcpdump抓包命令会产生这个日志信息。可以通过以下命令设置网卡的混杂模式。
  1.执行如下命令,将eth0网卡设置为混杂模式。


ifconfig eth0 promisc
  2.执行如下命令,取消eth0网卡的混杂模式。


ifconfig eth0 -promisc