1

Temat: server dhcp nie działa

Witam,
Mam problem z serwerem dhcp. W skrócie - nie przydziela adresów ip maszynom znajdującym się w mojej sieci. Nie wiem co się mogło stać ale do dnia dzisiejszego wszystko działało.

konfiguracja
----------------------------------
config dnsmasq
        option domainneeded '1'
        option boguspriv '1'
        option localise_queries '1'
        option local '/lan/'
        option domain 'lan'
        option expandhosts '1'
        option authoritative '1'
        option readethers '1'
        option leasefile '/tmp/dhcp.leases'
        option resolvfile '/tmp/resolv.conf.auto'
        option localservice '1'
        option rebind_protection '1'
        option rebind_localhost '1'

config dhcp 'lan'
        option interface 'lan'
        option start '50'
        option limit '50'
        option leasetime '12h'
        option force '1'
        list dhcp_option '192.168.1.1'

config dhcp 'wan'
        option interface 'wan'
        option ignore '1'

config odhcpd 'odhcpd'
        option maindhcp '0'
        option leasefile '/tmp/hosts/odhcpd'
        option leasetrigger '/usr/sbin/odhcpd-update'

config host
        option name 'host1'
        option mac '00:11:11:11:cb:36'
        option ip '192.168.1.50'
--------------------------

zauważyłem, że mam również problem z dns

root@xxxxx:/etc# nslookup google.pl
Server:    127.0.0.1
Address 1: 127.0.0.1 localhost

nslookup: can't resolve 'google.pl': Name or service not known

Prośba o pomoc w rozwiązaniu problemu.
Pozdrawiam

2

Odp: server dhcp nie działa

Po co dodałeś opcje force? Strzelam że masz drugi serwer dhcp w sieci.

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

3

Odp: server dhcp nie działa

to już pozostałość po mojej walce z tym problemem.
Usunąłem ten wpis, zrestartowałem
root@cyb-rt:/etc# /etc/init.d/network restart
root@cyb-rt:/etc# /etc/init.d/dnsmasq restart

i nadal ten sam efekt

4

Odp: server dhcp nie działa

Usuń to, zresatrtuj, pokaż wynik logread oraz route -n

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

5

Odp: server dhcp nie działa

Sat Oct 28 17:26:03 2017 daemon.notice netifd: Interface 'lan' is setting up now
Sat Oct 28 17:26:03 2017 kern.info kernel: [   26.520000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
Sat Oct 28 17:26:03 2017 daemon.notice netifd: Interface 'lan' is now up
Sat Oct 28 17:26:03 2017 kern.info kernel: [   26.560000] device eth0.2 entered promiscuous mode
Sat Oct 28 17:26:03 2017 daemon.notice netifd: Interface 'wan' is enabled
Sat Oct 28 17:26:03 2017 daemon.notice netifd: Interface 'loopback' is enabled
Sat Oct 28 17:26:03 2017 daemon.notice netifd: Interface 'loopback' is setting up now
Sat Oct 28 17:26:03 2017 kern.info kernel: [   26.620000] IPv6: ADDRCONF(NETDEV_UP): br-wan: link is not ready
Sat Oct 28 17:26:03 2017 daemon.notice netifd: Interface 'loopback' is now up
Sat Oct 28 17:26:03 2017 daemon.notice netifd: Network device 'lo' link is up
Sat Oct 28 17:26:03 2017 daemon.notice netifd: Interface 'loopback' has link connectivity
Sat Oct 28 17:26:03 2017 kern.info kernel: [   26.750000] eth0: link up (1000Mbps/Full duplex)
Sat Oct 28 17:26:03 2017 daemon.notice netifd: VLAN 'eth0.2' link is up
Sat Oct 28 17:26:04 2017 kern.info kernel: [   27.190000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Sat Oct 28 17:26:04 2017 kern.info kernel: [   27.200000] br-lan: port 1(eth0.1) entered forwarding state
Sat Oct 28 17:26:04 2017 kern.info kernel: [   27.210000] br-lan: port 1(eth0.1) entered forwarding state
Sat Oct 28 17:26:04 2017 kern.info kernel: [   27.210000] br-wan: port 1(eth0.2) entered forwarding state
Sat Oct 28 17:26:04 2017 kern.info kernel: [   27.220000] br-wan: port 1(eth0.2) entered forwarding state
Sat Oct 28 17:26:04 2017 daemon.notice netifd: Network device 'eth0' link is up
Sat Oct 28 17:26:04 2017 daemon.notice netifd: VLAN 'eth0.1' link is up
Sat Oct 28 17:26:04 2017 kern.info kernel: [   27.280000] IPv6: ADDRCONF(NETDEV_CHANGE): br-wan: link becomes ready
Sat Oct 28 17:26:04 2017 kern.info kernel: [   27.280000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Sat Oct 28 17:26:04 2017 daemon.notice netifd: Bridge 'br-wan' link is up
Sat Oct 28 17:26:04 2017 daemon.notice netifd: Interface 'wan' has link connectivity
Sat Oct 28 17:26:04 2017 daemon.notice netifd: Interface 'wan' is setting up now
Sat Oct 28 17:26:04 2017 daemon.notice netifd: Bridge 'br-lan' link is up
Sat Oct 28 17:26:04 2017 daemon.notice netifd: Interface 'lan' has link connectivity
Sat Oct 28 17:26:05 2017 daemon.notice netifd: wan (1544): udhcpc: option -h NAME is deprecated, use -x hostname:NAME
Sat Oct 28 17:26:05 2017 daemon.notice netifd: wan (1544): udhcpc (v1.23.2) started
Sat Oct 28 17:26:05 2017 daemon.notice netifd: wan (1544): Sending discover...
Sat Oct 28 17:26:05 2017 daemon.notice netifd: wan (1544): Sending select for 109.xxx.xxx.2...
Sat Oct 28 17:26:05 2017 authpriv.info dropbear[1507]: Not backgrounding
Sat Oct 28 17:26:05 2017 daemon.notice netifd: wan (1544): Lease of 109.xxx.xxx.2 obtained, lease time 7200
Sat Oct 28 17:26:06 2017 kern.info kernel: [   29.210000] br-lan: port 1(eth0.1) entered forwarding state
Sat Oct 28 17:26:06 2017 kern.info kernel: [   29.220000] br-wan: port 1(eth0.2) entered forwarding state
Sat Oct 28 17:26:06 2017 daemon.notice netifd: Interface 'wan' is now up
Sat Oct 28 17:26:07 2017 daemon.notice netifd: radio0 (1447): Configuration file: /var/run/hostapd-phy0.conf
Sat Oct 28 17:26:07 2017 kern.info kernel: [   30.390000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Sat Oct 28 17:26:07 2017 kern.info kernel: [   30.400000] device wlan0 entered promiscuous mode
Sat Oct 28 17:26:07 2017 daemon.notice netifd: radio0 (1447): wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Sat Oct 28 17:26:07 2017 kern.info kernel: [   30.400000] device wlan0 entered promiscuous mode
Sat Oct 28 17:26:07 2017 daemon.notice netifd: radio0 (1447): wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Sat Oct 28 17:26:07 2017 daemon.notice netifd: radio0 (1447): Using interface wlan0 with hwaddr e8:34:xx:xx:a2:dd and ssid "xxx"
Sat Oct 28 17:26:07 2017 daemon.notice netifd: radio1 (1448): Configuration file: /var/run/hostapd-phy1.conf
Sat Oct 28 17:26:07 2017 kern.info kernel: [   30.510000] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
Sat Oct 28 17:26:07 2017 kern.info kernel: [   30.550000] device wlan1 entered promiscuous mode
Sat Oct 28 17:26:07 2017 kern.info kernel: [   30.550000] br-lan: port 3(wlan1) entered forwarding state
Sat Oct 28 17:26:07 2017 kern.info kernel: [   30.560000] br-lan: port 3(wlan1) entered forwarding state
Sat Oct 28 17:26:07 2017 daemon.notice netifd: radio1 (1448): wlan1: interface state UNINITIALIZED->COUNTRY_UPDATE
Sat Oct 28 17:26:07 2017 daemon.notice netifd: radio1 (1448): ACS: Automatic channel selection started, this may take a bit
Sat Oct 28 17:26:07 2017 daemon.notice netifd: radio1 (1448): wlan1: interface state COUNTRY_UPDATE->ACS
Sat Oct 28 17:26:07 2017 daemon.notice netifd: radio1 (1448): wlan1: ACS-STARTED
Sat Oct 28 17:26:08 2017 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Sat Oct 28 17:26:08 2017 kern.info kernel: [   31.400000] br-lan: port 3(wlan1) entered disabled state
Sat Oct 28 17:26:09 2017 kern.info kernel: [   32.410000] br-lan: port 2(wlan0) entered forwarding state
Sat Oct 28 17:26:09 2017 kern.info kernel: [   32.410000] br-lan: port 2(wlan0) entered forwarding state
Sat Oct 28 17:26:09 2017 kern.info kernel: [   32.420000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Sat Oct 28 17:26:09 2017 daemon.notice netifd: radio0 (1447): Using interface wlan0-1 with hwaddr e8:34:xx:xx:a2:ddand ssid "GUEST"
Sat Oct 28 17:26:09 2017 daemon.notice netifd: radio0 (1447): wlan0-1: RADIUS Authentication server 192.168xx.xx:1812
Sat Oct 28 17:26:09 2017 daemon.info hostapd: wlan0-1: RADIUS Authentication server 192.168.xx.xx:1812
Sat Oct 28 17:26:09 2017 daemon.notice netifd: radio0 (1447): wlan0: interface state COUNTRY_UPDATE->ENABLED
Sat Oct 28 17:26:09 2017 daemon.notice netifd: radio0 (1447): wlan0: AP-ENABLED
Sat Oct 28 17:26:09 2017 kern.info kernel: [   32.450000] IPv6: ADDRCONF(NETDEV_UP): wlan0-1: link is not ready
Sat Oct 28 17:26:09 2017 kern.info kernel: [   32.470000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-1: link becomes ready
Sat Oct 28 17:26:10 2017 daemon.notice netifd: Network device 'wlan0' link is up
Sat Oct 28 17:26:11 2017 kern.info kernel: [   34.410000] br-lan: port 2(wlan0) entered forwarding state
Sat Oct 28 17:26:11 2017 user.notice openvpn: my-vpn.conf is disabled in /etc/config/openvpn
Sat Oct 28 17:26:12 2017 user.emerg syslog: setting up led USB1
Sat Oct 28 17:26:12 2017 user.emerg syslog: setting up led USB2
Sat Oct 28 17:26:12 2017 user.emerg syslog: setting up led WLAN2G
Sat Oct 28 17:26:12 2017 daemon.info procd: - init complete -
Sat Oct 28 17:26:13 2017 daemon.info hostapd: wlan0: STA e8:34:xx:xx:a2:dd IEEE 802.11: authenticated
Sat Oct 28 17:26:13 2017 daemon.info hostapd: wlan0: STA e8:34:xx:xx:a2:dd IEEE 802.11: associated (aid 1)
Sat Oct 28 17:26:13 2017 daemon.info hostapd: wlan0: STA e8:34:xx:xx:a2:dd RADIUS: starting accounting session 59F4A191-00000000
Sat Oct 28 17:26:13 2017 daemon.info hostapd: wlan0: STA e8:34:xx:xx:a2:dd WPA: pairwise key handshake completed (RSN)
Sat Oct 28 17:26:15 2017 daemon.crit dnsmasq[2323]: bad dhcp-option at line 42 of /var/etc/dnsmasq.conf
Sat Oct 28 17:26:15 2017 daemon.crit dnsmasq[2323]: FAILED to start up
Sat Oct 28 17:26:18 2017 daemon.notice netifd: radio1 (1448): wlan1: ACS-COMPLETED freq=5700 channel=140
Sat Oct 28 17:26:18 2017 daemon.notice netifd: radio1 (1448): wlan1: interface state ACS->DFS
Sat Oct 28 17:26:18 2017 daemon.notice netifd: radio1 (1448): wlan1: DFS-CAC-START freq=5700 chan=140 sec_chan=0, width=0, seg0=0, seg1=0, cac_time=60s
Sat Oct 28 17:26:18 2017 daemon.notice netifd: radio1 (1448): wlan1: interface state ACS->DFS
Sat Oct 28 17:26:18 2017 daemon.notice netifd: radio1 (1448): wlan1: DFS-CAC-START freq=5700 chan=140 sec_chan=0, width=0, seg0=0, seg1=0, cac_time=60s
Sat Oct 28 17:26:20 2017 daemon.crit dnsmasq[2456]: bad dhcp-option at line 42 of /var/etc/dnsmasq.conf
Sat Oct 28 17:26:20 2017 daemon.crit dnsmasq[2456]: FAILED to start up
Sat Oct 28 17:26:21 2017 user.notice firewall: Reloading firewall due to ifup of wan (br-wan)
Sat Oct 28 17:26:22 2017 daemon.crit dnsmasq[2593]: bad dhcp-option at line 42 of /var/etc/dnsmasq.conf
Sat Oct 28 17:26:22 2017 daemon.crit dnsmasq[2593]: FAILED to start up
Sat Oct 28 17:26:24 2017 user.notice ddns-scripts[2650]: myddns_ipv4: PID '2650' started at 2017-10-28 17:26
Sat Oct 28 17:26:24 2017 user.warn ddns-scripts[2650]: myddns_ipv4: Service section disabled! - TERMINATE
Sat Oct 28 17:26:24 2017 user.warn ddns-scripts[2650]: myddns_ipv4: PID '2650' exit WITH ERROR '1' at 2017-10-28 17:26
Sat Oct 28 17:26:27 2017 daemon.info hostapd: wlan0: e8:34:xx:xx:a2:dd IEEE 802.11: authenticated
Sat Oct 28 17:26:27 2017 daemon.info hostapd: wlan0: STA e8:34:xx:xx:a2:dd IEEE 802.11: associated (aid 2)
Sat Oct 28 17:26:27 2017 daemon.info hostapd: wlan0: STA e8:34:xx:xx:a2:dd RADIUS: starting accounting session 59F4A191-00000001
Sat Oct 28 17:26:27 2017 daemon.info hostapd: wlan0: STA e8:34:xx:xx:a2:dd WPA: pairwise key handshake completed (RSN)
Sat Oct 28 17:26:27 2017 daemon.crit dnsmasq[2722]: bad dhcp-option at line 42 of /var/etc/dnsmasq.conf
Sat Oct 28 17:26:27 2017 daemon.crit dnsmasq[2722]: FAILED to start up
Sat Oct 28 17:26:30 2017 authpriv.info dropbear[2723]: Child connection from 192.168.1.xx:62165
Sat Oct 28 17:26:32 2017 daemon.crit dnsmasq[2724]: bad dhcp-option at line 42 of /var/etc/dnsmasq.conf
Sat Oct 28 17:26:32 2017 daemon.crit dnsmasq[2724]: FAILED to start up
Sat Oct 28 17:26:37 2017 authpriv.notice dropbear[2723]: Password auth succeeded for 'root' from 192.168.1.xxx:62165
Sat Oct 28 17:26:37 2017 daemon.info hostapd: wlan0: STA e8:34:xx:xx:a2:dd IEEE 802.11: disassociated
Sat Oct 28 17:26:37 2017 daemon.crit dnsmasq[2793]: bad dhcp-option at line 42 of /var/etc/dnsmasq.conf
Sat Oct 28 17:26:37 2017 daemon.crit dnsmasq[2793]: FAILED to start up
Sat Oct 28 17:26:37 2017 daemon.info procd: Instance dnsmasq::instance1 s in a crash loop 6 crashes, 0 seconds since last crash
Sat Oct 28 17:26:38 2017 daemon.info hostapd: wlan0: STA e8:34:xx:xx:a2:dd IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Sat Oct 28 17:27:18 2017 daemon.info hostapd: wlan1: RADIUS Authentication server 192.168.1.xx:1812
Sat Oct 28 17:27:18 2017 daemon.notice netifd: radio1 (1448): wlan1: DFS-CAC-COMPLETED success=1 freq=5700 ht_enabled=1 chan_offset=0 chan_width=1 cf1=5700 c$
Sat Oct 28 17:27:18 2017 daemon.notice netifd: radio1 (1448): Using interface wlan1 with hwaddr e8:34:xx:xx:a2:dd and ssid "xxxx"
Sat Oct 28 17:27:18 2017 daemon.notice netifd: radio1 (1448): wlan1: RADIUS Authentication server 192.168.1.xx:1812
Sat Oct 28 17:27:18 2017 kern.info kernel: [  101.940000] br-lan: port 3(wlan1) entered forwarding state
Sat Oct 28 17:27:18 2017 kern.info kernel: [  101.950000] br-lan: port 3(wlan1) entered forwarding state
Sat Oct 28 17:27:18 2017 kern.info kernel: [  101.950000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
Sat Oct 28 17:27:18 2017 daemon.notice netifd: radio1 (1448): wlan1: interface state DFS->ENABLED
Sat Oct 28 17:27:18 2017 daemon.notice netifd: radio1 (1448): wlan1: AP-ENABLED
Sat Oct 28 17:27:18 2017 daemon.notice netifd: Network device 'wlan1' link is up
Sat Oct 28 17:27:20 2017 kern.info kernel: [  103.950000] br-lan: port 3(wlan1) entered forwarding state

--------------
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         109.xxx.xx.1   0.0.0.0         UG    0      0        0 br-wan
109.xxx.xx.0   0.0.0.0         255.255.255.192 U     0      0        0 br-wan
109.xxx.xxx.1   0.0.0.0         255.255.255.255 UH    0      0        0 br-wan
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br-lan

6

Odp: server dhcp nie działa

blad wskazuje na linie
dhcp-option=lan,192.168.1.1

7

Odp: server dhcp nie działa

bad dhcp-option at line 42 of /var/etc/dnsmasq.conf

Usuń linię list dhcp_option '192.168.1.1'

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

8

Odp: server dhcp nie działa

jedno zdanie wyjasnienia. na jednym radiu teraz mam radiusa ktory nie dziala bo serwer nie dostal adresu na dugi testowa WPA2 i testuje czy uzyskam adres z dhcp

9 (edytowany przez cy3ul 2017-10-28 17:17:02)

Odp: server dhcp nie działa

Cezary napisał/a:

bad dhcp-option at line 42 of /var/etc/dnsmasq.conf

Usuń linię list dhcp_option '192.168.1.1'

z którego pliku bo  po restarcie nadal ten wpis istnieje w /var/etc/dnsmasq.conf ?

10

Odp: server dhcp nie działa

Masz go tylko w jednym miejscu - w /etc/config/dhcp

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

11

Odp: server dhcp nie działa

usunąłem ale nie przyniosło oczekiwanych rezultatów, choć dhcp startuje (już nie ma błędu w lini 42) ale później jest jakiś error. Podejrzewam, że przyczyną może być czas. Zauważyłem, że jest opóźnienie kilku minutowe. Jak ustawiłem ręcznie, zresetowałem router to znowu mam opóźnienie.
poniżej log po restarcie może ktoś coś podpowie

Sun Oct 29 08:37:10 2017 daemon.info dnsmasq[2252]: started, version 2.73 cachesize 150
Sun Oct 29 08:37:10 2017 daemon.info dnsmasq[2252]: compile time options: no-IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC loop-detect inotify
Sun Oct 29 08:37:10 2017 daemon.info dnsmasq[2252]: DNS service limited to local subnets
Sun Oct 29 08:37:10 2017 daemon.info dnsmasq-dhcp[2252]: DHCP, IP range 192.168.1.50 -- 192.168.1.99, lease time 12h
Sun Oct 29 08:37:10 2017 daemon.info dnsmasq[2252]: reading /tmp/resolv.conf.auto
Sun Oct 29 08:37:10 2017 daemon.warn dnsmasq[2252]: ignoring nameserver 192.168.1.1 - local interface
Sun Oct 29 08:37:10 2017 daemon.info dnsmasq[2252]: using nameserver 37.8.214.2#53
Sun Oct 29 08:37:10 2017 daemon.info dnsmasq[2252]: using nameserver 31.11.202.254#53
Sun Oct 29 08:37:10 2017 daemon.info dnsmasq[2252]: read /etc/hosts - 3 addresses
Sun Oct 29 08:37:10 2017 daemon.info dnsmasq[2252]: read /tmp/hosts/dhcp - 1 addresses
Sun Oct 29 08:37:10 2017 daemon.info dnsmasq-dhcp[2252]: read /etc/ethers - 1 addresses
Sun Oct 29 08:37:13 2017 authpriv.info dropbear[2387]: Child connection from 192.168.1.111:62515
Sun Oct 29 08:37:16 2017 user.notice firewall: Reloading firewall due to ifup of wan (br-wan)
Sun Oct 29 08:37:18 2017 daemon.info dnsmasq-dhcp[2252]: DHCPDISCOVER(br-lan) 68:fb:7e:xx:xx:7f
Sun Oct 29 08:37:18 2017 daemon.info dnsmasq-dhcp[2252]: DHCPOFFER(br-lan) 192.168.1.51 68:fb:7e:xx:xx:7f
Sun Oct 29 08:37:19 2017 daemon.info dnsmasq-dhcp[2252]: DHCPDISCOVER(br-lan) 68:fb:7e:xx:xx:7f
Sun Oct 29 08:37:19 2017 daemon.info dnsmasq-dhcp[2252]: DHCPOFFER(br-lan) 192.168.1.51 68:fb:7e:xx:xx:7f
Sun Oct 29 08:37:20 2017 user.notice ddns-scripts[2578]: myddns_ipv4: PID '2578' started at 2017-10-29 08:37
Sun Oct 29 08:37:20 2017 user.warn ddns-scripts[2578]: myddns_ipv4: Service section disabled! - TERMINATE
Sun Oct 29 08:37:20 2017 user.warn ddns-scripts[2578]: myddns_ipv4: PID '2578' exit WITH ERROR '1' at 2017-10-29 08:37
Sun Oct 29 08:37:22 2017 daemon.info dnsmasq-dhcp[2252]: DHCPDISCOVER(br-lan) 68:fb:7e:xx:xx:7f
Sun Oct 29 08:37:22 2017 daemon.info dnsmasq-dhcp[2252]: DHCPOFFER(br-lan) 192.168.1.51 68:fb:7e:xx:xx:7f

12

Odp: server dhcp nie działa

Zmianę czasu zawsze będziesz miał, przecież router nie ma RTC. Ale to nie jest problemem, dnsmasq doskonale sobie z tym radzi.

Jak na razie nie pokazałeś nic niepokojącego - uruchomi się, ma dnsy, świadczy dhcp dla lanu. Co właściwie nie działa teraz?

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

13

Odp: server dhcp nie działa

2 rzeczy:
1)nie uzyskuje adresu ip z dhcp (musze przypisac na sztywno z adresem dns innym niz adres routera)
2) dns na routerze
root@cyb-rt:~# nslookup google.pl
Server:    127.0.0.1
Address 1: 127.0.0.1 localhost

nslookup: can't resolve 'google.pl': Name or service not known

14

Odp: server dhcp nie działa

1. Owszem, dnsmasq daje adres:

Sun Oct 29 08:37:18 2017 daemon.info dnsmasq-dhcp[2252]: DHCPDISCOVER(br-lan) 68:fb:7e:xx:xx:7f
Sun Oct 29 08:37:18 2017 daemon.info dnsmasq-dhcp[2252]: DHCPOFFER(br-lan) 192.168.1.51 68:fb:7e:xx:xx:7f
Sun Oct 29 08:37:19 2017 daemon.info dnsmasq-dhcp[2252]: DHCPDISCOVER(br-lan) 68:fb:7e:xx:xx:7f
Sun Oct 29 08:37:19 2017 daemon.info dnsmasq-dhcp[2252]: DHCPOFFER(br-lan) 192.168.1.51 68:fb:7e:xx:xx:7f

Komputer tego nie potwierdza (DHCPACK niema)
2. Pokaz /etc/config/network

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

15

Odp: server dhcp nie działa

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

config globals 'globals'
        option ula_prefix 'fd93:a5c2:03b6::/48'

config interface 'lan'
        option ifname 'eth0.1'
        option force_link '1'
        option type 'bridge'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option dns '192.168.1.1'
        option delegate '0'
config interface 'wan'
        option type 'bridge'
        option _orig_ifname 'eth0.2'
        option _orig_bridge 'true'
        option proto 'dhcp'
        option macaddr 'b0:48:7a:xx:xx:d9'
        option delegate '0'
        option ifname 'eth0.2'
        option hostname 'cyb-rt'

reszta chyba niepotrzebna?

16

Odp: server dhcp nie działa

option dns '192.168.1.1'
option delegate '0'

Wywal z konfiga, zrestartuj router.

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

17

Odp: server dhcp nie działa

Cezary napisał/a:

option dns '192.168.1.1'
option delegate '0'

Wywal z konfiga, zrestartuj router.

po wywaleniu nadal root@cyb-rt:~# nslookup google.pl
Server:    127.0.0.1
Address 1: 127.0.0.1 localhost

nslookup: can't resolve 'google.pl': Name or service not known

w logach zauważyłem
Sun Oct 29 09:15:32 2017 daemon.info dnsmasq[2275]: DNS service limited to local subnets
Sun Oct 29 09:15:32 2017 daemon.info dnsmasq-dhcp[2275]: DHCP, IP range 192.168.1.50 -- 192.168.1.99, lease time 12h
Sun Oct 29 09:15:32 2017 daemon.info dnsmasq[2275]: reading /tmp/resolv.conf.auto
Sun Oct 29 09:15:32 2017 daemon.warn dnsmasq[2275]: ignoring nameserver 192.168.1.1 - local interface
Sun Oct 29 09:15:32 2017 daemon.info dnsmasq[2275]: using nameserver 37.8.214.2#53
Sun Oct 29 09:15:32 2017 daemon.info dnsmasq[2275]: using nameserver 31.11.202.254#53
Sun Oct 29 09:15:32 2017 daemon.info dnsmasq[2275]: read /etc/hosts - 3 addresses
Sun Oct 29 09:15:32 2017 daemon.info dnsmasq[2275]: read /tmp/hosts/dhcp - 1 addresses
Sun Oct 29 09:15:32 2017 daemon.info dnsmasq-dhcp[2275]: read /etc/ethers - 1 addresses

po restarcie mam 15 minut opoznienia w czasie
root@cyb-rt:~# date
Sun Oct 29 09:19:36 CET 2017

18

Odp: server dhcp nie działa

Pisałem już - tak, tak będzie. Router nie ma RTC, synchronizuje sobie czas jak połączy się z siecią. Zostaw temat czasu w spokoju.

Zrób

ping 8.8.8.8
ping gooogle.com
ifconfig -a

i pokaż wyniki

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

19 (edytowany przez cy3ul 2017-10-29 09:53:07)

Odp: server dhcp nie działa

PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=60 time=18.158 ms
64 bytes from 8.8.8.8: seq=1 ttl=60 time=17.978 ms

root@cyb-rt:~# ping google.com
ping: bad address 'google.com'

root@cyb-rt:~# ifconfig -a
br-lan    Link encap:Ethernet  HWaddr E8:94:xx:xx:xx:D8
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ea94:f6ff:fe33:a2d8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3229 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3237 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:396199 (386.9 KiB)  TX bytes:1071512 (1.0 MiB)

br-wan    Link encap:Ethernet  HWaddr B0:48:xx:xx:xx:D9
          inet addr:109.xx.xx.xx  Bcast:109.xx.xx.63  Mask:255.255.255.192
          inet6 addr: fe80::xxxx:xxxx:fede:dad9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:925 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1148 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:306060 (298.8 KiB)  TX bytes:155192 (151.5 KiB)

eth0      Link encap:Ethernet  HWaddr E8:94:xx:xx:A2:D8
          inet6 addr: fe80::xxxx:f6ff:xxxx:a2d8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4138 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4458 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:771027 (752.9 KiB)  TX bytes:1255437 (1.1 MiB)
          Interrupt:4

eth0.1    Link encap:Ethernet  HWaddr E8:94:xx:xx:xx:D8
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3145 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3288 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:385767 (376.7 KiB)  TX bytes:1081293 (1.0 MiB)

eth0.2    Link encap:Ethernet  HWaddr E8:94:xx:xx:xx:D8
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:925 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1143 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:306060 (298.8 KiB)  TX bytes:154482 (150.8 KiB)

gre0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-44-00-00-00-00-00-00-00-00
          NOARP  MTU:1476  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:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
gretap0   Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          BROADCAST MULTICAST  MTU:1462  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)

ifb0      Link encap:Ethernet  HWaddr 0A:C8:xx:xx:xx:56
          BROADCAST NOARP  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:32
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

ifb1      Link encap:Ethernet  HWaddr 66:4F:xx:xx:xx:44
          BROADCAST NOARP  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:32
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1797 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1797 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:155308 (151.6 KiB)  TX bytes:155308 (151.6 KiB)

teql0     Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          NOARP  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:100
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr E8:94:xx:xx:xx:D9
          inet6 addr: fe80::xxxx:xxxx:fe33:a2d9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:187 errors:0 dropped:0 overruns:0 frame:0
          TX packets:317 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:24372 (23.8 KiB)  TX bytes:39631 (38.7 KiB)

20

Odp: server dhcp nie działa

uci del network.wan.type
uci set network.wan.dns="8.8.8.8 8.8.4.4"
uci set network.wan.peerdns=0
uci commit network
ifup wan
ping google.com

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

21

Odp: server dhcp nie działa

root@cyb-rt:~# uci del network.wan.type
root@cyb-rt:~# uci set network.wan.dns="8.8.8.8 8.8.4.4"
root@cyb-rt:~# uci set network.wan.peerdns=0
root@cyb-rt:~# uci commit network
root@cyb-rt:~# ifup wan
root@cyb-rt:~# ping google.com
ping: bad address 'google.com'

22

Odp: server dhcp nie działa

Reboot całości i ponów ping google.com

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

23

Odp: server dhcp nie działa

root@cyb-rt:~# ping google.com
ping: bad address 'google.com'
root@cyb-rt:~# cat /etc/resolv.conf
nameserver 127.0.0.1

24

Odp: server dhcp nie działa

Jeszcze raz pokaż, bez usuwania czegokolwiek:

uci show network
uci show dhcp
route -n
cat /tmp/resolv.conf.auto
logread

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

25

Odp: server dhcp nie działa

root@cyb-rt:~# uci show network
network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd93:a5c2:03b6::/48'
network.lan=interface
network.lan.ifname='eth0.1'
network.lan.force_link='1'
network.lan.type='bridge'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.dns='192.168.1.1'
network.wan=interface
network.wan._orig_ifname='eth0.2'
network.wan._orig_bridge='true'
network.wan.proto='dhcp'
network.wan.macaddr='b0:48:xx:xx:xx:d9'
network.wan.delegate='0'
network.wan.ifname='eth0.2'
network.wan.hostname='cyb-rt'
network.wan.dns='8.8.8.8 8.8.4.4'
network.wan.peerdns='0'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].ports='0t 2 3 4 5'
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device='switch0'
network.@switch_vlan[1].vlan='2'
network.@switch_vlan[1].ports='0t 1'

root@cyb-rt:~# uci show dhcp
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded='1'
dhcp.@dnsmasq[0].boguspriv='1'
dhcp.@dnsmasq[0].localise_queries='1'
dhcp.@dnsmasq[0].expandhosts='1'
dhcp.@dnsmasq[0].authoritative='1'
dhcp.@dnsmasq[0].readethers='1'
dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases'
dhcp.@dnsmasq[0].resolvfile='/tmp/resolv.conf.auto'
dhcp.@dnsmasq[0].localservice='1'
dhcp.@dnsmasq[0].rebind_protection='1'
dhcp.@dnsmasq[0].rebind_localhost='1'
dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.start='50'
dhcp.lan.limit='50'
dhcp.lan.leasetime='12h'
dhcp.wan=dhcp
dhcp.wan.interface='wan'
dhcp.wan.ignore='1'
dhcp.odhcpd=odhcpd
dhcp.odhcpd.maindhcp='0'
dhcp.odhcpd.leasefile='/tmp/hosts/odhcpd'
dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update'
dhcp.@host[0]=host
dhcp.@host[0].name='xxxx'
dhcp.@host[0].mac='00:xx:xx:xx:cb:36'
dhcp.@host[0].ip='192.168.1.50'
i dalej inne hosty
nie ma tutaj wpisu 192.168.1.51 bo usunąłem wcześniej. Jest dopisany w etc/ethers

root@cyb-rt:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         109.xx.xx.1   0.0.0.0         UG    0      0        0 eth0.2
109..xx.xx.0   0.0.0.0         255.255.255.192 U     0      0        0 eth0.2
109.xx.xx.1   0.0.0.0         255.255.255.255 UH    0      0        0 eth0.2
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br-lan

root@cyb-rt:~# cat /tmp/resolv.conf.auto
# Interface lan
nameserver 192.168.1.1
# Interface wan
nameserver 8.8.8.8
nameserver 8.8.4.4

root@cyb-rt:~# logread
Sun Oct 29 09:43:40 2017 kern.info kernel: [    1.300000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
Sun Oct 29 09:43:40 2017 kern.notice kernel: [    1.320000] Bridge firewalling registered
Sun Oct 29 09:43:40 2017 kern.info kernel: [    1.320000] 8021q: 802.1Q VLAN Support v1.8
Sun Oct 29 09:43:40 2017 kern.err kernel: [    1.330000] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Sun Oct 29 09:43:40 2017 kern.info kernel: [    1.340000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Sun Oct 29 09:43:40 2017 kern.info kernel: [    1.350000] Freeing unused kernel memory: 220K (803a9000 - 803e0000)
Sun Oct 29 09:43:40 2017 user.info kernel: [    2.530000] init: Console is alive
Sun Oct 29 09:43:40 2017 user.info kernel: [    2.530000] init: - watchdog -
Sun Oct 29 09:43:40 2017 kern.info kernel: [    4.510000] usbcore: registered new interface driver usbfs
Sun Oct 29 09:43:40 2017 kern.info kernel: [    4.520000] usbcore: registered new interface driver hub
Sun Oct 29 09:43:40 2017 kern.info kernel: [    4.520000] usbcore: registered new device driver usb
Sun Oct 29 09:43:40 2017 kern.notice kernel: [    4.570000] SCSI subsystem initialized
Sun Oct 29 09:43:40 2017 kern.info kernel: [    4.580000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Sun Oct 29 09:43:40 2017 kern.info kernel: [    4.590000] ehci-platform: EHCI generic platform driver
Sun Oct 29 09:43:40 2017 kern.info kernel: [    4.590000] ehci-platform ehci-platform: EHCI Host Controller
Sun Oct 29 09:43:40 2017 kern.info kernel: [    4.600000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
Sun Oct 29 09:43:40 2017 kern.info kernel: [    4.610000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
Sun Oct 29 09:43:40 2017 kern.info kernel: [    4.630000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
Sun Oct 29 09:43:40 2017 kern.info kernel: [    4.630000] hub 1-0:1.0: USB hub found
Sun Oct 29 09:43:40 2017 kern.info kernel: [    4.640000] hub 1-0:1.0: 1 port detected
Sun Oct 29 09:43:40 2017 kern.info kernel: [    4.640000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Sun Oct 29 09:43:40 2017 kern.info kernel: [    4.650000] ohci-platform: OHCI generic platform driver
Sun Oct 29 09:43:40 2017 kern.info kernel: [    4.660000] usbcore: registered new interface driver usb-storage
Sun Oct 29 09:43:40 2017 kern.info kernel: [    4.960000] usb 1-1: new high-speed USB device number 2 using ehci-platform
Sun Oct 29 09:43:40 2017 kern.info kernel: [    5.110000] hub 1-1:1.0: USB hub found
Sun Oct 29 09:43:40 2017 kern.info kernel: [    5.110000] hub 1-1:1.0: 4 ports detected
Sun Oct 29 09:43:40 2017 kern.info kernel: [    5.400000] usb 1-1.2: new high-speed USB device number 3 using ehci-platform
Sun Oct 29 09:43:40 2017 kern.info kernel: [    5.510000] usb-storage 1-1.2:1.0: USB Mass Storage device detected
Sun Oct 29 09:43:40 2017 kern.info kernel: [    5.510000] scsi host0: usb-storage 1-1.2:1.0
Sun Oct 29 09:43:40 2017 user.info kernel: [    5.580000] init: - preinit -
Sun Oct 29 09:43:40 2017 kern.notice kernel: [    6.150000] random: procd urandom read with 11 bits of entropy available
Sun Oct 29 09:43:40 2017 kern.notice kernel: [    6.520000] scsi 0:0:0:0: Direct-Access     Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 2
Sun Oct 29 09:43:40 2017 kern.notice kernel: [    6.530000] sd 0:0:0:0: [sda] 3904383 512-byte logical blocks: (1.99 GB/1.86 GiB)
Sun Oct 29 09:43:40 2017 kern.notice kernel: [    6.540000] sd 0:0:0:0: [sda] Write Protect is off
Sun Oct 29 09:43:40 2017 kern.debug kernel: [    6.540000] sd 0:0:0:0: [sda] Mode Sense: 0b 00 00 08
Sun Oct 29 09:43:40 2017 kern.err kernel: [    6.540000] sd 0:0:0:0: [sda] No Caching mode page found
Sun Oct 29 09:43:40 2017 kern.err kernel: [    6.550000] sd 0:0:0:0: [sda] Assuming drive cache: write through
Sun Oct 29 09:43:40 2017 kern.info kernel: [    6.690000]  sda: sda1 sda2
Sun Oct 29 09:43:40 2017 kern.notice kernel: [    6.690000] sd 0:0:0:0: [sda] Attached SCSI removable disk
Sun Oct 29 09:43:40 2017 kern.info kernel: [    7.410000] eth0: link up (1000Mbps/Full duplex)
Sun Oct 29 09:43:40 2017 user.info kernel: [    9.420000] mount_root: loading kmods from internal overlay
Sun Oct 29 09:43:40 2017 kern.info kernel: [    9.430000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 1 is up
Sun Oct 29 09:43:40 2017 kern.info kernel: [    9.430000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 2 is up
Sun Oct 29 09:43:40 2017 kern.notice kernel: [    9.710000] jffs2: notice: (442) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
Sun Oct 29 09:43:40 2017 user.info kernel: [    9.720000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
Sun Oct 29 09:43:40 2017 kern.info kernel: [   13.030000] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts:
Sun Oct 29 09:43:40 2017 user.notice kernel: [   13.050000] mount_root: switched to extroot
Sun Oct 29 09:43:40 2017 kern.info kernel: [   13.080000] eth0: link down
Sun Oct 29 09:43:40 2017 user.info kernel: [   13.100000] procd: - early -
Sun Oct 29 09:43:40 2017 user.info kernel: [   13.100000] procd: - watchdog -
Sun Oct 29 09:43:40 2017 user.info kernel: [   13.850000] procd: - ubus -
Sun Oct 29 09:43:40 2017 user.info kernel: [   14.870000] procd: - init -
Sun Oct 29 09:43:40 2017 kern.notice kernel: [   16.900000] random: nonblocking pool is initialized
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.370000] NET: Registered protocol family 10
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.390000] tun: Universal TUN/TAP device driver, 1.6
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.390000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.410000] gre: GRE over IPv4 demultiplexor driver
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.410000] ip_gre: GRE over IPv4 tunneling driver
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.430000] ip6_tables: (C) 2000-2006 Netfilter Core Team
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.460000] Netfilter messages via NETLINK v0.30.
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.460000] ip_set: protocol 6
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.550000] u32 classifier
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.550000]     input device check on
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.550000]     Actions configured
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.560000] Mirror/redirect action on
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.730000] fuse init (API version 7.23)
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.740000] usbcore: registered new interface driver cdc_acm
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.750000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.760000] usbcore: registered new interface driver cdc_wdm
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.770000] Loading modules backported from Linux version v4.4-rc5-1913-gc8fdf68
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.780000] Backport generated by backports.git backports-20151218-0-g2f58d9d
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.790000] ip_tables: (C) 2000-2006 Netfilter Core Team
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.810000] nf_conntrack version 0.5.0 (1967 buckets, 7868 max)
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.840000] usbcore: registered new interface driver usblp
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.860000] usbcore: registered new interface driver usbserial
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.870000] usbcore: registered new interface driver usbserial_generic
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.870000] usbserial: USB Serial support registered for generic
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.940000] xt_time: kernel timezone is -0000
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.940000] usbcore: registered new interface driver cdc_ether
Sun Oct 29 09:43:40 2017 kern.info kernel: [   17.950000] usbcore: registered new interface driver cdc_ncm
Sun Oct 29 09:43:40 2017 kern.info kernel: [   18.030000] usbcore: registered new interface driver huawei_cdc_ncm
Sun Oct 29 09:43:40 2017 kern.info kernel: [   18.130000] PPP generic driver version 2.4.2
Sun Oct 29 09:43:40 2017 kern.info kernel: [   18.140000] PPP MPPE Compression module registered
Sun Oct 29 09:43:40 2017 kern.info kernel: [   18.140000] NET: Registered protocol family 24
Sun Oct 29 09:43:40 2017 kern.info kernel: [   18.150000] PPTP driver version 0.8.5
Sun Oct 29 09:43:40 2017 kern.info kernel: [   18.160000] usbcore: registered new interface driver qmi_wwan
Sun Oct 29 09:43:40 2017 kern.info kernel: [   18.180000] usbcore: registered new interface driver rndis_host
Sun Oct 29 09:43:40 2017 kern.info kernel: [   18.190000] usbcore: registered new interface driver sierra
Sun Oct 29 09:43:40 2017 kern.info kernel: [   18.190000] usbserial: USB Serial support registered for Sierra USB modem
Sun Oct 29 09:43:40 2017 kern.info kernel: [   18.210000] usbcore: registered new interface driver sierra_net
Sun Oct 29 09:43:40 2017 kern.info kernel: [   18.290000] usbcore: registered new interface driver cdc_mbim
Sun Oct 29 09:43:40 2017 kern.info kernel: [   18.310000] usbcore: registered new interface driver option
Sun Oct 29 09:43:40 2017 kern.info kernel: [   18.310000] usbserial: USB Serial support registered for GSM modem (1-port)
Sun Oct 29 09:43:40 2017 kern.info kernel: [   18.330000] usbcore: registered new interface driver qcserial
Sun Oct 29 09:43:40 2017 kern.info kernel: [   18.330000] usbserial: USB Serial support registered for Qualcomm USB modem
Sun Oct 29 09:43:40 2017 kern.debug kernel: [   18.390000] ath: EEPROM regdomain: 0x0
Sun Oct 29 09:43:40 2017 kern.debug kernel: [   18.390000] ath: EEPROM indicates default country code should be used
Sun Oct 29 09:43:40 2017 kern.debug kernel: [   18.390000] ath: doing EEPROM country->regdmn map search
Sun Oct 29 09:43:40 2017 kern.debug kernel: [   18.390000] ath: country maps to regdmn code: 0x3a
Sun Oct 29 09:43:40 2017 kern.debug kernel: [   18.390000] ath: Country alpha2 being used: US
Sun Oct 29 09:43:40 2017 kern.debug kernel: [   18.390000] ath: Regpair used: 0x3a
Sun Oct 29 09:43:40 2017 kern.debug kernel: [   18.400000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Sun Oct 29 09:43:40 2017 kern.info kernel: [   18.400000] ieee80211 phy0: Atheros AR9340 Rev:2 mem=0xb8100000, irq=47
Sun Oct 29 09:43:40 2017 kern.warn kernel: [   18.410000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
Sun Oct 29 09:43:40 2017 kern.debug kernel: [   18.420000] ath: EEPROM regdomain: 0x0
Sun Oct 29 09:43:40 2017 kern.debug kernel: [   18.420000] ath: EEPROM indicates default country code should be used
Sun Oct 29 09:43:40 2017 kern.debug kernel: [   18.420000] ath: doing EEPROM country->regdmn map search
Sun Oct 29 09:43:40 2017 kern.debug kernel: [   18.420000] ath: country maps to regdmn code: 0x3a
Sun Oct 29 09:43:40 2017 kern.debug kernel: [   18.420000] ath: Country alpha2 being used: US
Sun Oct 29 09:43:40 2017 kern.debug kernel: [   18.420000] ath: Regpair used: 0x3a
Sun Oct 29 09:43:40 2017 kern.debug kernel: [   18.430000] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
Sun Oct 29 09:43:40 2017 kern.info kernel: [   18.430000] ieee80211 phy1: Atheros AR9300 Rev:4 mem=0xb0000000, irq=40
Sun Oct 29 09:43:43 2017 user.emerg syslog: this file has been obseleted. please call "/sbin/block mount" directly
Sun Oct 29 09:43:43 2017 daemon.err block: /dev/sda1 is already mounted
Sun Oct 29 09:43:46 2017 daemon.warn netifd: You have delegated IPv6-prefixes but haven't assigned them to any interface. Did you forget to set option ip6assign on your lan-interfaces?
Sun Oct 29 09:43:46 2017 kern.info kernel: [   26.480000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Sun Oct 29 09:43:46 2017 kern.info kernel: [   26.500000] device eth0.1 entered promiscuous mode
Sun Oct 29 09:43:46 2017 kern.info kernel: [   26.500000] device eth0 entered promiscuous mode
Sun Oct 29 09:43:46 2017 daemon.notice netifd: Interface 'lan' is enabled
Sun Oct 29 09:43:46 2017 daemon.notice netifd: Interface 'lan' is setting up now
Sun Oct 29 09:43:46 2017 kern.info kernel: [   26.520000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
Sun Oct 29 09:43:46 2017 daemon.notice netifd: Interface 'lan' is now up
Sun Oct 29 09:43:46 2017 daemon.notice netifd: Interface 'loopback' is enabled
Sun Oct 29 09:43:46 2017 daemon.notice netifd: Interface 'loopback' is setting up now
Sun Oct 29 09:43:46 2017 daemon.notice netifd: Interface 'loopback' is now up
Sun Oct 29 09:43:46 2017 kern.info kernel: [   26.550000] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
Sun Oct 29 09:43:46 2017 daemon.notice netifd: Interface 'wan' is enabled
Sun Oct 29 09:43:46 2017 kern.info kernel: [   26.610000] eth0: link up (1000Mbps/Full duplex)
Sun Oct 29 09:43:46 2017 kern.info kernel: [   26.610000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Sun Oct 29 09:43:46 2017 kern.info kernel: [   26.790000] br-lan: port 1(eth0.1) entered forwarding state
Sun Oct 29 09:43:46 2017 kern.info kernel: [   26.790000] br-lan: port 1(eth0.1) entered forwarding state
Sun Oct 29 09:43:46 2017 kern.info kernel: [   26.800000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
Sun Oct 29 09:43:46 2017 kern.info kernel: [   26.850000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Sun Oct 29 09:43:46 2017 daemon.notice netifd: Network device 'lo' link is up
Sun Oct 29 09:43:46 2017 daemon.notice netifd: Interface 'loopback' has link connectivity
Sun Oct 29 09:43:46 2017 daemon.notice netifd: VLAN 'eth0.2' link is up
Sun Oct 29 09:43:46 2017 daemon.notice netifd: Interface 'wan' has link connectivity
Sun Oct 29 09:43:46 2017 daemon.notice netifd: Interface 'wan' is setting up now
Sun Oct 29 09:43:46 2017 daemon.notice netifd: Network device 'eth0' link is up
Sun Oct 29 09:43:46 2017 daemon.notice netifd: VLAN 'eth0.1' link is up
Sun Oct 29 09:43:46 2017 daemon.notice netifd: Bridge 'br-lan' link is up
Sun Oct 29 09:43:46 2017 daemon.notice netifd: Interface 'lan' has link connectivity
Sun Oct 29 09:43:47 2017 daemon.notice netifd: wan (1483): udhcpc: option -h NAME is deprecated, use -x hostname:NAME
Sun Oct 29 09:43:47 2017 daemon.notice netifd: wan (1483): udhcpc (v1.23.2) started
Sun Oct 29 09:43:48 2017 daemon.notice netifd: wan (1483): Sending discover...
Sun Oct 29 09:43:48 2017 daemon.notice netifd: wan (1483): Sending select for 109.xx.xx.xx...
Sun Oct 29 09:43:48 2017 daemon.notice netifd: wan (1483): Lease of 109.xx.xx.xx obtained, lease time 7200
Sun Oct 29 09:43:48 2017 authpriv.info dropbear[1499]: Not backgrounding
Sun Oct 29 09:43:48 2017 kern.info kernel: [   28.790000] br-lan: port 1(eth0.1) entered forwarding state
Sun Oct 29 09:43:48 2017 daemon.notice netifd: Interface 'wan' is now up
Sun Oct 29 09:43:50 2017 daemon.notice netifd: radio0 (1433): Configuration file: /var/run/hostapd-phy0.conf
Sun Oct 29 09:43:50 2017 kern.info kernel: [   30.290000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Sun Oct 29 09:43:50 2017 kern.info kernel: [   30.340000] device wlan0 entered promiscuous mode
Sun Oct 29 09:43:50 2017 daemon.notice netifd: radio0 (1433): wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Sun Oct 29 09:43:50 2017 daemon.notice netifd: radio0 (1433): Using interface wlan0 with hwaddr e8:94:xx:xx:a2:d9 and ssid "xx-x"
Sun Oct 29 09:43:50 2017 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Sun Oct 29 09:43:52 2017 kern.info kernel: [   32.370000] br-lan: port 2(wlan0) entered forwarding state
Sun Oct 29 09:43:52 2017 kern.info kernel: [   32.380000] br-lan: port 2(wlan0) entered forwarding state
Sun Oct 29 09:43:52 2017 kern.info kernel: [   32.380000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Sun Oct 29 09:43:52 2017 daemon.notice netifd: radio0 (1433): wlan0: interface state COUNTRY_UPDATE->ENABLED
Sun Oct 29 09:43:52 2017 daemon.notice netifd: radio0 (1433): wlan0: AP-ENABLED
Sun Oct 29 09:43:52 2017 daemon.notice netifd: Network device 'wlan0' link is up
Sun Oct 29 09:43:53 2017 user.notice openvpn: my-vpn.conf is disabled in /etc/config/openvpn
Sun Oct 29 09:43:53 2017 user.emerg syslog: setting up led USB1
Sun Oct 29 09:43:53 2017 user.emerg syslog: setting up led USB2
Sun Oct 29 09:43:53 2017 user.emerg syslog: setting up led WLAN2G
Sun Oct 29 09:43:54 2017 daemon.info procd: - init complete -
Sun Oct 29 09:43:54 2017 kern.info kernel: [   34.380000] br-lan: port 2(wlan0) entered forwarding state
Sun Oct 29 09:43:56 2017 daemon.info dnsmasq[2060]: started, version 2.73 cachesize 150
Sun Oct 29 09:43:56 2017 daemon.info dnsmasq[2060]: compile time options: no-IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC loop-detect inotify
Sun Oct 29 09:43:56 2017 daemon.info dnsmasq[2060]: DNS service limited to local subnets
Sun Oct 29 09:43:56 2017 daemon.info dnsmasq-dhcp[2060]: DHCP, IP range 192.168.1.50 -- 192.168.1.99, lease time 12h
Sun Oct 29 09:43:56 2017 daemon.info dnsmasq[2060]: reading /tmp/resolv.conf.auto
Sun Oct 29 09:43:56 2017 daemon.warn dnsmasq[2060]: ignoring nameserver 192.168.1.1 - local interface
Sun Oct 29 09:43:56 2017 daemon.info dnsmasq[2060]: using nameserver 8.8.8.8#53
Sun Oct 29 09:43:56 2017 daemon.info dnsmasq[2060]: using nameserver 8.8.4.4#53
Sun Oct 29 09:43:56 2017 daemon.info dnsmasq[2060]: read /etc/hosts - 3 addresses
Sun Oct 29 09:43:56 2017 daemon.info dnsmasq[2060]: read /tmp/hosts/dhcp - 1 addresses
Sun Oct 29 09:43:56 2017 daemon.info dnsmasq-dhcp[2060]: read /etc/ethers - 1 addresses
Sun Oct 29 09:44:01 2017 user.notice firewall: Reloading firewall due to ifup of wan (eth0.2)
Sun Oct 29 09:44:02 2017 authpriv.info dropbear[2308]: Child connection from 192.168.1.98:63087 - to moj komp (adres recznie wpisany)
Sun Oct 29 09:44:04 2017 daemon.info hostapd: wlan0: STA 34:e2:xx:xx:xx:29 IEEE 802.11: authenticated - tutaj jakis mobile próbuje doić się przez WPA2-enterprise bo na drugim radiu mam radiusa
Sun Oct 29 09:44:04 2017 daemon.info hostapd: wlan0: STA 34:e2:xx:xx:xx:29 IEEE 802.11: associated (aid 1)
Sun Oct 29 09:44:04 2017 daemon.info hostapd: wlan0: STA 34:e2:xx:xx:xx:29 RADIUS: starting accounting session 59F594C8-00000000
Sun Oct 29 09:44:04 2017 daemon.info hostapd: wlan0: STA 34:e2:xx:xx:xx:29 WPA: pairwise key handshake completed (RSN)
Sun Oct 29 09:44:06 2017 user.notice ddns-scripts[2388]: myddns_ipv4: PID '2388' started at 2017-10-29 09:44
Sun Oct 29 09:44:06 2017 user.warn ddns-scripts[2388]: myddns_ipv4: Service section disabled! - TERMINATE
Sun Oct 29 09:44:06 2017 user.warn ddns-scripts[2388]: myddns_ipv4: PID '2388' exit WITH ERROR '1' at 2017-10-29 09:44
Sun Oct 29 09:44:11 2017 authpriv.notice dropbear[2308]: Password auth succeeded for 'root' from 192.168.1.98:63087