1 (edytowany przez wojtula 2014-11-23 00:12:46)

Temat: bridge

Witajcie,
staram się stworzyć coś, połączenie pomiędzy dwoma routerami. Mam z tym spory problem, bo siedzę nad tym już 7 godzinę i nic.
Bardzo proszę o podpowiedzi, za dużo nowych pojęć, których nie do końca rozumiem.

Całość ma wyglądać tak:

internet po kablu <-- router1 ----(wifi)----router2----(wifi)-----clients
czyli, mam internet po kablu. Kabel trafia do jakieś starego Pentagrama. Dalej za nim chcę bezprzewodowo podłączyć TP-LINKa, a do niego laptopa, komórkę etc, również bezprzewodowo.

Czytałem kilka podobnych wątków, ale żaden mi nie pomógł - z racji że np tu mam atherosa.


router1 - Pentagram Cerebus, adres 192.168.1.100, ssid 'ferdek'
router2 - TP-LINK WR-841N, adres 192.168.1.1 (tu wgrałem już openwrt 14.07)

Proszę bardzo o porady, co mam dalej zrobić.

2

Odp: bridge

Zainstalować relayd: http://openrouter.info/forum/viewtopic. … &t=678 http://wiki.openwrt.org/doc/recipes/relayclient

Lub jeszcze prościej - zainstalować gargoyle i wyklikać to z gui.

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

3

Odp: bridge

Na openwrt mogę wgrać gargoyle?
Sysupgrade?
Router jest w wersji v9 tylko BB pasowało do niego.

4

Odp: bridge

A to nie, na v9 nie ma jeszcze gargoyle. Zostaje ci w/w rozwiązanie.

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

5 (edytowany przez wojtula 2014-11-23 09:30:42)

Odp: bridge

to, co wysłałeś opiera się o stare założenia relayed, czyli nie uzwględnia np. lokalny adres ipaddr

Nie wiem, czy jak zrobie to wg pierwszej metody czy aby na pewno zadziala tak aby kazdy w sieci mogl "widziec sie"
znalazłem, coś nowszego ale nie wiem czy jest "dobre". Czy mógłbyś spojrzeć na poniższą konfigurację (już wpisałem swoje ustawienia, chcę to teraz tylko zaaplikować):


opkg update
opkg install relayd
/etc/init.d/relayd enable
.
.
/etc/config/wireless
config wifi-device 'radio0'
        #blahblah (default settings)
    option channel '1'                     #Match with the main wireless network channel
    option disabled '0'

config wifi-iface
    option ssid 'ferdek'
    option encryption 'WPA2'                # Set wep, psk or psk2 for WEP, WPA or WPA2
    option device 'radio0'
    option mode 'sta'
    option network 'wwan'
    option key 'QWRtGhj78LL2'         #Set password for WPA2

config wifi-iface
    option device 'radio0'
    option mode 'ap'
    option ssid 'ferdek-cam'
    option encryption 'WPA2'
    option key 'QWRtGhj78LL2'
    option network 'lan'
.
.
/etc/config/network
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.10.1'         # TEGO NIE ROZUMIEM, DLACZEGO .10.1?
    option gateway '192.168.1.100'   # Your main router's IP
    option netmask '255.255.255.0'
    option dns     '192.168.1.100'

config interface 'wwan'
    option proto 'static'
    option ipaddr '192.168.1.254' #match you main router network 192.168.x.254
    option netmask '255.255.255.0'
    option gateway '192.168.1.100'   #your main router's IP

config 'interface' 'stabridge'
    option 'proto' 'relay'
    option 'network' 'lan wwan'
    option ipaddr '192.168.1.254' #Same IP as in WWAN
.
.
/etc/config/dhcp
config dhcp lan
    option interface    lan
    option start     100
    option limit    150
    option leasetime    12h
    option ignore    1

config dhcp wan
    option interface    wan
    option ignore    1

As we want to make all the same network, we can disable the firewall:
/etc/init.d/firewall stop
/etc/init.d/firewall disable

6

Odp: bridge

Prezentowane rozwiązanie wykorzystywało dhcp do pobrania adresu, ty ustawiłeś po prostu na stałe to.

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

7

Odp: bridge

Tu też jest dhcp ale z głównego routera. Czy możesz sprawdzić powyższe ustawienia i odpowiedzieć mi na pytanie a propos adresu ipaddr w ustawieniach które zaznaczyłem?

8

Odp: bridge

Gdzie w tych ustawieniach widzisz dhcp dla routera? smile

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

9 (edytowany przez wojtula 2014-11-23 10:31:27)

Odp: bridge

zrozumiałem, że powyższe ustawienia gwarantują mi podłączenie drugiego routera do pierwszego za pomocą WIFI. Drugi jest tylko poszerzeniem zakresu wifi. Wszystkie ustawienia w tym DHCP myślałem że brane są z tego pierwszego, czyli w moim przypadku 192.168.1.100. Co zatem powinienem zmienić w ustawieniach aby tak było?

Ostatecznie wszystkie hosty chciałbym mogły wzajemnie widzieć się, pingować i brać adresy z DHCP pierwszego routera.

10

Odp: bridge

W tym co pokazałeś masz na stałe ustawione adresy. Chyba że piszesz o ustawieniach komputera podłączonego do tego drugiego, wtedy tak, on powinien z dhcp sobie pobrać.

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

11

Odp: bridge

Właśnie o to mi chodziło. Tak aby klienci, którzy podłącza się do sieci (niezależnie który router) dostaną adresy z DHCPa pierwszego routera, czyli bramy.

12

Odp: bridge

Tak z definicji to właśnie działa.

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

13 (edytowany przez wojtula 2014-11-23 11:40:14)

Odp: bridge

Teraz ustawiłem wszystko i wgrałem kilka pakietów
relayd_2014-06-29-8b20ffae06b9b7fcc6fb52d3b8a80b45ed424e39_ar71xx.ipk
luci-proto-ppp_0.12+svn-r10530-1_ar71xx.ipk
luci-proto-relay_0.12+svn-r10530-1_ar71xx.ipk

, pomimo to interfejsy nie wstają:
PunBB bbcode test

po naciśnięciu magicznego LINKU, pojawiają się pakiety, które w sumie już są zainstalowane...

PunBB bbcode test

14

Odp: bridge

Nie pokazuj screenshotów z luci tylko konfigi i logi.

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

15 (edytowany przez wojtula 2014-11-23 11:52:41)

Odp: bridge

logi:

Sun Nov 23 10:45:26 2014 kern.notice kernel: [    0.000000] Linux version 3.10.49 (bb@builder1) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r42625) ) #3 Wed Oct 1 14:00:51 CEST 2014
Sun Nov 23 10:45:26 2014 kern.debug kernel: [    0.000000] MyLoader: sysp=aaaaaaa2, boardp=2aaaaaaa, parts=aa22aaaa
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.000000] bootconsole [early0] enabled
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.000000] SoC: Qualcomm Atheros QCA9533 rev 1
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.000000] Clocks: CPU:550.000MHz, DDR:398.193MHz, AHB:199.096MHz, Ref:25.000MHz
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.000000] Determined physical RAM map:
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.000000]  memory: 02000000 @ 00000000 (usable)
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.000000] Initrd not found or empty - disabling initrd
Sun Nov 23 10:45:26 2014 kern.warn kernel: [    0.000000] Zone ranges:
Sun Nov 23 10:45:26 2014 kern.warn kernel: [    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
Sun Nov 23 10:45:26 2014 kern.warn kernel: [    0.000000] Movable zone start for each node
Sun Nov 23 10:45:26 2014 kern.warn kernel: [    0.000000] Early memory node ranges
Sun Nov 23 10:45:26 2014 kern.warn kernel: [    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
Sun Nov 23 10:45:26 2014 kern.debug kernel: [    0.000000] On node 0 totalpages: 8192
Sun Nov 23 10:45:26 2014 kern.debug kernel: [    0.000000] free_area_init_node: node 0, pgdat 80334b60, node_mem_map 81000000
Sun Nov 23 10:45:26 2014 kern.debug kernel: [    0.000000]   Normal zone: 64 pages used for memmap
Sun Nov 23 10:45:26 2014 kern.debug kernel: [    0.000000]   Normal zone: 0 pages reserved
Sun Nov 23 10:45:26 2014 kern.debug kernel: [    0.000000]   Normal zone: 8192 pages, LIFO batch:0
Sun Nov 23 10:45:26 2014 kern.warn kernel: [    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Sun Nov 23 10:45:26 2014 kern.warn kernel: [    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Sun Nov 23 10:45:26 2014 kern.debug kernel: [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
Sun Nov 23 10:45:26 2014 kern.debug kernel: [    0.000000] pcpu-alloc: [0] 0
Sun Nov 23 10:45:26 2014 kern.warn kernel: [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Sun Nov 23 10:45:26 2014 kern.notice kernel: [    0.000000] Kernel command line:  board=TL-WR841N-v9 console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.000000] Writing ErrCtl register=00000000
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.000000] Readback ErrCtl register=00000000
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.000000] Memory: 28588k/32768k available (2369k kernel code, 4180k reserved, 621k data, 272k init, 0k highmem)
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.000000] NR_IRQS:51
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.050000] Calibrating delay loop... 366.18 BogoMIPS (lpj=1830912)
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.060000] pid_max: default: 32768 minimum: 301
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.060000] Mount-cache hash table entries: 512
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.070000] NET: Registered protocol family 16
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.070000] MIPS: machine is TP-LINK TL-WR841N/ND v9
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.490000] bio: create slab <bio-0> at 0
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.500000] Switching to clocksource MIPS
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.500000] NET: Registered protocol family 2
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.510000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.510000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.520000] TCP: Hash tables configured (established 512 bind 512)
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.520000] TCP: reno registered
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.530000] UDP hash table entries: 256 (order: 0, 4096 bytes)
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.530000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.540000] NET: Registered protocol family 1
Sun Nov 23 10:45:26 2014 kern.debug kernel: [    0.540000] PCI: CLS 0 bytes, default 32
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.560000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.570000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.580000] msgmni has been set to 55
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.580000] io scheduler noop registered
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.580000] io scheduler deadline registered (default)
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.590000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.620000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.630000] console [ttyS0] enabled, bootconsole disabled
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.640000] ath79-spi ath79-spi: master is unqueued, this is deprecated
Sun Nov 23 10:45:26 2014 kern.warn kernel: [    0.650000] m25p80 spi0.0: found s25sl032p, expected m25p80
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.660000] m25p80 spi0.0: s25sl032p (4096 Kbytes)
Sun Nov 23 10:45:26 2014 kern.notice kernel: [    0.660000] 5 tp-link partitions found on MTD device spi0.0
Sun Nov 23 10:45:26 2014 kern.notice kernel: [    0.670000] Creating 5 MTD partitions on "spi0.0":
Sun Nov 23 10:45:26 2014 kern.notice kernel: [    0.670000] 0x000000000000-0x000000020000 : "u-boot"
Sun Nov 23 10:45:26 2014 kern.notice kernel: [    0.680000] 0x000000020000-0x00000012e660 : "kernel"
Sun Nov 23 10:45:26 2014 kern.warn kernel: [    0.690000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
Sun Nov 23 10:45:26 2014 kern.notice kernel: [    0.700000] 0x00000012e660-0x0000003f0000 : "rootfs"
Sun Nov 23 10:45:26 2014 kern.warn kernel: [    0.710000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
Sun Nov 23 10:45:26 2014 kern.notice kernel: [    0.720000] mtd: device 2 (rootfs) set to be root filesystem
Sun Nov 23 10:45:26 2014 kern.notice kernel: [    0.730000] 1 squashfs-split partitions found on MTD device rootfs
Sun Nov 23 10:45:26 2014 kern.notice kernel: [    0.730000] 0x000000340000-0x0000003f0000 : "rootfs_data"
Sun Nov 23 10:45:26 2014 kern.notice kernel: [    0.740000] 0x0000003f0000-0x000000400000 : "art"
Sun Nov 23 10:45:26 2014 kern.notice kernel: [    0.750000] 0x000000020000-0x0000003f0000 : "firmware"
Sun Nov 23 10:45:26 2014 kern.info kernel: [    0.780000] libphy: ag71xx_mdio: probed
Sun Nov 23 10:45:26 2014 kern.info kernel: [    1.330000] ag71xx-mdio.1: Found an AR934X built-in switch
Sun Nov 23 10:45:26 2014 kern.info kernel: [    2.370000] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
Sun Nov 23 10:45:26 2014 kern.info kernel: [    2.930000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd042, driver=Generic PHY]
Sun Nov 23 10:45:26 2014 kern.info kernel: [    2.940000] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
Sun Nov 23 10:45:26 2014 kern.info kernel: [    2.950000] TCP: cubic registered
Sun Nov 23 10:45:26 2014 kern.info kernel: [    2.950000] NET: Registered protocol family 17
Sun Nov 23 10:45:26 2014 kern.notice kernel: [    2.960000] Bridge firewalling registered
Sun Nov 23 10:45:26 2014 kern.info kernel: [    2.960000] 8021q: 802.1Q VLAN Support v1.8
Sun Nov 23 10:45:26 2014 kern.info kernel: [    2.970000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Sun Nov 23 10:45:26 2014 kern.info kernel: [    2.980000] Freeing unused kernel memory: 272K (8034c000 - 80390000)
Sun Nov 23 10:45:26 2014 kern.info kernel: [    8.130000] eth0: link up (1000Mbps/Full duplex)
Sun Nov 23 10:45:26 2014 kern.notice kernel: [    9.860000] jffs2: notice: (322) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 24 of xref (0 dead, 9 orphan) found.
Sun Nov 23 10:45:26 2014 kern.info kernel: [    9.900000] eth0: link down
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.380000] NET: Registered protocol family 10
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.400000] nf_conntrack version 0.5.0 (450 buckets, 1800 max)
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.410000] ip6_tables: (C) 2000-2006 Netfilter Core Team
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.430000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.430000] Backport generated by backports.git backports-20140320-37-g5c33da0
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.440000] ip_tables: (C) 2000-2006 Netfilter Core Team
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.500000] xt_time: kernel timezone is -0000
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.530000] cfg80211: Calling CRDA to update world regulatory domain
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.530000] cfg80211: World regulatory domain updated:
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.540000] cfg80211:  DFS Master region: unset
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.540000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.550000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.560000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.570000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.580000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.590000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.590000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.600000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.610000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.680000] PPP generic driver version 2.4.2
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.700000] NET: Registered protocol family 24
Sun Nov 23 10:45:26 2014 kern.debug kernel: [   11.760000] ath: EEPROM regdomain: 0x0
Sun Nov 23 10:45:26 2014 kern.debug kernel: [   11.760000] ath: EEPROM indicates default country code should be used
Sun Nov 23 10:45:26 2014 kern.debug kernel: [   11.760000] ath: doing EEPROM country->regdmn map search
Sun Nov 23 10:45:26 2014 kern.debug kernel: [   11.760000] ath: country maps to regdmn code: 0x3a
Sun Nov 23 10:45:26 2014 kern.debug kernel: [   11.760000] ath: Country alpha2 being used: US
Sun Nov 23 10:45:26 2014 kern.debug kernel: [   11.760000] ath: Regpair used: 0x3a
Sun Nov 23 10:45:26 2014 kern.debug kernel: [   11.770000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.780000] cfg80211: Calling CRDA for country: US
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.790000] cfg80211: Regulatory domain changed to country: US
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.790000] cfg80211:  DFS Master region: FCC
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.800000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.810000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.810000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A)
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.820000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (0 s)
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.830000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.840000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
Sun Nov 23 10:45:26 2014 kern.info kernel: [   11.850000] ieee80211 phy0: Atheros AR9531 Rev:1 mem=0xb8100000, irq=2
Sun Nov 23 10:45:29 2014 authpriv.info dropbear[740]: Not backgrounding
Sun Nov 23 10:45:31 2014 user.emerg syslog: setting up led WAN
Sun Nov 23 10:45:31 2014 user.emerg syslog: setting up led LAN1
Sun Nov 23 10:45:31 2014 user.emerg syslog: setting up led LAN2
Sun Nov 23 10:45:31 2014 user.emerg syslog: setting up led LAN3
Sun Nov 23 10:45:31 2014 user.emerg syslog: setting up led LAN4
Sun Nov 23 10:45:31 2014 user.emerg syslog: setting up led WLAN
Sun Nov 23 10:45:31 2014 user.emerg syslog: - init complete -
Sun Nov 23 10:45:32 2014 kern.info kernel: [   20.180000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Sun Nov 23 10:45:32 2014 kern.info kernel: [   20.190000] device eth0 entered promiscuous mode
Sun Nov 23 10:45:32 2014 kern.info kernel: [   20.200000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
Sun Nov 23 10:45:32 2014 daemon.notice netifd: Interface 'lan' is enabled
Sun Nov 23 10:45:32 2014 daemon.notice netifd: Interface 'lan' is setting up now
Sun Nov 23 10:45:32 2014 daemon.notice netifd: Interface 'lan' is now up
Sun Nov 23 10:45:32 2014 daemon.notice netifd: Interface 'loopback' is enabled
Sun Nov 23 10:45:32 2014 daemon.notice netifd: Interface 'loopback' is setting up now
Sun Nov 23 10:45:32 2014 daemon.notice netifd: Interface 'loopback' is now up
Sun Nov 23 10:45:33 2014 daemon.notice netifd: Network device 'lo' link is up
Sun Nov 23 10:45:33 2014 daemon.notice netifd: Interface 'loopback' has link connectivity
Sun Nov 23 10:45:33 2014 kern.info kernel: [   20.900000] eth0: link up (1000Mbps/Full duplex)
Sun Nov 23 10:45:33 2014 kern.info kernel: [   20.930000] br-lan: port 1(eth0) entered forwarding state
Sun Nov 23 10:45:33 2014 kern.info kernel: [   20.930000] br-lan: port 1(eth0) entered forwarding state
Sun Nov 23 10:45:33 2014 kern.info kernel: [   20.940000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Sun Nov 23 10:45:33 2014 daemon.notice netifd: Network device 'eth0' link is up
Sun Nov 23 10:45:33 2014 kern.info kernel: [   20.940000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Sun Nov 23 10:45:33 2014 daemon.notice netifd: Bridge 'br-lan' link is up
Sun Nov 23 10:45:33 2014 daemon.notice netifd: Interface 'lan' has link connectivity
Sun Nov 23 10:45:34 2014 daemon.info dnsmasq[963]: started, version 2.71 cachesize 150
Sun Nov 23 10:45:34 2014 daemon.info dnsmasq[963]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC
Sun Nov 23 10:45:34 2014 daemon.info dnsmasq[963]: reading /etc/resolv.conf
Sun Nov 23 10:45:34 2014 daemon.warn dnsmasq[963]: ignoring nameserver 127.0.0.1 - local interface
Sun Nov 23 10:45:34 2014 daemon.info dnsmasq[963]: read /etc/hosts - 1 addresses
Sun Nov 23 10:45:35 2014 kern.info kernel: [   22.420000] IPv6: ADDRCONF(NETDEV_UP): wlan0-1: link is not ready
Sun Nov 23 10:45:35 2014 kern.info kernel: [   22.450000] device wlan0-2 entered promiscuous mode
Sun Nov 23 10:45:35 2014 kern.info kernel: [   22.460000] br-lan: port 2(wlan0-2) entered forwarding state
Sun Nov 23 10:45:35 2014 kern.info kernel: [   22.460000] br-lan: port 2(wlan0-2) entered forwarding state
Sun Nov 23 10:45:35 2014 kern.info kernel: [   22.470000] IPv6: ADDRCONF(NETDEV_UP): wlan0-2: link is not ready
Sun Nov 23 10:45:35 2014 kern.info kernel: [   22.500000] device wlan0-3 entered promiscuous mode
Sun Nov 23 10:45:35 2014 kern.info kernel: [   22.530000] br-lan: port 3(wlan0-3) entered forwarding state
Sun Nov 23 10:45:35 2014 kern.info kernel: [   22.530000] br-lan: port 3(wlan0-3) entered forwarding state
Sun Nov 23 10:45:35 2014 kern.info kernel: [   22.540000] IPv6: ADDRCONF(NETDEV_UP): wlan0-3: link is not ready
Sun Nov 23 10:45:35 2014 kern.info kernel: [   22.790000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Sun Nov 23 10:45:35 2014 kern.info kernel: [   22.930000] br-lan: port 1(eth0) entered forwarding state
Sun Nov 23 10:45:36 2014 kern.info kernel: [   23.430000] br-lan: port 2(wlan0-2) entered disabled state
Sun Nov 23 10:45:36 2014 kern.info kernel: [   23.430000] br-lan: port 3(wlan0-3) entered disabled state
Sun Nov 23 10:45:36 2014 daemon.notice netifd: Interface 'wwan' is enabled
Sun Nov 23 10:45:36 2014 daemon.notice netifd: Interface 'wwan' is setting up now
Sun Nov 23 10:45:36 2014 daemon.notice netifd: Interface 'wwan' is now up
Sun Nov 23 10:45:43 2014 daemon.info dnsmasq[963]: reading /etc/resolv.conf
Sun Nov 23 10:45:43 2014 daemon.warn dnsmasq[963]: ignoring nameserver 127.0.0.1 - local interface



/etc/config/dhcp
config dhcp lan
    option interface    lan
    option start     100
    option limit    150
    option leasetime    12h
    option ignore    1

config dhcp wan
    option interface    wan
    option ignore    1


/etc/config/wireless
config wifi-device 'radio0'
        #blahblah (default settings)
    option channel '1'                    
    option disabled '0'

config wifi-iface
    option ssid 'ferdek'
    option encryption 'WPA2'               
    option device 'radio0'
    option mode 'sta'
    option network 'wwan'
    option key 'QWRtGhj78LL2'        

config wifi-iface
    option device 'radio0'
    option mode 'ap'
    option ssid 'ferdek-cam'
    option encryption 'WPA2'
    option key 'QWRtGhj78LL2'
    option network 'lan'config wifi-device  radio0
    option type     mac80211
    option channel  11
    option hwmode    11g
    option path    'platform/qca953x_wmac'
    option htmode    HT20
   

config wifi-iface
    option device   radio0
    option network  lan
    option mode     ap
    option ssid     OpenWrt
    option encryption none

config wifi-device  radio0
    option type     mac80211
    option channel  11
    option hwmode    11g
    option path    'platform/qca953x_wmac'
    option htmode    HT20


config wifi-iface
    option device   radio0
    option network  lan
    option mode     ap
    option ssid     OpenWrt
    option encryption none


/etc/config/network
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.10.1'
    option gateway '192.168.1.100'
    option netmask '255.255.255.0'
    option dns     '192.168.1.100'

config interface 'wwan'
    option proto 'static'
    option ipaddr '192.168.1.254'
    option netmask '255.255.255.0'
    option gateway '192.168.1.100'

config 'interface' 'stabridge'
    option 'proto' 'relay'
    option 'network' 'lan wwan'
    option ipaddr '192.168.1.254'

16

Odp: bridge

Ustawiłem wszystko od początku. Okazało się, że pomyliłem kolejność, stąd problemy z pakietami. Zrobiłem to obecnie w poprawnej kolejności i wszystko ustawiło się poprawnie.

Obecnie mam ustawienia tak, jak chciałem.
router1 brama 192.168.1.100 ssid:ferdek (siec1)
router2 bridge 192.168.10.1 ssid:ferdek-cam (siec2)

efekt jest taki, że z sieci 2 (ferdek-cam) mogę pingowac wszystko oraz wejść na http obu routerów.
Natomiast z sieci1, czyli ferdek nie mogę wejść na router2.