Search Linux Wireless

Re: mac80211_hwsim: Problem setting up communication

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 28, 2009 at 10:00:14AM +0200, Reiner Herrmann wrote:

> I want to use mac80211_hwsim (from kernel 2.6.30-rc6) for some testing,
> but I can't get the two interfaces to communicate with each other.

> # ifconfig wlan0 10.0.0.1 up
> # ifconfig wlan1 10.0.0.2 up
> 
> wlan1 can successfully associate, but I can't reach any interface via
> the other:
> 
> # ping -I wlan0 10.0.0.2
> PING 10.0.0.2 (10.0.0.2) from 10.0.0.1 wlan0: 56(84) bytes of data.
> >From 10.0.0.1 icmp_seq=1 Destination Host Unreachable

Linux IP/networking stack does not really seem to like connections
between local interfaces unless this goes through lo.. Or well, at least
I haven't figured out how to configure this without some kernel code
changes. It would be kind of nice to get this working, but anyway, I
made a small program for checking both unicast and broadcast
communications for this type of use: hwsim_test from
http://w1.fi/gitweb/gitweb.cgi?p=hostap.git;a=tree;f=mac80211_hwsim/tools

(it uses packet sockets bound to the interface and does not rely on the
kernel IP stack)

-- 
Jouni Malinen                                            PGP id EFC895FA
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux