首页 > 系统 > Linux > 正文

linux怎么查看网卡接口是否为混杂模式?

2024-08-28 00:01:34
字体:
来源:转载
供稿:网友
      武林网之家亚洲服务器:
      自动调度计算、存储和网络资源,完成智能化部署,为您提供弹性的生产环境,支持弹性扩展,随需而变,以应对网站流量的快速变化。会员后台,可自行重启服务器,重启iis等功能。高性能亚洲服务器。质量就是我们的自尊,服务就是我们是初心!
      IIS7亚洲服务器地址:http://fuwuqi.iis7.com/fl.asp?dj=7
 
===============================================================================
  使用ifconfig命令可查看当前网卡是否设置为混杂模式:
  [zhaihf@localhost——]$ ifconfig
  eth0 Linkencap:Ethernet HWaddr 00:16:31:FF:A6:2E
  inet addr:192.168.9.1 Bcast:192.168.9.255 Mask:255.255.255.0
  UPBROADCAST MULTICAST MTU:1500 Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
  Memory:98420000-98440000
  eth1 Link encap:Ethernet HWaddr 00:16:31:FF:A6:2F
  inet addr:192.168.8.48 Bcast:192.168.8.255 Mask:255.255.255.0
  inet6 addr: fe80::216:31ff:feff:a61f/64 Scope:Link
  UPBROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
  RX packets:28011022 errors:0 dropped:0 overruns:0 frame:0
  TX packets:18408510 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:31733322503 (29.5 GiB) TX bytes:21092798216 (19.6GiB)
  Memory:98400000-98420000
  lo Link encap:Local Loopback
  inet addr:127.0.0.1 Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING MTU:16436 Metric:1
  RX packets:8873 errors:0 dropped:0 overruns:0 frame:0
  TX packets:8873 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:3140421 (2.9 MiB) TX bytes:3140421 (2.9 MiB)
  usb0 Link encap:Ethernet HWaddr 5E:F3:FC:E1:D2:19
  inet addr:169.254.95.120 Bcast:169.254.95.255 Mask:255.255.255.0
  inet6 addr: fe80::5cf3:fcff:fee1:d217/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  RXpackets:220031 errors:0 dropped:0 overruns:0 frame:0
  TX packets:110230 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:14862206 (14.1 MiB) TX bytes:5251125 (5.0 MiB)
  其中UPBROADCAST RUNNING PROMISC MULTICAST的PROMISC说明网卡eth1已经设置成混杂模式。
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表