* [ath9k-devel] Connecting multiple times to same base station
@ 2015-06-15 7:47 Kilian Risse
2015-06-15 8:41 ` Michal Kazior
0 siblings, 1 reply; 3+ messages in thread
From: Kilian Risse @ 2015-06-15 7:47 UTC (permalink / raw)
To: ath9k-devel
Hi all
I tried to simulate multiple clients through a single ar93xx card. I
noticed that even though I connect with the base station multiple times
through several interfaces, the MAC address with which I send packets
(and am associated to the access point) remains the same; the one of the
primary station.
The interfaces have all different MAC addresses and they have different
IPs. But whenever I arping any of the IP addresses it returns the MAC of
the primary station.
I wanted to ask whether this is intended behavior (and the use case not
supported) or whether this is a bug.
Thanks for the help
Kilian
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ath9k-devel] Connecting multiple times to same base station
2015-06-15 7:47 [ath9k-devel] Connecting multiple times to same base station Kilian Risse
@ 2015-06-15 8:41 ` Michal Kazior
0 siblings, 0 replies; 3+ messages in thread
From: Michal Kazior @ 2015-06-15 8:41 UTC (permalink / raw)
To: ath9k-devel
On 15 June 2015 at 09:47, Kilian Risse <krisse@student.ethz.ch> wrote:
> Hi all
>
> I tried to simulate multiple clients through a single ar93xx card. I
> noticed that even though I connect with the base station multiple times
> through several interfaces, the MAC address with which I send packets
> (and am associated to the access point) remains the same; the one of the
> primary station.
>
> The interfaces have all different MAC addresses and they have different
> IPs. But whenever I arping any of the IP addresses it returns the MAC of
> the primary station.
I'm guessing you're using the same IP subnet on all of them.
You'll need to either tune IP routing
(https://lwn.net/Articles/364318/) and/or force sockets to bind to
interfaces (e.g. ping with "-I" parameter).
Personally, I often use ipv6 link-local addresses to test traffic on
such topologies to avoid the problem.
Micha?
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ath9k-devel] Connecting multiple times to same base station
[not found] <557EAABF.7020308@student.ethz.ch>
@ 2015-06-15 10:51 ` Kilian Risse
0 siblings, 0 replies; 3+ messages in thread
From: Kilian Risse @ 2015-06-15 10:51 UTC (permalink / raw)
To: ath9k-devel
Thanks for the reply! I think I explained my problem poorly - I'll try
again;
I have an access point and 2 computers. One connected to the AP by
ethernet (PC0) and the other by wlan (PC1).
In order to simulate several clients in the wlan I multiplex the card of
PC1. The problem is that all frames sent from PC0 to the different
interfaces have the same MAC address.
I tried to change the MAC addresses in the ARP cache of PC0 such that
each IP has the intended MAC address (the one assigned to the
interface). But then the frames get all lost - I cannot even ping the
different interfaces of PC1 (except the primary interface as it still
has the same MAC).
> I'm guessing you're using the same IP subnet on all of them.
>
> You'll need to either tune IP routing
> (https://lwn.net/Articles/364318/) and/or force sockets to bind to
> interfaces (e.g. ping with "-I" parameter).
>
> Personally, I often use ipv6 link-local addresses to test traffic on
> such topologies to avoid the problem.
Correct me if I am wrong - but what you suggested is only needed if I
want to send data from the different interfaces to each other or send
from the different interfaces - right?
Thanks for the help
Kilian
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-06-15 10:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-15 7:47 [ath9k-devel] Connecting multiple times to same base station Kilian Risse
2015-06-15 8:41 ` Michal Kazior
[not found] <557EAABF.7020308@student.ethz.ch>
2015-06-15 10:51 ` Kilian Risse
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.