* carl9170: Problems setting up Virtual Interface
@ 2011-07-04 19:46 Alex
[not found] ` <201107042202.27366.chunkeey@googlemail.com>
0 siblings, 1 reply; 10+ messages in thread
From: Alex @ 2011-07-04 19:46 UTC (permalink / raw)
To: linux-wireless
Dear all,
I am using the carl9170 interface from the 2.6.39.2 kernel with the
newest carl9170 firmware. I have set-up an AP with hostapd. Everything
is working so far:
root@box:~# ifconfig
eth0 Link encap:Ethernet HWaddr <deleted>
inet addr:192.168.178.25 Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fe80::210:75ff:fe1a:bc7e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18885 errors:0 dropped:0 overruns:0 frame:0
TX packets:10301 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:25168612 (24.0 MiB) TX bytes:829805 (810.3 KiB)
Interrupt:11
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:71 errors:0 dropped:0 overruns:0 frame:0
TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6694 (6.5 KiB) TX bytes:6694 (6.5 KiB)
mon.wlan0 Link encap:UNSPEC HWaddr <deleted>
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27070 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4583087 (4.3 MiB) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr <deleted>
inet addr:192.168.80.1 Bcast:192.168.80.255 Mask:255.255.255.0
inet6 addr: fe80::76ea:3aff:fe8f:130c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:320 errors:0 dropped:1 overruns:0 frame:0
TX packets:231 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:28815 (28.1 KiB) TX bytes:26887 (26.2 KiB)
I am now trying to create an additional virtual intereface to connect
wireless to my router as described on:
http://linuxwireless.org/en/users/Documentation/iw/vif/
with
iw dev wlan0 interface add wlan1 type station
However, ifconfig does not list the additional wlan1 interface. According to
http://linuxwireless.org/en/users/Drivers/carl9170#Multiple_Interfaces
this should be supported. What am I doing wrong? Any additional logs
etc. required to investigate?
Thank you very much for your support.
Regards,
Alex
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: carl9170: Problems setting up Virtual Interface
@ 2011-07-04 20:08 Christian Lamparter
0 siblings, 0 replies; 10+ messages in thread
From: Christian Lamparter @ 2011-07-04 20:08 UTC (permalink / raw)
To: linux-wireless
On Monday, July 04, 2011 09:46:46 PM Alex wrote:
> I am using the carl9170 interface from the 2.6.39.2 kernel with the
> newest carl9170 firmware. I have set-up an AP with hostapd. Everything
> is working so far:
>
> root@box:~# ifconfig
> mon.wlan0 Link encap:UNSPEC HWaddr <deleted>
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:27070 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:4583087 (4.3 MiB) TX bytes:0 (0.0 B)
>
> wlan0 Link encap:Ethernet HWaddr <deleted>
> inet addr:192.168.80.1 Bcast:192.168.80.255 Mask:255.255.255.0
> inet6 addr: fe80::76ea:3aff:fe8f:130c/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:320 errors:0 dropped:1 overruns:0 frame:0
> TX packets:231 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:28815 (28.1 KiB) TX bytes:26887 (26.2 KiB)
>
> I am now trying to create an additional virtual intereface to connect
> wireless to my router as described on:
>
> http://linuxwireless.org/en/users/Documentation/iw/vif/
>
> with
> iw dev wlan0 interface add wlan1 type station
>
> However, ifconfig does not list the additional wlan1 interface.
The virtual interface might not be listed because it can't be
brought up since it shares the same mac with the main interface.
so try "ifconfig -a" ?
Regards,
Chr
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: carl9170: Problems setting up Virtual Interface
[not found] ` <201107042202.27366.chunkeey@googlemail.com>
@ 2011-07-04 20:11 ` Alex
2011-07-04 20:23 ` Christian Lamparter
2013-08-14 9:32 ` moony
0 siblings, 2 replies; 10+ messages in thread
From: Alex @ 2011-07-04 20:11 UTC (permalink / raw)
To: Christian Lamparter; +Cc: linux-wireless
Great! I now get an additional interface:
wlan1-wlan0 Link encap:Ethernet HWaddr <deleted>
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
is this the one? Is the name wlan1-wlan0 that I should use to connect?
BTW: What is the interface?
mon.wlan0 Link encap:UNSPEC HWaddr <deleted>
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3521 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:585952 (572.2 KiB) TX bytes:0 (0.0 B)
On Mon, Jul 4, 2011 at 10:02 PM, Christian Lamparter
<chunkeey@googlemail.com> wrote:
> On Monday, July 04, 2011 09:46:46 PM Alex wrote:
>
>> I am using the carl9170 interface from the 2.6.39.2 kernel with the
>
>> newest carl9170 firmware. I have set-up an AP with hostapd. Everything
>
>> is working so far:
>
>>
>
>> root@box:~# ifconfig
>
>> mon.wlan0 Link encap:UNSPEC HWaddr <deleted>
>
>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
>> RX packets:27070 errors:0 dropped:0 overruns:0 frame:0
>
>> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>
>> collisions:0 txqueuelen:1000
>
>> RX bytes:4583087 (4.3 MiB) TX bytes:0 (0.0 B)
>
>>
>
>> wlan0 Link encap:Ethernet HWaddr <deleted>
>
>> inet addr:192.168.80.1 Bcast:192.168.80.255 Mask:255.255.255.0
>
>> inet6 addr: fe80::76ea:3aff:fe8f:130c/64 Scope:Link
>
>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
>> RX packets:320 errors:0 dropped:1 overruns:0 frame:0
>
>> TX packets:231 errors:0 dropped:0 overruns:0 carrier:0
>
>> collisions:0 txqueuelen:1000
>
>> RX bytes:28815 (28.1 KiB) TX bytes:26887 (26.2 KiB)
>
>>
>
>> I am now trying to create an additional virtual intereface to connect
>
>> wireless to my router as described on:
>
>>
>
>> http://linuxwireless.org/en/users/Documentation/iw/vif/
>
>>
>
>> with
>
>> iw dev wlan0 interface add wlan1 type station
>
>>
>
>> However, ifconfig does not list the additional wlan1 interface.
>
> The virtual interface might not be listed because it can't be
>
> brought up since it shares the same mac with the main interface.
>
> so try "ifconfig -a" ?
>
> Regards,
>
> Chr
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: carl9170: Problems setting up Virtual Interface
2011-07-04 20:11 ` Alex
@ 2011-07-04 20:23 ` Christian Lamparter
2011-07-04 20:29 ` Alex
2013-08-14 9:32 ` moony
1 sibling, 1 reply; 10+ messages in thread
From: Christian Lamparter @ 2011-07-04 20:23 UTC (permalink / raw)
To: Alex; +Cc: linux-wireless
On Monday, July 04, 2011 10:11:59 PM Alex wrote:
> Great! I now get an additional interface:
> wlan1-wlan0 Link encap:Ethernet HWaddr <deleted>
> BROADCAST MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>
> is this the one? Is the name wlan1-wlan0 that I should use to connect?
seems like it.
> BTW: What is the interface?
>
> mon.wlan0 Link encap:UNSPEC HWaddr <deleted>
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:3521 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:585952 (572.2 KiB) TX bytes:0 (0.0 B)
It is created by hostapd.
Regards,
Chr
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: carl9170: Problems setting up Virtual Interface
2011-07-04 20:23 ` Christian Lamparter
@ 2011-07-04 20:29 ` Alex
2011-07-04 20:42 ` Christian Lamparter
0 siblings, 1 reply; 10+ messages in thread
From: Alex @ 2011-07-04 20:29 UTC (permalink / raw)
To: Christian Lamparter; +Cc: linux-wireless
Christian,
sorry for bothering you again (thank you very much for your quick answers!!!)
I am quite new to this and don't know how to bring this up to connect
to my router (with WPA2 encryption). ifup does not work:
ifup wlan1-wlan0
Ignoring unknown interface wlan1-wlan0=wlan1-wlan0.
Could you be so kind as to point me in the right direction?
Take care,
Alex
On Mon, Jul 4, 2011 at 10:23 PM, Christian Lamparter
<chunkeey@googlemail.com> wrote:
> On Monday, July 04, 2011 10:11:59 PM Alex wrote:
>> Great! I now get an additional interface:
>> wlan1-wlan0 Link encap:Ethernet HWaddr <deleted>
>> BROADCAST MULTICAST MTU:1500 Metric:1
>> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:1000
>> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>>
>> is this the one? Is the name wlan1-wlan0 that I should use to connect?
> seems like it.
>
>> BTW: What is the interface?
>>
>> mon.wlan0 Link encap:UNSPEC HWaddr <deleted>
>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>> RX packets:3521 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:1000
>> RX bytes:585952 (572.2 KiB) TX bytes:0 (0.0 B)
> It is created by hostapd.
>
> Regards,
> Chr
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: carl9170: Problems setting up Virtual Interface
2011-07-04 20:29 ` Alex
@ 2011-07-04 20:42 ` Christian Lamparter
2011-07-04 20:54 ` Alex
0 siblings, 1 reply; 10+ messages in thread
From: Christian Lamparter @ 2011-07-04 20:42 UTC (permalink / raw)
To: Alex; +Cc: linux-wireless
On Monday, July 04, 2011 10:29:06 PM Alex wrote:
> I am quite new to this and don't know how to bring this up to connect
> to my router (with WPA2 encryption). ifup does not work:
>
> ifup wlan1-wlan0
> Ignoring unknown interface wlan1-wlan0=wlan1-wlan0.
be careful there.
The device has only one radio and there's no channel manager.
As soon as the station is up, it will start scanning and this
takes the AP out-of-order...
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: carl9170: Problems setting up Virtual Interface
2011-07-04 20:42 ` Christian Lamparter
@ 2011-07-04 20:54 ` Alex
2011-07-04 21:06 ` Christian Lamparter
0 siblings, 1 reply; 10+ messages in thread
From: Alex @ 2011-07-04 20:54 UTC (permalink / raw)
To: Christian Lamparter; +Cc: linux-wireless
OK, I will set hostapd to use the same channel as my router (my router
is on channel 3).
So I will use "channel=3" in hostapd.conf
What do I need to do to connect to the router with the virtual interface?
Any idea?
Thanks,
Alex
On Mon, Jul 4, 2011 at 10:42 PM, Christian Lamparter
<chunkeey@googlemail.com> wrote:
> On Monday, July 04, 2011 10:29:06 PM Alex wrote:
>> I am quite new to this and don't know how to bring this up to connect
>> to my router (with WPA2 encryption). ifup does not work:
>>
>> ifup wlan1-wlan0
>> Ignoring unknown interface wlan1-wlan0=wlan1-wlan0.
> be careful there.
> The device has only one radio and there's no channel manager.
> As soon as the station is up, it will start scanning and this
> takes the AP out-of-order...
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: carl9170: Problems setting up Virtual Interface
2011-07-04 20:54 ` Alex
@ 2011-07-04 21:06 ` Christian Lamparter
[not found] ` <CAMJnVwnGKH7CtxuwnTTjp+747cwLpNtp=u8VE2QAahGY9Q813Q@mail.gmail.com>
0 siblings, 1 reply; 10+ messages in thread
From: Christian Lamparter @ 2011-07-04 21:06 UTC (permalink / raw)
To: Alex; +Cc: linux-wireless
On Monday, July 04, 2011 10:54:44 PM Alex wrote:
> OK, I will set hostapd to use the same channel as my router
> (my router is on channel 3). So I will use "channel=3" in hostapd.conf
weird setup, but nevermind...
> What do I need to do to connect to the router with the virtual interface?
any iw dev wlanX connect ESSID should do it.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: carl9170: Problems setting up Virtual Interface
[not found] ` <CAMJnVwnGKH7CtxuwnTTjp+747cwLpNtp=u8VE2QAahGY9Q813Q@mail.gmail.com>
@ 2011-07-04 21:42 ` Christian Lamparter
0 siblings, 0 replies; 10+ messages in thread
From: Christian Lamparter @ 2011-07-04 21:42 UTC (permalink / raw)
To: Alex; +Cc: linux-wireless
On Monday, July 04, 2011 11:23:04 PM Alex wrote:
> # iw dev wlan0 interface add wlan1 type station
> # iw dev wlan1-wlan0 connect AlexBox
> command failed: Network is down (-100)
Just start/up the interface and try again...
this can be done by ip link or ifconfig.
However, iw connect only works with unencrypted or WEP
networks. Getting it to work with wpa_supplicant is
more tricky since you'll have to disable scanning
completely.
Regards,
Chr
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: carl9170: Problems setting up Virtual Interface
2011-07-04 20:11 ` Alex
2011-07-04 20:23 ` Christian Lamparter
@ 2013-08-14 9:32 ` moony
1 sibling, 0 replies; 10+ messages in thread
From: moony @ 2013-08-14 9:32 UTC (permalink / raw)
To: linux-wireless
Alex <alex9434@...> writes:
>
> Great! I now get an additional interface:
> wlan1-wlan0 Link encap:Ethernet HWaddr <deleted>
> BROADCAST MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Hi Alex,
did you get this to work? I'm using the same driver and procedure, but when
I try to bring up the second interface (with ifup wifi1), I get the error
device or resource busy... The first always comes up.
I don't know if vif is enabled by default on the kernelmodule. I tried to
compile it by myself (there is an option for the number of vif, and the
default is 1), but stuck on errors or missing dependencies, yet.
Best regards,
moony
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-08-14 16:55 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-04 19:46 carl9170: Problems setting up Virtual Interface Alex
[not found] ` <201107042202.27366.chunkeey@googlemail.com>
2011-07-04 20:11 ` Alex
2011-07-04 20:23 ` Christian Lamparter
2011-07-04 20:29 ` Alex
2011-07-04 20:42 ` Christian Lamparter
2011-07-04 20:54 ` Alex
2011-07-04 21:06 ` Christian Lamparter
[not found] ` <CAMJnVwnGKH7CtxuwnTTjp+747cwLpNtp=u8VE2QAahGY9Q813Q@mail.gmail.com>
2011-07-04 21:42 ` Christian Lamparter
2013-08-14 9:32 ` moony
-- strict thread matches above, loose matches on Subject: below --
2011-07-04 20:08 Christian Lamparter
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).