Netdev List
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: Lin Ming <mlin@ss.pku.edu.cn>
Cc: netdev@vger.kernel.org, Eric Dumazet <eric.dumazet@gmail.com>
Subject: Re: Question: eth0 and wlan0 traffic load
Date: Fri, 06 Jul 2012 21:16:38 -0700	[thread overview]
Message-ID: <4FF7B826.4010007@candelatech.com> (raw)
In-Reply-To: <CAF1ivSaY3s-Vjbe7_vziCRCEsaXduug3+2G9R55SUBQ8HPT6hQ@mail.gmail.com>

On 07/06/2012 08:28 PM, Lin Ming wrote:
> On Host1
>    eth0: 192.168.1.102
> wlan0: 192.168.1.103
>
> On Host2, scp a file to Host1 via wlan0
> # scp tmp.file 192.168.1.103:/tmp
>
> But ifstat shows all traffic goes to eth0.
> Why does kernel choose eth0 although I use wlan0's address?
> Is this an intended behavior?

You have to be clever with routing rules, arp-filtering, and such
to ensure that works as you want.

Thanks,
Ben

>
>         eth0               wlan0
>   KB/s in  KB/s out   KB/s in  KB/s out
> 11989.26    286.05      0.00      0.00
> 11998.90    286.00      0.00      0.00
>   6910.18    170.63      0.00      0.00
> 10260.05    246.82      0.00      0.00
>   8295.90    202.12      0.00      0.00
> 11979.90    282.41      0.00      0.00
> 11618.39    274.71      0.00      0.00
>   7004.78    170.79      0.00      0.00
> 12003.33    286.21      0.00      0.00
>   7775.28    190.59      0.00      0.00
> 11980.18    280.76      0.00      0.00
> 11998.32    286.29      0.00      0.00
> 11995.61    286.08      0.00      0.00
> 11996.57    285.88      0.00      0.00
>   6938.20    162.98      0.00      0.00
>   6736.30    169.22      0.04      0.00
> 12000.92    284.83      0.00      0.00
> 12005.41    286.13      0.00      0.00
> 12000.58    286.27      0.00      0.00
> 11963.65    284.13      0.00      0.00
> 11935.24    281.32      0.00      0.00
> 12002.83    286.27      0.00      0.00
> 11997.59    285.68      0.00      0.00
>
> Thanks,
> Lin Ming
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

  reply	other threads:[~2012-07-07  4:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-07  3:28 Question: eth0 and wlan0 traffic load Lin Ming
2012-07-07  4:16 ` Ben Greear [this message]
2012-07-07  4:55   ` Lin Ming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FF7B826.4010007@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=eric.dumazet@gmail.com \
    --cc=mlin@ss.pku.edu.cn \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox