Temat: Konfiguracja Wireless Bridge Client via Client z repeater

Witam.

Zgodnie z opisem http://eko.one.pl/?p=openwrt-trybypracy … tviaclient robie konfigurację repeater'a.

Problem jest taki, że nie działa.

Jeśli w konfiguracji wifi nie ma sekcji 'cfg2' i router mam podłączony przez kabel lan pojawia się sieć MKREP i przez nią mogę połączyć się do sieci.

Ja chciałbym jednak z routera zrobić repeater, więc dodałem sekcję 'cfg2', aby sieć brał z wifi MK, a dalej rozgłąszał sieć MKREP.

Problem jest taki, że przy takiej konfiguracji nie rozgłasza MKREP i chyba nie może połączyć się do sieci WIFI MK.


...
config interface 'lan'
    option type 'bridge'
    option ifname 'eth0'
    option proto 'static'
    option ipaddr '192.168.1.4'
    option netmask '255.255.255.0'
    option gateway '192.168.1.1'
    option dns '192.168.1.1' 
    option ip6assign '60'

config interface 'wan'
    option ifname 'eth1'
    option proto 'dhcp'

config interface 'wan6'
    option ifname 'eth1'
    option proto 'dhcpv6'
config wifi-device  radio0
    option type     mac80211
    option channel  11
    option hwmode    11g
    option path    'platform/ar934x_wmac'
    option htmode    HT20
    # REMOVE THIS LINE TO ENABLE WIFI:
    #option disabled 1

config wifi-iface 'cfg2'
    option 'device'   'radio0'
    option 'network'  'lan'
    option 'mode'     'sta'
    option 'client_bridge' '1'
    option 'ssid'     'MK'
    option 'encryption' 'psk2'
        option 'key' 'xxx'

config wifi-iface 'cfg3'
    option 'device'   'radio0'
    option 'network'  'lan'
    option 'mode'     'ap'
    option 'ssid'     'MKREP'
    option 'encryption' 'psk2'
    option 'key' 'xxx'

2

Odp: Konfiguracja Wireless Bridge Client via Client z repeater

Zły poradnik sobie wybrałeś. Obecnie robi się to korzystając z relayd.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

Odp: Konfiguracja Wireless Bridge Client via Client z repeater

Cezary napisał/a:

Zły poradnik sobie wybrałeś. Obecnie robi się to korzystając z relayd.


Robiłem zgodnie z poradnikiem:

https://forum.openwrt.org/viewtopic.php?id=39077

MODE 1.


Po zmianie w konfiguracji mam błąd:

...
replayd: packet size id too short (42 < 50)
brcmfmac: brcmfmac_update_bss_info: wl dtim_assoc failed (-23)
...


I tak się w koło kręci cały czas.

4

Odp: Konfiguracja Wireless Bridge Client via Client z repeater

Na jakim routerze to robisz? Tym RPi3?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

Odp: Konfiguracja Wireless Bridge Client via Client z repeater

Cezary napisał/a:

Na jakim routerze to robisz? Tym RPi3?


Dokładnie na tym RPI.

Chce testować na nim, bo mam pewności, że zawsze będę mógł wrócić do konfiguracji oryginalnej.

6

Odp: Konfiguracja Wireless Bridge Client via Client z repeater

To jest trunk i na dodatek dopiero co dodali te sterowniki. Niekoniecznie musi to działać na trunku. Zgłoś na dev.openwrt.org

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7 (edytowany przez marcin.kasinski 2016-03-28 21:17:04)

Odp: Konfiguracja Wireless Bridge Client via Client z repeater

Cezary napisał/a:

To jest trunk i na dodatek dopiero co dodali te sterowniki. Niekoniecznie musi to działać na trunku. Zgłoś na dev.openwrt.org


OK.
Dzięki.

Jutro sprawdzę na RPI 2 i openwrt 15.05.1.

Zobaczę jak będzie.

PS. Ciekawe kiedy zrobią 15.05.1 na RPi 3.

Odp: Konfiguracja Wireless Bridge Client via Client z repeater

Jestem po weryfikacji na RPI 2 i openwrt 15.05.1.

Sieć wifi repeatera nie widzę, jakby nie wstała.

Poniżej logi bootlog.

PS. Po podłączeniu do wifi głównego routera przy konfiguracji dokładnie takiej jak w tutorialu na jakim IP podłącze się po SSH do routera z konfiguracją repeatera ?


[    0.000000] Booting Linux on physical CPU 0xf00
[    0.000000] Linux version 3.18.23 (buildbot@builder1) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r48532) ) #1 SMP Sun Jan 31 11:13:07 CET 2016
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: BCM2709
[    0.000000] cma: Reserved 16 MiB at 0x3a000000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] [bcm2709_smp_init_cpus] enter (8520->f3003010)
[    0.000000] [bcm2709_smp_init_cpus] ncores=4
[    0.000000] PERCPU: Embedded 9 pages/cpu @b9866000 s6720 r8192 d21952 u36864
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 239776
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2709.boardrev=0xa01041 bcm2709.serial=0x22813c12 smsc95xx.macaddr=B8:27:EB:81:3C:12 bcm2708_fb.fbswap=1 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  dwc_otg.lpm_enable=0 rpitestmode=1 console=tty1 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 936560K/966656K available (3376K kernel code, 218K rwdata, 1012K rodata, 168K init, 356K bss, 30096K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xbb800000 - 0xff000000   (1080 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xbb000000   ( 944 MB)
[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
[    0.000000]       .text : 0x80008000 - 0x80451354   (4389 kB)
[    0.000000]       .init : 0x80452000 - 0x8047c000   ( 168 kB)
[    0.000000]       .data : 0x8047c000 - 0x804b2ab8   ( 219 kB)
[    0.000000]        .bss : 0x804b2ab8 - 0x8050bb0c   ( 357 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:480
[    0.000000] Architected cp15 timer(s) running at 19.20MHz (virt).
[    0.000014] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 3579139424256ns
[    0.000033] Switching to timer-based delay loop, resolution 52ns
[    0.000514] Console: colour dummy device 80x30
[    0.001033] console [tty1] enabled
[    0.001067] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.001111] pid_max: default: 32768 minimum: 301
[    0.001454] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001491] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002390] CPU: Testing write buffer coherency: ok
[    0.002801] CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00
[    0.002832] [bcm2709_smp_prepare_cpus] enter
[    0.002946] Setting up static identity map for 0x127c0 - 0x12818
[    0.004747] [bcm2709_boot_secondary] cpu:1 started (0) 17
[    0.004997] CPU1: Booted secondary processor
[    0.005002] [bcm2709_secondary_init] enter cpu:1
[    0.005047] CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01
[    0.005519] [bcm2709_boot_secondary] cpu:2 started (0) 17
[    0.005715] CPU2: Booted secondary processor
[    0.005720] [bcm2709_secondary_init] enter cpu:2
[    0.005749] CPU2: thread -1, cpu 2, socket 15, mpidr 80000f02
[    0.006178] [bcm2709_boot_secondary] cpu:3 started (0) 18
[    0.006354] CPU3: Booted secondary processor
[    0.006359] [bcm2709_secondary_init] enter cpu:3
[    0.006388] CPU3: thread -1, cpu 3, socket 15, mpidr 80000f03
[    0.006460] Brought up 4 CPUs
[    0.006525] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.006547] CPU: All CPU(s) started in SVC mode.
[    0.024641] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.026475] NET: Registered protocol family 16
[    0.032071] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.060109] cpuidle: using governor ladder
[    0.090130] cpuidle: using governor menu
[    0.090548] bcm2709.uart_clock = 3000000
[    0.092000] mailbox: Broadcom VideoCore Mailbox driver
[    0.092087] bcm2708_vcio: mailbox at f300b880
[    0.092272] bcm_power: Broadcom power driver
[    0.092300] bcm_power_open() -> 0
[    0.092319] bcm_power_request(0, 8)
[    0.593006] bcm_mailbox_read -> 00000080, 0
[    0.593029] bcm_power_request -> 0
[    0.593180] Serial: AMBA PL011 UART driver
[    0.593295] dev:f1: ttyAMA0 at MMIO 0x3f201000 (irq = 83, base_baud = 0) is a PL011 rev3
[    1.021867] console [ttyAMA0] enabled
[    1.083475] SCSI subsystem initialized
[    1.087426] usbcore: registered new interface driver usbfs
[    1.093014] usbcore: registered new interface driver hub
[    1.098411] usbcore: registered new device driver usb
[    1.104941] Switched to clocksource arch_sys_counter
[    1.116430] NET: Registered protocol family 2
[    1.121776] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    1.128984] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    1.135626] TCP: Hash tables configured (established 8192 bind 8192)
[    1.142086] TCP: reno registered
[    1.145348] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    1.151320] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    1.158014] NET: Registered protocol family 1
[    1.162962] bcm2708_dma: DMA manager at f3007000
[    1.167734] bcm2708_gpio: bcm2708_gpio_probe 8049b488
[    1.173277] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB)
[    1.182703] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    1.190239] msgmni has been set to 1861
[    1.194441] io scheduler noop registered
[    1.198411] io scheduler deadline registered
[    1.202701] io scheduler cfq registered (default)
[    1.208647] BCM2708FB: allocated DMA memory fa400000
[    1.213649] BCM2708FB: allocated DMA channel 0 @ f3007000
[    1.225067] Console: switching to colour frame buffer device 82x26
[    1.236769] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver
[    1.245768] uart-pl011 dev:f1: no DMA platform data
[    1.252275] vc-cma: Videocore CMA driver
[    1.257647] vc-cma: vc_cma_base      = 0x00000000
[    1.263759] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.270537] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.284999] brd: module loaded
[    1.293294] loop: module loaded
[    1.297931] vchiq: vchiq_init_state: slot_zero = 0xba000000, is_master = 0
[    1.307069] usbcore: registered new interface driver smsc95xx
[    1.314234] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.521567] Core Release: 2.80a
[    1.525997] Setting default values for core params
[    1.532075] Finished setting default values for core params
[    1.739242] Using Buffer DMA mode
[    1.743807] Periodic Transfer Interrupt Enhancement - disabled
[    1.750961] Multiprocessor Interrupt Enhancement - disabled
[    1.757884] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.763577] Dedicated Tx FIFOs mode
[    1.768738] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xba414000 dma = 0xfa414000 len=9024
[    1.781358] FIQ FSM acceleration enabled for :
[    1.781358] Non-periodic Split Transactions
[    1.781358] Periodic Split Transactions
[    1.781358] High-Speed Isochronous Endpoints
[    1.803453] WARN::hcd_init_fiq:412: FIQ on core 1 at 0x80250b74
[    1.810808] WARN::hcd_init_fiq:413: FIQ ASM at 0x8000d5a8 length 36
[    1.818489] WARN::hcd_init_fiq:438: MPHI regs_base at 0xbb808000
[    1.825929] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.832245] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.840946] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.847874] Init: Port Power? op_state=1
[    1.853150] Init: Power Port (0)
[    1.857955] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.866161] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.874771] usb usb1: Product: DWC OTG Controller
[    1.880849] usb usb1: Manufacturer: Linux 3.18.23 dwc_otg_hcd
[    1.887971] usb usb1: SerialNumber: bcm2708_usb
[    1.894519] hub 1-0:1.0: USB hub found
[    1.899667] hub 1-0:1.0: 1 port detected
[    1.905625] usbcore: registered new interface driver uas
[    1.912321] usbcore: registered new interface driver usb-storage
[    1.919701] mousedev: PS/2 mouse device common for all mice
[    1.926627] bcm2708 watchdog, heartbeat=10 sec (nowayout=0)
[    1.933541] sdhci: Secure Digital Host Controller Interface driver
[    1.941043] sdhci: Copyright(c) Pierre Ossman
[    1.946826] DMA channels allocated for the MMC driver
[    1.984965] Load BCM2835 MMC driver
[    1.993290] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.000889] TCP: cubic registered
[    2.005566] NET: Registered protocol family 17
[    2.012443] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    2.028895] Bridge firewalling registered
[    2.036347] 8021q: 802.1Q VLAN Support v1.8
[    2.044402] Registering SWP/SWPB emulation handler
[    2.051162] vc-sm: Videocore shared memory driver
[    2.057267] [vc_sm_connected_init]: start
[    2.063104] [vc_sm_connected_init]: end - returning 0
ř[    2.070209] Waiting for root device /dev/mmcblk0p2...
[    2.092464] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.105078] Indeed it is in host mode hprt0 = 00021501
[    2.105668] mmc0: new high speed SDXC card at address e624
[    2.118783] mmcblk0: mmc0:e624 SU64G 59.4 GiB 
[    2.125984]  mmcblk0: p1 p2
[    2.190296] EXT4-fs (mmcblk0p2): warning: mounting unchecked fs, running e2fsck is recommended
[    2.203548] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
[    2.214192] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.222160] Freeing unused kernel memory: 168K (80452000 - 8047c000)
[    2.295026] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.303369] Indeed it is in host mode hprt0 = 00001101
[    2.322542] init: Console is alive
[    2.327939] init: - watchdog -
[    2.505301] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    2.513679] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.523152] hub 1-1:1.0: USB hub found
[    2.528655] hub 1-1:1.0: 5 ports detected
[    2.814969] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.935243] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.943707] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.955267] smsc95xx v1.0.4
[    3.018033] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:81:3c:12
[    3.125045] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    3.246383] usb 1-1.2: New USB device found, idVendor=7392, idProduct=7811
[    3.254922] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.263871] usb 1-1.2: Product: 802.11n WLAN Adapter
[    3.270400] usb 1-1.2: Manufacturer: Realtek
[    3.276190] usb 1-1.2: SerialNumber: 00e04c000001
[    3.333365] init: - preinit -
[    3.391256] random: procd urandom read with 77 bits of entropy available
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    6.459858] mount_root: mounting /dev/root
[    6.467561] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Failed to find nls_cp437. Maybe it is a built in module ?
Failed to find nls_iso8859-1. Maybe it is a built in module ?
Failed to find fat. Maybe it is a built in module ?
Failed to find vfat. Maybe it is a built in module ?
mount: mounting /dev/mmcblk0p1 on /mnt failed: No such device
umount: can't umount /mnt: Invalid a[    6.506308] procd: - early -
rgument
[    6.512222] procd: - watchdog -
[    7.151789] procd: - ubus -
[    8.157858] procd: - init -
Please press Enter to activate this console.
[    8.607036] NET: Registered protocol family 10
[    8.632052] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    8.648601] hidraw: raw HID events driver (C) Jiri Kosina
[    8.673241] Loading modules backported from Linux version master-2015-03-09-0-g141f155
[    8.683900] Backport generated by backports.git backports-20150129-0-gdd4a670
[    8.694530] ip_tables: (C) 2000-2006 Netfilter Core Team
[    8.706801] nf_conntrack version 0.5.0 (14892 buckets, 59568 max)
[    8.798587] usbcore: registered new interface driver usbhid
[    8.805651] usbhid: USB HID core driver
[    8.818698] xt_time: kernel timezone is -0000
[    8.836046] cfg80211: Calling CRDA to update world regulatory domain
[    8.844067] cfg80211: World regulatory domain updated:
[    8.850962] cfg80211:  DFS Master region: unset
[    8.855438] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    8.869362] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    8.880436] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz, 92000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    8.893189] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[    8.904690] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    8.917801] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[    8.930920] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[    8.942687] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    8.954478] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[    8.999020] PPP generic driver version 2.4.2
[    9.006352] NET: Registered protocol family 24
[    9.024799] rtl8192cu: Chip version 0x10
[    9.088345] random: nonblocking pool is initialized
[    9.111002] rtl8192cu: MAC address: 80:1f:02:c9:30:bf
[    9.118010] rtl8192cu: Board Type 0
[    9.123466] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
[    9.131182] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
[    9.141972] usbcore: registered new interface driver rtl8192cu
[   11.897048] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   11.908391] device eth0 entered promiscuous mode
[   11.917176] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   12.707648] rtl8192cu: MAC auto ON okay!
[   12.744846] rtl8192cu: Tx queue select: 0x05
[   13.325805] IPv6: ADDRCONF(NETDEV_UP): wlan0-1: link is not ready
[   13.337826] device wlan0-1 entered promiscuous mode

9

Odp: Konfiguracja Wireless Bridge Client via Client z repeater

Na takim jakim wifi dostało od głównego routera.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

10

Odp: Konfiguracja Wireless Bridge Client via Client z repeater

Cezary napisał/a:

Na takim jakim wifi dostało od głównego routera.


Tylko problem jest taki, że na głównym w "WIFI Associated Stations" nie widzę tej maszyny.

11

Odp: Konfiguracja Wireless Bridge Client via Client z repeater

Sprawdź czy literówki w ustawieniach wifi nie zrobiłeś, czy dobre hasło ustawiłeś itd. Jak się nie połączy to oczywiście nie będzie działać repeater.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

12

Odp: Konfiguracja Wireless Bridge Client via Client z repeater

Cezary napisał/a:

Sprawdź czy literówki w ustawieniach wifi nie zrobiłeś, czy dobre hasło ustawiłeś itd. Jak się nie połączy to oczywiście nie będzie działać repeater.


No właśnie jest OK.

config wifi-device  radio0
    option type     mac80211
    option channel  11
    option hwmode    11g
    option path    'platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0'
    option htmode    HT20
    # REMOVE THIS LINE TO ENABLE WIFI:
    option disabled 0

config wifi-iface
    option ssid 'MK'
    option encryption 'psk2'        # Set wep, psk or psk2 for WEP, WPA or WPA2
    option device 'radio0'
    option mode 'sta'
    option network 'wwan'
    option key 'moje haslo do routera glownego na100% poprawne'

config wifi-iface
    option device 'radio0'
    option mode 'ap'
    option ssid 'MKRepeaterWirelessNetwork'
    option encryption 'psk2'
    option key 'hasło repeatera'
    option network 'lan'

13

Odp: Konfiguracja Wireless Bridge Client via Client z repeater

Ustaw zwykłego klienta ap i zobacz czy się połączy.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

14 (edytowany przez marcin.kasinski 2016-03-30 18:48:26)

Odp: Konfiguracja Wireless Bridge Client via Client z repeater

Cezary napisał/a:

Ustaw zwykłego klienta ap i zobacz czy się połączy.


Zwykły klient działa tak, ze na głównym ruterze widzę, że dostał ip 192.168.1.165 z wifi, ale nie mogę się do tego  dobić ani na port 80, ani na port 22 będąc w tej samej sieci WIFI rutera głównego.

Firewall wyłączony.

Konfiguracja poniżej.

config interface 'loopback'
    option ifname 'lo'
    option proto 'static'
    option ipaddr '127.0.0.1'
    option netmask '255.0.0.0'

config interface 'lan'
    option ifname 'eth0'
    option type 'bridge'
    option proto 'static'
    option ipaddr '192.168.1.6'
    option netmask '255.255.255.0'
    option gateway '192.168.1.1'
    option dns '192.168.1.1'
    option ip6assign '60'

config globals 'globals'
    option ula_prefix 'fda4:7e68:4072::/48'

config interface 'wwan'
    option proto 'dhcp'



config wifi-device 'radio0'
    option type 'mac80211'
    option hwmode '11g'
    option path 'platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0'
    option htmode 'HT20'
    option txpower '20'
    option country '00'
    option disabled '0'
    option channel '11'

config wifi-iface
    option network 'wwan'
    option ssid 'MK'
    option encryption 'psk2'
    option device 'radio0'
    option mode 'sta'
    option bssid 'XX:XX...'
    option key 'haslo'

15

Odp: Konfiguracja Wireless Bridge Client via Client z repeater

Jeżeli na wifi dostaje 1.x  to na lan nie możesz mieć takiej samej adresacji.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

16

Odp: Konfiguracja Wireless Bridge Client via Client z repeater

Cezary napisał/a:

Jeżeli na wifi dostaje 1.x  to na lan nie możesz mieć takiej samej adresacji.

OK.
Jestem lama.

Poprawiłem to.

Status.

Zwykły klient działa ok.

w luci widzę, że jestem połączony a w terminalu mam:

wlan0     Link encap:Ethernet  HWaddr 80:1F:02:C9:30:BF
          inet addr:192.168.1.165  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::821f:2ff:fec9:30bf/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2141 (2.0 KiB)  TX bytes:1952 (1.9 KiB)

          

Jest internet i działa poprawnie.

Jak dodam drugą konfigurację WIFI AP master, to jakby rozłączało się z wifi i mogę dobić się do RPI tylko poprzez LAN.

Wtedy nie ma wlan, tylko

wlan0-1   Link encap:Ethernet  HWaddr 82:1F:02:C9:30:BF
          UP 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)

17

Odp: Konfiguracja Wireless Bridge Client via Client z repeater

To może znaczyć że karta którą masz może nie potrafić działać jednocześnie w sta i ap. Co by było dziwne.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

18 (edytowany przez marcin.kasinski 2016-03-30 20:28:52)

Odp: Konfiguracja Wireless Bridge Client via Client z repeater

Cezary napisał/a:

To może znaczyć że karta którą masz może nie potrafić działać jednocześnie w sta i ap. Co by było dziwne.

A nie można tego jakąś komendą sprawdzić ?

iw list
Wiphy phy0
        max # scan SSIDs: 4
        max scan IEs length: 2257 bytes
        RTS threshold: 2347
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
                 * mesh point
                 * P2P-client
                 * P2P-GO

19

Odp: Konfiguracja Wireless Bridge Client via Client z repeater

Właśnie sprawdziłeś uruchomienie AP i sta kończy się padem jednego z nich...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.