Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-28-2014, 08:47 PM
|
#1
|
LQ Newbie
Registered: Jun 2014
Posts: 11
Rep:
|
ETH0 vs BR0 traffic counters
I am trying to determine my in/out traffic and not able to fully understand the netstat counters while using bridging.
Setup is a normal 1 Bridge created (BR0) using port ETH0. Also I have an LXC container with a port of BR0-MINE1.
As ETH0, when using a bridge, has no IP address, I assumed that ETH0 would have no activity and only activity on the two interfaces with IP addresses (BR0 and BR0-MINE1). Or if it did, it would be the sum of all bridged interfaces, but it is not. So I am confused as to what traffic is on BR0 vs ETH0. BR0-MINE is fine as it matches the traffic within the LXC container using lxc-info.
netstat - I (after 4 hours)
Iface RX-OK TX-OK
br0 2662201 1445566
eth0 27252094 54437414
br0-mine1 47359837 23705765
brctl show
bridge name bridge id STP enabled interfaces
br0 8000.003048db12f2 no eth0
br0-mine1
Thank you in advance for any replies.
---Garrett
|
|
|
08-29-2014, 06:22 AM
|
#2
|
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,201
|
Easiest way to see what's there is to run tcpdump. You'll see lots of non IP traffic.
|
|
|
08-30-2014, 10:31 AM
|
#3
|
LQ Newbie
Registered: Jun 2014
Posts: 11
Original Poster
Rep:
|
Thanks I spent a few hours analyzing tcpdump results and doing some tests like sending streams to each IP. The strange thing is, all traffic that goes to the LXC container is present on all interfaces for example:
BR0 IP = x.x.x.110
BR0-MINE1 IP = x.x.x.115
ETH0 - NO IP assigned (as it is the port for BR0)
HTTP to port 91 (port 91 was setup in apache just so I could test with no other noise)
tcpdump -i BR0 port 91
tcpdump -i BR0-mine1 port 91
tcpdump -i eth0 port 91
all three returned the same results and captured my http get requests on ip x.x.x.115. No traffic was shown for x.x.x.110 as port 91 is not open nor any requests to the IP/PORT pair.
With this behavior I would assume all traffic to the container would be captured on both eth0 and BR0, but looking at my first post that is not true.
What I am trying to capture is total network traffic per interface to see my bandwidth in each container total usage of all virtual/real interfaces. I just do not understand the values shown.
|
|
|
09-04-2014, 02:29 PM
|
#4
|
Senior Member
Registered: Apr 2009
Posts: 1,877
Rep:
|
You should capture all traffic on three interfaces, br0, br0-mine1 and eth0 instead of on port91. You should see different. Another one, br0-mine1 is LXC container, you do tcpdump on host or guest machine?
|
|
|
All times are GMT -5. The time now is 07:49 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|