User Tools

Site Tools


flyrouter:sinus1054_bridge

Sinus1054 - Пример настройки WiFi


Оригинальный вариант фаила /etc/network/interfaces

auto eth0
iface eth0 inet static
    address 192.168.1.1
    netmask 255.255.255.0
    gateway 192.168.1.100
 
auto br1
iface br1 inet static
    address 192.168.111.1  
    netmask 255.255.255.0
    bridge_ports wl0 wds0.2
    pre-up wlctl wep 1
    pre-up wlctl channel 7
    pre-up wlctl wds 00:00:00:00:00:00
    pre-up ifconfig wl0 up
    pre-up wlctl addwep wds0.2 "password-2009"
    pre-up wlctl scan
    pre-up sleep 1
    pre-up wlctl scanresults | logger -t wlctl.scanresults
    pre-up wlctl essid `cat /etc/hostname`




Фаил /etc/network/interfaces для работы роутера в режиме bridge+wds

#auto eth0
#iface eth0 inet static
#    address 192.168.1.1
#    netmask 255.255.255.0
#    gateway 192.168.1.100
 
auto br1
iface br1 inet static
    address 192.168.1.1  
    netmask 255.255.255.0
    bridge_ports wl0 wds0.2 eth0
    pre-up wlctl wep 1
    pre-up wlctl channel 7
    pre-up wlctl wds 00:26:5A:A6:29:60
    pre-up ifconfig wl0 up
    pre-up wlctl addwep wds0.2 "BEFDDBD2B1DBF5122C8C97FD50"
    pre-up wlctl scan
    pre-up sleep 1
    pre-up wlctl scanresults | logger -t wlctl.scanresults
    pre-up wlctl essid `cat /etc/hostname`




Пример выполнения команды logread | grep wlctl

Jan  1 02:00:55 (none) user.notice wlctl.scanresults: SSID: "Bigger"
Jan  1 02:00:55 (none) user.notice wlctl.scanresults: Mode: Managed RSSI: -40 dBm noise: -84 dBm Channel: 7
Jan  1 02:00:55 (none) user.notice wlctl.scanresults: BSSID: 00:35:A2:E1:F3:2C Capability: ESS WEP ShortSlot 
Jan  1 02:00:55 (none) user.notice wlctl.scanresults: Supported Rates: [ 1(b) 2(b) 5.5(b) 11(b) 18 24 36 54 6 9 12 48 ]


Материал в стадии форматирования

Режим AP, шифрация WPA. NAS активирован.

AP, шифрация WPA. NAS активирован.
auto br1                 
iface br1 inet static
    address 192.168.111.1
    netmask 255.255.255.0
    bridge_ports wl0
    pre-up wlctl ap 1
    pre-up wlctl wet 1
    pre-up wlctl eap 0
    pre-up wlctl channel 7
    pre-up wlctl txpwr 237

Режим Client, без шифрации

Client, без шифрации
auto br1                 
iface br1 inet static    
    address 192.168.111.1
    netmask 255.255.255.0
    bridge_ports wl0
    pre-up wlctl ap 0
    pre-up wlctl wet 1
    pre-up wlctl wep 0
    pre-up ifconfig wl0 up
    pre-up wlctl join PROLETARSKIY-1 amode open

Режим Client, шифрация WEP

Client, шифрация WEP
auto br1                 
iface br1 inet static    
    address 192.168.111.1
    netmask 255.255.255.0
    bridge_ports wl0
    pre-up wlctl ap 0
    pre-up wlctl wet 1
    pre-up wlctl wep 1
    pre-up ifconfig wl0 up
    pre-up wlctl join PROLETARSKIY-1 key password-2009 amode shared

Режим Client, шифрация WPA

Client, шифрация WPA
auto br1                 
iface br1 inet static    
    address 172.28.200.79
    netmask 255.255.255.128
    bridge_ports wl0                       
    pre-up wlctl ap 0                                     
    pre-up wlctl wet 1                                    
    pre-up wlctl tkip 1                                          
    pre-up wlctl wpa_auth 2                                       
    pre-up wlctl wsec 2
    pre-up ifconfig wl0 up                                           
    pre-up wlctl join CRMIFC key crmifc2008fly amode wpapsk  

Режим WDS, шифрация WEP.

WDS, шифрация WEP.
auto br1                 
iface br1 inet static    
    address 192.168.111.1
    netmask 255.255.255.0
    bridge_ports wl0 wds0.2
    pre-up wlctl ap 0
    pre-up wlctl wet 1
    pre-up wlctl wep 1    
    pre-up wlctl channel 7 
    pre-up wlctl wds 00:03:C9:54:2B:9E
    pre-up ifconfig wl0 up
    pre-up wlctl addwep wds0.2 password-2009

Режим WDS + AP, шифрация WEP. Необходимо активировать NAS (x).

WDS + AP, шифрация WEP. Необходимо активировать NAS (x).
auto br1                 
iface br1 inet static    
    address 192.168.111.1
    netmask 255.255.255.0
    bridge_ports wl0 wds0.2
    pre-up wlctl ap 1
    pre-up wlctl wet 1
    pre-up wlctl wep 1    
    pre-up wlctl channel 7 
    pre-up wlctl wds 00:03:C9:54:2B:9E
    pre-up ifconfig wl0 up
    pre-up wlctl addwep wds0.2 password-2009

Режим AP, шифрация WEP. Необходимо активировать NAS (x).

AP, шифрация WEP. Необходимо активировать NAS (x).
auto br1                 
iface br1 inet static
    address 192.168.111.1
    netmask 255.255.255.0
    bridge_ports wl0
    pre-up wlctl ap 1
    pre-up wlctl wet 1
    pre-up wlctl wep 1
    pre-up wlctl channel 7

Вывод команды scanresults в общий лог

команды scanresults в общий лог
    pre-up sleep 1
    pre-up wlctl scan
    pre-up sleep 1
    pre-up wlctl scanresults | logger -t wlctl.scanresults
flyrouter/sinus1054_bridge.txt · Last modified: 2018/04/09 15:36 (external edit)