User Tools

Site Tools


flyrouter:sinus1054_bridge

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

flyrouter:sinus1054_bridge [2018/04/09 15:36] (current)
Line 1: Line 1:
 +===== Sinus1054 - Пример настройки WiFi =====
 +
 +\\
 +**Оригинальный вариант фаила /​etc/​network/​interfaces**
 +
 +<​code|123>​
 +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`
 +</​code>​
 +\\
 +
 +----
 +
 +\\
 +**Фаил /​etc/​network/​interfaces для работы роутера в режиме bridge+wds**
 +
 +<​code|123>​
 +#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`
 +</​code>​
 +\\
 +
 +----
 +
 +\\
 +**Пример выполнения команды logread | grep wlctl**
 +<​code>​
 +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 ]
 +</​code>​
 +
 +
 +----
 +
 +\\
 +**Материал в стадии форматирования**
 +
 +Режим AP, шифрация WPA. NAS активирован.\\
 +<​code|Режим 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
 +</​code>​
 +
 +Режим Client, без шифрации\\
 +<​code|Режим 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
 +</​code>​
 +
 +Режим Client, шифрация WEP\\
 +<​code|Режим 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
 +</​code>​
 +
 +Режим Client, шифрация WPA\\
 +<​code|Режим 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  ​
 +</​code>​
 +
 +Режим WDS, шифрация WEP.\\
 +<​code|Режим 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
 +</​code>​
 +
 +Режим WDS + AP, шифрация WEP. Необходимо активировать NAS (x).\\
 +<​code|Режим 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
 +</​code>​
 +
 +Режим AP, шифрация WEP. Необходимо активировать NAS (x).\\
 +<​code|Режим 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
 +</​code>​
 +
 +Вывод команды scanresults в общий лог\\
 +<​code|Вывод команды scanresults в общий лог>
 +    pre-up sleep 1
 +    pre-up wlctl scan
 +    pre-up sleep 1
 +    pre-up wlctl scanresults | logger -t wlctl.scanresults
 +</​code>​
 +
 +
 +
 +
 +
 +
 +
 +
 +
  
flyrouter/sinus1054_bridge.txt · Last modified: 2018/04/09 15:36 (external edit)