Dzięki Cezary. Połowiczny sukces już jest. Podłączyłem rutery, dałem statyczny adres na OpenWrt i mam do niego dostęp po sieci wifi D-Linka.
Ale OpenWrt nie ma dostępu do sieci (ping-owanie wp.pl ani 212.77.100.101 wyswietla komunikaty kolejno: "Bad adres" i "Network unreachable"
W D-linku nic nie konfigurowałem jeszcze bo i tak nie mam na razie zewnętrznego adresu ip więc to na razie zostawiam. Zależy mi na tym by był net na OpenWrt bo potrzebuje zegar systemowy i możliwość wysyłania maili. Poniżej załączam ustawienia OpenWrt. Jeśli czegoś brakuje to piszcie.
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.0.35'
option netmask '255.255.255.0'
option dns '192.168.0.1'
config interface 'wan'
option ifname 'eth1'
option proto 'dhcp'
config switch
option name 'eth0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'eth0'
option vlan '1'
option ports '0 1 2 3 4'
dhcp
config dnsmasq
option domainneeded 1
option boguspriv 1
option filterwin2k 0 # enable for dial on demand
option localise_queries 1
option rebind_protection 1 # disable if upstream must serve RFC1918 addresses
option rebind_localhost 1 # enable for RBL checking and similar services
#list rebind_domain example.lan # whitelist RFC1918 responses for domains
option local '/lan/'
option domain 'lan'
option expandhosts 1
option nonegcache 0
option authoritative 1
option readethers 1
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
#list server '/mycompany.local/1.2.3.4'
#option nonwildcard 1
#list interface br-lan
#list notinterface lo
#list bogusnxdomain '64.94.110.11'
config dhcp lan
option interface lan
option start 100
option limit 150
option leasetime 12h
config dhcp wan
option interface wan
option ignore 1
wireless
config wifi-device radio0
option type mac80211
option channel 11
option hwmode 11ng
option macaddr f8:d1:11:34:11:72
option htmode HT20
list ht_capab SHORT-GI-20
list ht_capab SHORT-GI-40
list ht_capab TX-STBC
list ht_capab RX-STBC1
list ht_capab DSSS_CCK-40
# REMOVE THIS LINE TO ENABLE WIFI:
option disabled 1
config wifi-iface
option device radio0
option network lan
option mode ap
option ssid OpenWrt
option encryption none
odpowiedz na ifconfig
br-lan Link encap:Ethernet HWaddr F8:D1:11:34:11:71
inet addr:192.168.0.35 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7963 errors:0 dropped:1051 overruns:0 frame:0
TX packets:6940 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:903755 (882.5 KiB) TX bytes:2192457 (2.0 MiB)
eth0 Link encap:Ethernet HWaddr F8:D1:11:34:11:71
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9224 errors:0 dropped:6 overruns:0 frame:0
TX packets:7408 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1199619 (1.1 MiB) TX bytes:2250519 (2.1 MiB)
Interrupt:5
eth1 Link encap:Ethernet HWaddr F8:D1:11:34:11:73
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)
Interrupt:4
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4880 errors:0 dropped:0 overruns:0 frame:0
TX packets:4880 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:292927 (286.0 KiB) TX bytes:292927 (286.0 KiB)