<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: cat /proc/net/dev in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/cat-proc-net-dev/m-p/4235466#M33192</link>
    <description>Thanks Matti,&lt;BR /&gt;&lt;BR /&gt;Yes, you are right these are vlan connections and eth2 with no ipv4 address assigned, thats why i am not able to see traffic throgh tcpdump on eth2 interface as u defined previous. How can we check extra traffic flow inspite of vlan interface?</description>
    <pubDate>Thu, 17 Jul 2008 07:47:25 GMT</pubDate>
    <dc:creator>monu_1</dc:creator>
    <dc:date>2008-07-17T07:47:25Z</dc:date>
    <item>
      <title>cat /proc/net/dev</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cat-proc-net-dev/m-p/4235464#M33190</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I expect that the number of packets on eth2 interface should be same as sum of number of packets in eth2.11 and eth2.12 interfaces. However in /proc/net/dev, we see that the numbers are different.&lt;BR /&gt;Pls see in attached file.&lt;BR /&gt;My question is that why eth2 interface has more packets than sum of eth2.11 and eth2.12. What is the extra traffic on eth2 interface ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;MKS &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Thu, 17 Jul 2008 04:09:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cat-proc-net-dev/m-p/4235464#M33190</guid>
      <dc:creator>monu_1</dc:creator>
      <dc:date>2008-07-17T04:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: cat /proc/net/dev</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cat-proc-net-dev/m-p/4235465#M33191</link>
      <description>Looks like eth2.11 and eth2.12 are VLAN definitions, if your setup uses the usual conventions. Am I correct?&lt;BR /&gt;&lt;BR /&gt;In that case, eth2.11 gets the traffic associated with VLAN 11, and eth2.12 gets the traffic that belongs to VLAN 12 respectively.&lt;BR /&gt;&lt;BR /&gt;Any traffic that belongs to any other VLAN or does not have a VLAN tag at all will only increase the counters of the eth2 interface. If there is no IP address defined for eth2, the traffic is ignored at the IP protocol level.&lt;BR /&gt;&lt;BR /&gt;To analyze the "extra" traffic, you can use tcpdump or Wireshark with a proper filtering expression. &lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;tcpdump -s 0 -p -i eth2 -vv not vlan 11 and not vlan 12&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Thu, 17 Jul 2008 06:25:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cat-proc-net-dev/m-p/4235465#M33191</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-07-17T06:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: cat /proc/net/dev</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cat-proc-net-dev/m-p/4235466#M33192</link>
      <description>Thanks Matti,&lt;BR /&gt;&lt;BR /&gt;Yes, you are right these are vlan connections and eth2 with no ipv4 address assigned, thats why i am not able to see traffic throgh tcpdump on eth2 interface as u defined previous. How can we check extra traffic flow inspite of vlan interface?</description>
      <pubDate>Thu, 17 Jul 2008 07:47:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cat-proc-net-dev/m-p/4235466#M33192</guid>
      <dc:creator>monu_1</dc:creator>
      <dc:date>2008-07-17T07:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: cat /proc/net/dev</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cat-proc-net-dev/m-p/4235467#M33193</link>
      <description>And what is this mean?&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;If there is no IP address defined for eth2, the traffic is ignored at the IP protocol level.&lt;BR /&gt;&lt;BR /&gt;Traffic is ignored?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;MKS&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Jul 2008 07:56:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cat-proc-net-dev/m-p/4235467#M33193</guid>
      <dc:creator>monu_1</dc:creator>
      <dc:date>2008-07-17T07:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: cat /proc/net/dev</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cat-proc-net-dev/m-p/4235468#M33194</link>
      <description>And what is this mean?&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;If there is no IP address defined for eth2, the traffic is ignored at the IP protocol level.&lt;BR /&gt;&lt;BR /&gt;Traffic is ignored?&lt;BR /&gt;&lt;BR /&gt;if traffic ignored then why eth2 counter is increasing?&lt;BR /&gt;&lt;BR /&gt;Plz response.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;MKS&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Jul 2008 07:57:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cat-proc-net-dev/m-p/4235468#M33194</guid>
      <dc:creator>monu_1</dc:creator>
      <dc:date>2008-07-17T07:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: cat /proc/net/dev</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cat-proc-net-dev/m-p/4235469#M33195</link>
      <description>here is ifconfig o/p of eth2 ports&lt;BR /&gt;root@slot-1:~# ifconfig eth2&lt;BR /&gt;eth2      Link encap:Ethernet  HWaddr 00:01:AF:17:3F:07&lt;BR /&gt;          inet6 addr: fe80::201:afff:fe17:3f07/64 Scope:Link&lt;BR /&gt;          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;BR /&gt;          RX packets:1450965 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt;          TX packets:725760 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;          collisions:0 txqueuelen:1000&lt;BR /&gt;          RX bytes:96488282 (92.0 MiB)  TX bytes:47174740 (44.9 MiB)&lt;BR /&gt;          Base address:0xdfc0 Memory:8dda0000-8ddc0000&lt;BR /&gt;&lt;BR /&gt;root@slot-1:~# ifconfig eth2.11&lt;BR /&gt;eth2.11   Link encap:Ethernet  HWaddr 00:01:AF:17:3F:07&lt;BR /&gt;          inet6 addr: fe80::201:afff:fe17:3f07/64 Scope:Link&lt;BR /&gt;          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1&lt;BR /&gt;          RX packets:1088122 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt;          TX packets:362880 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;          collisions:0 txqueuelen:0&lt;BR /&gt;          RX bytes:48602112 (46.3 MiB)  TX bytes:21047128 (20.0 MiB)&lt;BR /&gt;&lt;BR /&gt;root@slot-1:~# ifconfig eth2.12&lt;BR /&gt;eth2.12   Link encap:Ethernet  HWaddr 00:01:AF:17:3F:07&lt;BR /&gt;          inet6 addr: fe80::201:afff:fe17:3f07/64 Scope:Link&lt;BR /&gt;          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1&lt;BR /&gt;          RX packets:362894 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt;          TX packets:362904 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;          collisions:0 txqueuelen:0&lt;BR /&gt;          RX bytes:15967336 (15.2 MiB)  TX bytes:13790728 (13.1 MiB)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Jul 2008 08:09:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cat-proc-net-dev/m-p/4235469#M33195</guid>
      <dc:creator>monu_1</dc:creator>
      <dc:date>2008-07-17T08:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: cat /proc/net/dev</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cat-proc-net-dev/m-p/4235470#M33196</link>
      <description>plz ignore ifconfig result.it is wrongly posted.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;MKS</description>
      <pubDate>Thu, 17 Jul 2008 08:13:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cat-proc-net-dev/m-p/4235470#M33196</guid>
      <dc:creator>monu_1</dc:creator>
      <dc:date>2008-07-17T08:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: cat /proc/net/dev</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cat-proc-net-dev/m-p/4235471#M33197</link>
      <description>You must understand that the networking system is a multi-layered stack. At the lowest level is the actual hardware and the drivers that represent it to the rest of the system. &lt;BR /&gt;&lt;BR /&gt;The driver of the actual physical NIC eth2 basically receives everything that comes in through the NIC. At this point, the counters for eth2 are increased.&lt;BR /&gt;&lt;BR /&gt;The next step after the physical NIC driver is the VLAN layer, which can maintain virtual interfaces that behave just like NICs (eth2.11 and eth2.12).&lt;BR /&gt;&lt;BR /&gt;If the traffic belongs to VLAN 11 or VLAN 12, it is passed to the "virtual NICs" eth2.11 or eth2.12 and the counters of those virtual NICS are increased. Otherwise it passes this layer as "belonging to eth2".&lt;BR /&gt;&lt;BR /&gt;The next step is the network layer (usually IP, but may be IPX, Appletalk, x25 or whatever). It sees three separate network interfaces: eth2, eth2.11 and eth2.12. It does not know nor care that only one of these is an actual physical NIC.&lt;BR /&gt;&lt;BR /&gt;In your configuration, the network layer works normally for any traffic coming in from eth2.11 and eth2.12: it verifies that the destination IP address is correct and passes the packets to the transport layer (usually TCP, UDP or ICMP, but there are other transport layer protocols). But for eth2, there is no IP address configured, so the IP layer simply discards the packets at this point.&lt;BR /&gt;&lt;BR /&gt;So the non-VLAN eth2 traffic first passes through the hardware, driver and VLAN layers, incrementing the counters for eth2, but is ignored at the IP layer.&lt;BR /&gt;&lt;BR /&gt;Tcpdump, Wireshark and other tools like it connect to the NIC at very low level. You don't need to assign an IP address to eth2 to be able to use tcpdump or wireshark to monitor the traffic.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Thu, 17 Jul 2008 09:17:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cat-proc-net-dev/m-p/4235471#M33197</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-07-17T09:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: cat /proc/net/dev</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cat-proc-net-dev/m-p/4235472#M33198</link>
      <description>Thank a lot!&lt;BR /&gt;&lt;BR /&gt;actually there must be no traffic for eth2 at all, there are only two vlan traffic for eth2. That's why i am not able to see from where eth2 getting packets or sending?&lt;BR /&gt;The comaand u tell in first reply is not working to see only eth2 traffic coz as output no ip4 address assigned to eth2?&lt;BR /&gt;&lt;BR /&gt;So how can i able see only eth2 pkt send/receive?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;MKS</description>
      <pubDate>Fri, 18 Jul 2008 03:42:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cat-proc-net-dev/m-p/4235472#M33198</guid>
      <dc:creator>monu_1</dc:creator>
      <dc:date>2008-07-18T03:42:45Z</dc:date>
    </item>
  </channel>
</rss>

