netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* No local loopback for mac80211_hwsim test setup
@ 2009-04-03 12:38 Daniel Wagner
  2009-04-03 19:30 ` Johannes Berg
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Wagner @ 2009-04-03 12:38 UTC (permalink / raw)
  To: netdev; +Cc: linux-wireless

Hi,

I'd like to setup a wireless test network using the mac80211_hwsim
driver.  The main idea is to use one simulated device as access point
(e.g wlan13) and the other as normal station (e.g. wlan20).

I was able to get hostapd and dhcpd listining on wlan13 and handling the
request coming from wlan20. So after that the configuration looks like this:

[wagi@stardust ~]$ ip addr show dev wlan13
12: wlan13: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 02:00:00:00:03:00 brd ff:ff:ff:ff:ff:ff
    inet 10.0.13.1/32 scope global wlan13
    inet6 fe80::ff:fe00:300/64 scope link
       valid_lft forever preferred_lft forever

[wagi@stardust ~]$ ip addr show dev wlan20
26: wlan20: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 02:00:00:00:0a:00 brd ff:ff:ff:ff:ff:ff
    inet 10.0.13.10/24 brd 10.0.13.255 scope global wlan20
    inet6 fe80::ff:fe00:a00/64 scope link
       valid_lft forever preferred_lft forever

[wagi@stardust ~]$ ip route show
10.0.13.0/24 dev wlan20  proto kernel  scope link  src 10.0.13.10  metric 2
192.168.122.0/24 dev virbr0  proto kernel  scope link  src 192.168.122.1
192.168.0.0/16 dev eth0  proto kernel  scope link  src 192.168.101.53  metric 1
default via 192.168.0.254 dev eth0  proto static

[wagi@stardust ~]$ ip route show dev wlan13 table local
local 10.0.13.1  proto kernel  scope host  src 10.0.13.1

[wagi@stardust ~]$ ip route show dev wlan20 table local
local 10.0.13.10  proto kernel  scope host  src 10.0.13.10
broadcast 10.0.13.255  proto kernel  scope link  src 10.0.13.10
broadcast 10.0.13.0  proto kernel  scope link  src 10.0.13.10

If I 'ping 10.0.13.1' then the ip packets are not going through 
mac80211_hwsim because of the local route entry. So I tried
to remove this entry with the result that I know see:

[wagi@stardust ~]$ sudo tcpdump -i wlan13
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on wlan13, link-type EN10MB (Ethernet), capture size 96 bytes
14:31:05.431507 arp who-has 10.0.13.1 tell 10.0.13.10
14:31:05.431448 arp who-has 10.0.13.1 tell 10.0.13.10
14:31:06.431486 arp who-has 10.0.13.1 tell 10.0.13.10
...

Fidling with the arp entries was not helping either. I'm a bit at a
loss. I've searched the web, nothing found what helped.

So my question is this possible what I'd like to do? If so, what's the
trick to get it working?

thanks,
daniel






^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: No local loopback for mac80211_hwsim test setup
  2009-04-03 12:38 No local loopback for mac80211_hwsim test setup Daniel Wagner
@ 2009-04-03 19:30 ` Johannes Berg
       [not found]   ` <1238787032.11352.1.camel-YfaajirXv2244ywRPIzf9A@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2009-04-03 19:30 UTC (permalink / raw)
  To: Daniel Wagner; +Cc: netdev, linux-wireless

[-- Attachment #1: Type: text/plain, Size: 225 bytes --]

On Fri, 2009-04-03 at 14:38 +0200, Daniel Wagner wrote:

> So my question is this possible what I'd like to do? If so, what's the
> trick to get it working?

It's not possible locally, unfortunately, afaik.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: No local loopback for mac80211_hwsim test setup
       [not found]   ` <1238787032.11352.1.camel-YfaajirXv2244ywRPIzf9A@public.gmane.org>
@ 2009-04-07 19:07     ` Daniel Wagner
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Wagner @ 2009-04-07 19:07 UTC (permalink / raw)
  To: Johannes Berg
  Cc: netdev-u79uwXL29TY76Z2rM5mHXA,
	linux-wireless-u79uwXL29TY76Z2rM5mHXA

Johannes Berg wrote:
> On Fri, 2009-04-03 at 14:38 +0200, Daniel Wagner wrote:
> 
>> So my question is this possible what I'd like to do? If so, what's the
>> trick to get it working?
> 
> It's not possible locally, unfortunately, afaik.

Ok, I found workaround for my problem. I'm using a VM with a small
linux distro inside. The networking interface is bridge to the wlan
interface. With this setup I can have some services running and have
real traffic over the 'link'. Not really lightweight, but well, I
guess hardware vendors like this approach.

thanks,
daniel
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-07 19:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-03 12:38 No local loopback for mac80211_hwsim test setup Daniel Wagner
2009-04-03 19:30 ` Johannes Berg
     [not found]   ` <1238787032.11352.1.camel-YfaajirXv2244ywRPIzf9A@public.gmane.org>
2009-04-07 19:07     ` Daniel Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).