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

Re: Wireless AP setup: RTL8188CUS



Csanyi Pal,  2.03.2014:
> 
> However, I'm still trying to set this to work. I'm trying to test
> hostapd by using the file hostapd-minimal.conf:
> interface=wlan0
> driver=nl80211
> ssid=test
> channel=1
> bridge=br0
> <end of file>
> 
> and when I run the following command:
> 
> csanyipal@b2:~$ sudo hostapd /etc/hostapd/hostapd-minimal.conf 
> Configuration file: /etc/hostapd/hostapd-minimal.conf
> rfkill: Cannot open RFKILL control device
> Could not set interface mon.wlan0 flags: No such device
> nl80211: Failed to set interface wlan0 into AP mode
> nl80211 driver initialization failed.

Can you check whether your device is capable of being put into AP mode?  
(Some devices don't support it, as far as I know.)  I don't remember the 
exact command, but you should be able to do it using iw or iwconfig.


> but does'n lose the ssh connection anymore with Bubba Two. :)
> 
> Now I have the followings in my interfaces file:
> auto lo br0
> iface lo inet loopback
>
> # Internet on eth0
> allow-hotplug eth0
> iface eth0 inet manual
>
> # wifi on wlan0
> allow-hotplug wlan0
> iface wlan0 inet manual
> 
> # Bridge setup
> # for dhcp address
> iface br0 inet dhcp
> bridge_ports eth0 wlan0
>
> # dns-* options are implemented by the resolvconf package, if installed
> # I want to remain my wired LAN
> # LAN on eth1
> allow-hotplug eth1
> iface eth1 inet static
>     address 192.168.10.1
>     netmask 255.255.255.0
>     network 192.168.10.0
>     broadcast 192.168.10.255
>     gateway 192.168.10.1
>     dns-nameservers 192.168.10.1
>     dns-search localdomain
> <end of file>
> 
> With this setup I can't only reach the Internet, but can to ssh into
> Bubba Two.

Several questions, for clarification:

You ssh from your sid desktop into the Bubba Two, right?
Do you define a static IP on your sid desktop for this?

It's the desktop that can't reach the Internet, right?
Once you ssh into the Bubba Two, can you reach the Internet on the 
command line of the Bubba Two?
Were you able to reach the Internet from you desktop, going through the 
Bubba Two, before attempting to se up the AP?  (If not, I think you 
should try to achieve that first, before confusing things further 
with the AP setup)

For the AP, the diagram you sent in earlier messages showed it being 
attached to eth0.  Is that correct?  I would have thought it should be 
attached to your LAN (thus to eth0).  
Do you plan to define static IP addresses on the wireless devices you'll 
use with your AP, or are you planning on using dhcp?

Selim


> The command sudo ifconfig gives to me the followings:
> br0       Link encap:Ethernet  HWaddr 00:22:02:00:07:3c  
>           inet addr:95.85.167.81  Bcast:95.85.167.255
>           Mask:255.255.252.0
>           inet6 addr: fe80::222:2ff:fe00:73c/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:7577 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:58 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0 
>           RX bytes:360740 (352.2 KiB)  TX bytes:8581 (8.3 KiB)
>
> eth0      Link encap:Ethernet  HWaddr 00:22:02:00:07:3c  
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:7577 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000 
>           RX bytes:588072 (574.2 KiB)  TX bytes:8047 (7.8 KiB)
>           Base address:0x8000 
>
> eth1      Link encap:Ethernet  HWaddr 00:22:02:00:07:3d  
>           inet addr:192.168.10.1  Bcast:192.168.10.255
>           Mask:255.255.255.0
>           inet6 addr: fe80::222:2ff:fe00:73d/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:3116 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:4157 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000 
>           RX bytes:318666 (311.1 KiB)  TX bytes:343364 (335.3 KiB)
>           Base address:0xc000 
> 
> 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:2524 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:2524 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0 
>           RX bytes:215081 (210.0 KiB)  TX bytes:215081 (210.0 KiB)
> 
> wlan0     Link encap:Ethernet  HWaddr 00:e0:4c:81:92:0e  
>           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)
> 
> 
> How can I setup my home network so I can use wifi AP and the eth1 LAN at
> same time?
> 
> What can I do further to get this works?
> Any advices will be appreciated!


Reply to: