1 (edytowany przez alossek 2014-04-12 19:11:50)

Temat: [Rozwiązany] Problem z DHCP - (AA-r39928 by obsy)

Cześć !

W skrócie, po restarcie wszystko gra, po około 30 minutach:

Apr 11 19:48:18 OpenWrt daemon.notice netifd: wan (867): Sending renew...
Apr 11 19:48:18 OpenWrt daemon.notice netifd: wan (867): udhcpc: connect: Network is unreachable

i już tak do końca logu.
po

/etc/init.d/network restart 

jest ok.

Dzieje się tak to AA (r39928 by obsy) cudów w konfiguracji tam nie ma
(na poprzedniej AA (wersja gdzieś z okolic rc2) wszystko działo).

Załączę co potrzeba w kolejnych postach
jak ktoś się zlituje i ma pomysł jak by to pokonać.

Pozdrawiam!
i proszę o pomoc.

TP-Link TL-WDR4300 v1, Reboot (17.01-SNAPSHOT, r3876-efb6ca1)

2

Odp: [Rozwiązany] Problem z DHCP - (AA-r39928 by obsy)

rc2 to nie jest poprzednia, to kilkanaście miesięcy temu. Jaki czas dzierżawy dostajesz?

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

3

Odp: [Rozwiązany] Problem z DHCP - (AA-r39928 by obsy)

Cezary napisał/a:

rc2 to nie jest poprzednia, to kilkanaście miesięcy temu.

tak, chodziło mi raczej o poprzednią jaką miałem.

Cezary napisał/a:

Jaki czas dzierżawy dostajesz?

Jak dobrze wyczytuje to 3600

Jan  1 01:00:44 OpenWrt daemon.notice netifd: wan (884): Lease of xxx.xxx.xxx.xxx obtained, lease time 3600
TP-Link TL-WDR4300 v1, Reboot (17.01-SNAPSHOT, r3876-efb6ca1)

4

Odp: [Rozwiązany] Problem z DHCP - (AA-r39928 by obsy)

Będąc precyzyjniejszym mam dwa wany (we vlanach) i dzierżawa jest różna,
w dodatku co jakiś czas DHCP załapie.

Apr 11 04:43:11 OpenWrt daemon.notice netifd: wan_iptv (902): Sending renew...
Apr 11 04:43:11 OpenWrt daemon.notice netifd: wan_iptv (902): udhcpc: connect: Network is unreachable
Apr 11 04:44:49 OpenWrt daemon.notice netifd: wan_iptv (902): Sending renew...
Apr 11 04:44:49 OpenWrt daemon.notice netifd: wan_iptv (902): udhcpc: connect: Network is unreachable
Apr 11 04:45:38 OpenWrt daemon.notice netifd: wan_iptv (902): Sending renew...
Apr 11 04:45:38 OpenWrt daemon.notice netifd: wan_iptv (902): Lease of yyy.yyy.yyy.yyy obtained, lease time 5894
Apr 11 04:49:48 OpenWrt daemon.notice netifd: wan (893): Sending renew...
Apr 11 04:49:48 OpenWrt daemon.notice netifd: wan (893): udhcpc: connect: Network is unreachable
Apr 11 04:53:33 OpenWrt daemon.notice netifd: wan (893): Sending renew...
Apr 11 04:53:33 OpenWrt daemon.notice netifd: wan (893): udhcpc: connect: Network is unreachable
Apr 11 04:55:25 OpenWrt daemon.notice netifd: wan (893): Sending renew...
Apr 11 04:55:25 OpenWrt daemon.notice netifd: wan (893): udhcpc: connect: Network is unreachable
Apr 11 04:56:21 OpenWrt daemon.notice netifd: wan (893): Sending renew...
Apr 11 04:56:21 OpenWrt daemon.notice netifd: wan (893): Lease of xxx.xxx.xxx.xxx obtained, lease time 3600
Apr 11 05:26:21 OpenWrt daemon.notice netifd: wan (893): Sending renew...
Apr 11 05:26:21 OpenWrt daemon.notice netifd: wan (893): udhcpc: connect: Network is unreachable
Apr 11 05:34:46 OpenWrt daemon.notice netifd: wan_iptv (902): Sending renew...
Apr 11 05:34:46 OpenWrt daemon.notice netifd: wan_iptv (902): udhcpc: connect: Network is unreachable
Apr 11 05:41:22 OpenWrt daemon.notice netifd: wan (893): Sending renew...
Apr 11 05:41:22 OpenWrt daemon.notice netifd: wan (893): udhcpc: connect: Network is unreachable
Apr 11 05:48:52 OpenWrt daemon.notice netifd: wan (893): Sending renew...
Apr 11 05:48:52 OpenWrt daemon.notice netifd: wan (893): udhcpc: connect: Network is unreachable
Apr 11 05:52:37 OpenWrt daemon.notice netifd: wan (893): Sending renew...
Apr 11 05:52:37 OpenWrt daemon.notice netifd: wan (893): udhcpc: connect: Network is unreachable
Apr 11 05:54:29 OpenWrt daemon.notice netifd: wan (893): Sending renew...
Apr 11 05:54:29 OpenWrt daemon.notice netifd: wan (893): udhcpc: connect: Network is unreachable
Apr 11 05:55:25 OpenWrt daemon.notice netifd: wan (893): Sending renew...
Apr 11 05:55:25 OpenWrt daemon.notice netifd: wan (893): Lease of xxx.xxx.xxx.xxx obtained, lease time 3600
TP-Link TL-WDR4300 v1, Reboot (17.01-SNAPSHOT, r3876-efb6ca1)

5

Odp: [Rozwiązany] Problem z DHCP - (AA-r39928 by obsy)

Czyli godzinę, system na połowie się pytana o nowy i dostajesz odpowiedź że jest problem z siecią.

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

6

Odp: [Rozwiązany] Problem z DHCP - (AA-r39928 by obsy)

Cezary napisał/a:

Czyli godzinę, system na połowie się pytana o nowy i dostajesz odpowiedź że jest problem z siecią.

Ok, ale co mogę z tym zrobić ?
Skąd ten problem z siecią ?
Jak to zdiagnozować i czemu po network restart jest ok ?
Jeszcze route -n
po reset

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         217.17.52.1    0.0.0.0         UG    10     0        0 eth0.2
0.0.0.0         171.20.14.1     0.0.0.0         UG    20     0        0 eth0.3500
171.20.14.0     0.0.0.0         255.255.254.0   U     20     0        0 eth0.3500
192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 br-lan
217.17.52.0    0.0.0.0         255.255.255.0   U     10     0        0 eth0.2
224.0.0.0       0.0.0.0         240.0.0.0       U     20     0        0 eth0.3500

po jakimś czasie

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
171.20.14.0     0.0.0.0         255.255.254.0   U     20     0        0 eth0.3500
192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 br-lan
217.17.52.0    0.0.0.0         255.255.255.0   U     10     0        0 eth0.2
224.0.0.0       0.0.0.0         240.0.0.0       U     20     0        0 eth0.3500
TP-Link TL-WDR4300 v1, Reboot (17.01-SNAPSHOT, r3876-efb6ca1)

7

Odp: [Rozwiązany] Problem z DHCP - (AA-r39928 by obsy)

Trasy domyślniej nie masz jak widzisz. Co masz z tym vlanem 3500?

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

8

Odp: [Rozwiązany] Problem z DHCP - (AA-r39928 by obsy)

Cezary napisał/a:

Trasy domyślniej nie masz jak widzisz. Co masz z tym vlanem 3500?

Tak widzę, jednak nadal nie wiem dlaczego znika (na wersji Backfire i AA rc2 działo).
Na drugim vlan jest IPTV (http://eko.one.pl/forum/viewtopic.php?id=3400)

#----- interface ------

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

config 'interface' 'wan_iptv'
    option 'ifname' 'eth0.3500'
    option 'proto' 'dhcp'
    option 'metric' '20'

config 'interface' 'wan'
    option 'ifname' 'eth0.2'
    option 'proto' 'dhcp'
    option 'metric' '10'

config 'interface' 'lan'
    option 'ifname' 'eth0.1'
    option 'type' 'bridge'
    option 'proto' 'static'
    option 'netmask' '255.255.255.0'
    option 'ipaddr' '192.168.10.1'

#----- switch -----

config 'switch'
    option 'name' 'rtl8366rb'
    option 'reset' '1'
    option 'enable_vlan' '1'
    option 'enable_vlan4k' '1'
    option 'max_length' '3'

#----- VLAN -------

#VLAN 'wan_iptv',
config 'switch_vlan'
    option 'device' 'rtl8366rb'
    option 'vlan' '3500'
    option 'ports' '0t 5t'

#VLAN 'wan'
config 'switch_vlan'
    option 'device' 'rtl8366rb'
    option 'vlan' '2'
    option 'ports' '0 5t'

#VLAN 'lan'
config 'switch_vlan'
    option 'device' 'rtl8366rb'
    option 'vlan' '1'
    option 'ports' '1 2 3 4 5t'

#----- trasy -------

#trasa dla multicast
config 'route'
    option 'interface' 'wan_iptv'
    option 'target' '224.0.0.0'
    option 'netmask' '240.0.0.0'
    option 'gateway' '0.0.0.0'
TP-Link TL-WDR4300 v1, Reboot (17.01-SNAPSHOT, r3876-efb6ca1)

9

Odp: [Rozwiązany] Problem z DHCP - (AA-r39928 by obsy)

Ok, więc sugeruję żebyś wywalił wywalił to wszystko w diabły i zrobił domyślną normalną konfigurację. I wtedy zobaczysz czy przeżyje po tej godzinie działania.

Bo na razie to masz za dużo niewiadomych co jest przyczyną.

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

10

Odp: [Rozwiązany] Problem z DHCP - (AA-r39928 by obsy)

wystarczyło z /etc/config/network usunąć z "wan" opcje "metric",
w "wan_iptv" musi zostać.

config 'interface' 'wan_iptv'
    option 'ifname' 'eth0.3500'
    option 'proto' 'dhcp'
    option 'metric' '20'

config 'interface' 'wan'
    option 'ifname' 'eth0.2'
    option 'proto' 'dhcp'
TP-Link TL-WDR4300 v1, Reboot (17.01-SNAPSHOT, r3876-efb6ca1)