LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-14-2008, 01:55 AM   #1
santhosh rao
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
Network Traffic Stats on virtual interface


Hello All,
I am Santhosh. I am facing a problem collecting statistics like Received Packets, Received Bytes, Transmitted Bytes etc for a virtual interface configured on cpci card (zrl0:1). /sbin/ifconfig command output doesn't show any data for virtual interface however for interface which is maintained by kernel (zrl0) it shows. Following is the sample output

zrl0 Link encap:Ethernet HWaddr 00:80:42:11:A8:4C
inet addr:192.168.0.105 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:267926 errors:0 dropped:0 overruns:0 frame:0
TX packets:209036 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:9

zrl0:1 Link encap:Ethernet HWaddr 00:80:42:11:A8:4C
inet addr:10.51.81.107 Bcast:10.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:9

My questions are :
a) Does the stats shown for zrl0 interface, include traffic for both zrl0 and zrl0:1 OR is it just of zrl0 interface?
b) If answer to question a) is NO, then how can I get stats for zrl0:1 virtual interface?
Please advice.

Thanks,
Santhosh
 
Old 02-14-2008, 02:08 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Hi,

And welcome to LQ!

And you've got me stumped :}

I've never seen or heard of a zrl0. What OS are you using, and
what kind of device is this?



Cheers,
Tink
 
Old 02-14-2008, 03:33 AM   #3
santhosh rao
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Network traffic stats on virtual interface

Quote:
Originally Posted by Tinkster View Post
Hi,

And welcome to LQ!

And you've got me stumped :}

I've never seen or heard of a zrl0. What OS are you using, and
what kind of device is this?



Cheers,
Tink
Hello,
OS i am using is linux only. This interface is a znyx interface. I don't mind using eth0 aswell? Still I got into same issues.

Rgds,
Santhosh
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Activating a virtual network interface bolek Programming 1 02-06-2008 09:50 PM
Activating a virtual network interface bolek Linux - Networking 1 02-05-2008 11:12 AM
comman line tool analysing network traffic on an interface aeby Linux - Networking 3 06-27-2007 06:23 AM
How define virtual network interface in Suse 9.3 ? tkmbe Suse/Novell 0 08-08-2005 04:21 PM
packet reception by virtual network interface seeker321in Linux - Networking 0 04-19-2002 01:48 PM


All times are GMT -5. The time now is 02:56 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration