BackupGGCode / wl500g

ASUS WL-5xx RT-N1x Oleg's based custom firmware
0 stars 0 forks source link

r2321 dnsmasq #169

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Updated firmware up to d-r2321
2.
3.

What is the expected output? What do you see instead?
DNSMASQ infests the log file by the similar reports many times. Like this:

Nov  3 12:51:10 dnsmasq[83]: read /etc/hosts - 3 addresses
Nov  3 12:51:10 dnsmasq-dhcp[83]: read /etc/ethers - 1 addresses
Nov  3 12:51:10 dnsmasq[83]: using nameserver 213.148.7.4#53
Nov  3 12:51:10 dnsmasq[83]: using nameserver 212.48.193.37#53
Nov  3 12:51:25 dnsmasq[83]: read /etc/hosts - 3 addresses
Nov  3 12:51:25 dnsmasq-dhcp[83]: read /etc/ethers - 1 addresses
Nov  3 12:51:25 dnsmasq[83]: using nameserver 213.148.7.4#53
Nov  3 12:51:25 dnsmasq[83]: using nameserver 212.48.193.37#53

What version of the product are you using?
WL500gpv2-1.9.2.7-d-r2321

Please provide any additional information below.

Original issue reported on code.google.com by a.matros...@gmail.com on 3 Nov 2010 at 10:12

GoogleCodeExporter commented 9 years ago
what type of connection do you have?
in case of dhcp, what lease time do you have?
please, provide full syslog

Original comment by v...@orient-96.ru on 3 Nov 2010 at 11:32

GoogleCodeExporter commented 9 years ago
My WAN connection type is "Automatic IP"..
DHCP lease time has a default value (86400)
The full syslog below:

Jan  1 03:00:02 syslogd started: BusyBox v1.17.3
Jan  1 03:00:02 kernel: klogd started: BusyBox v1.17.3 (2010-11-03 04:42:14 MSK)
Jan  1 03:00:02 kernel: CPU revision is: 00029029
Jan  1 03:00:02 kernel: Primary instruction cache 16kB, physically tagged, 
4-way, linesize 16 bytes.
Jan  1 03:00:02 kernel: Primary data cache 16kB, 2-way, linesize 16 bytes.
Jan  1 03:00:02 kernel: Linux version 2.4.37.10 (root@localhost) (gcc version 
3.4.6) #1 2010-11-03 04:48:46 MSK
Jan  1 03:00:02 kernel: Setting the PFC to its default value
Jan  1 03:00:02 kernel: Determined physical RAM map:
Jan  1 03:00:02 kernel:  memory: 02000000 @ 00000000 (usable)
Jan  1 03:00:02 kernel: On node 0 totalpages: 8192
Jan  1 03:00:02 kernel: zone(0): 8192 pages.
Jan  1 03:00:02 kernel: PCI: no core
Jan  1 03:00:02 kernel: PCI: Fixing up bus 0
Jan  1 03:00:02 kernel: Linux NET4.0 for Linux 2.4
Jan  1 03:00:02 kernel: Based upon Swansea University Computer Society NET3.039
Jan  1 03:00:02 kernel: Initializing RT netlink socket
Jan  1 03:00:02 kernel: Starting kswapd
Jan  1 03:00:02 kernel: Journalled Block Device driver loaded
Jan  1 03:00:02 kernel: devfs: v1.12c (20020818) Richard Gooch 
(rgooch@atnf.csiro.au)
Jan  1 03:00:02 kernel: devfs: boot_options: 0x1
Jan  1 03:00:02 kernel: NTFS driver v1.1.22 [Flags: R/O]
Jan  1 03:00:02 dropbear[68]: Running in background
Jan  1 03:00:03 dnsmasq[83]: started, version 2.55 cachesize 512
Jan  1 03:00:03 dnsmasq[83]: compile time options: IPv6 GNU-getopt no-RTC 
no-DBus no-I18N DHCP no-scripts no-TFTP
Jan  1 03:00:03 dnsmasq-dhcp[83]: DHCP, IP range 10.0.0.101 -- 10.0.0.110, 
lease time 1d
Jan  1 03:00:03 dnsmasq[83]: read /etc/hosts - 3 addresses
Jan  1 03:00:03 kernel: usb.c: registered new driver usbdevfs
Jan  1 03:00:03 kernel: usb.c: registered new driver hub
Jan  1 03:00:03 dnsmasq-dhcp[83]: read /etc/ethers - 1 addresses
Jan  1 03:00:03 kernel: usb-ohci.c: USB OHCI at membase 0xb8003000, IRQ 6
Jan  1 03:00:03 kernel: usb-ohci.c: usb-00:03.0, PCI device 14e4:471a
Jan  1 03:00:03 kernel: usb.c: new USB bus registered, assigned bus number 1
Jan  1 03:00:03 kernel: hub.c: USB hub found
Jan  1 03:00:03 kernel: hub.c: 2 ports detected
Jan  1 03:00:03 kernel: ehci_hcd 00:03.1: PCI device 14e4:471a
Jan  1 03:00:03 kernel: ehci_hcd 00:03.1: irq 6, pci mem b8003800
Jan  1 03:00:03 kernel: usb.c: new USB bus registered, assigned bus number 2
Jan  1 03:00:03 kernel: ehci_hcd 00:03.1: USB 0.0 enabled, EHCI 1.00, driver 10 
Dec 2004/2.4
Jan  1 03:00:03 kernel: hub.c: USB hub found
Jan  1 03:00:03 kernel: hub.c: 2 ports detected
Jan  1 03:00:04 kernel: usb.c: registered new driver usblp
Jan  1 03:00:04 kernel: printer.c: v0.13: USB Printer Device Class driver
Jan  1 03:00:04 kernel: Linux video capture interface: v1.00
Jan  1 03:00:04 kernel: SCSI subsystem driver Revision: 1.00
Jan  1 03:00:04 kernel: hub.c: new USB device 00:03.1-1, assigned address 2
Jan  1 03:00:04 kernel: hub.c: USB hub found
Jan  1 03:00:04 kernel: hub.c: 2 ports detected
Jan  1 03:00:05 kernel: Initializing USB Mass Storage driver...
Jan  1 03:00:05 kernel: usb.c: registered new driver usb-storage
Jan  1 03:00:05 kernel: USB Mass Storage support registered.
Jan  1 03:00:05 kernel: hub.c: new USB device 00:03.1-1.1, assigned address 3
Jan  1 03:00:05 kernel: printer.c: usblp0: USB Bidirectional printer dev 3 if 1 
alt 0 proto 2 vid 0x04A9 pid 0x2684
Jan  1 03:00:05 kernel: printer.c: usblp0 Device ID string 
[76]='MFG:Canon;MDL:MF3200 Series;CMD:CARPS;CLS:PRINTER;DES:Canon MF3200 
Series;'
Jan  1 03:00:05 dnsmasq[83]: read /etc/hosts - 3 addresses
Jan  1 03:00:05 dnsmasq-dhcp[83]: read /etc/ethers - 1 addresses
Jan  1 03:00:05 dhcp client: deconfig: lease is lost
Jan  1 03:00:06 dnsmasq[83]: read /etc/hosts - 3 addresses
Jan  1 03:00:06 dnsmasq-dhcp[83]: read /etc/ethers - 1 addresses
Jan  1 03:00:06 dnsmasq[83]: using nameserver 213.157.7.2#53
Jan  1 03:00:06 dnsmasq[83]: using nameserver 212.48.194.37#53
Jan  1 03:00:06 ddns: IP address has not changed since the last update
Jan  1 03:00:06 dhcp client: bound IP : 178.66.204.229 from 178.66.192.1
Nov  3 14:38:41 dnsmasq[83]: read /etc/hosts - 3 addresses
Nov  3 14:38:41 dnsmasq-dhcp[83]: read /etc/ethers - 1 addresses
Nov  3 14:38:41 dnsmasq[83]: using nameserver 213.157.7.2#53
Nov  3 14:38:41 dnsmasq[83]: using nameserver 212.48.194.37#53
Nov  3 14:38:56 dnsmasq[83]: read /etc/hosts - 3 addresses
Nov  3 14:38:56 dnsmasq-dhcp[83]: read /etc/ethers - 1 addresses
Nov  3 14:38:56 dnsmasq[83]: using nameserver 213.157.7.2#53
Nov  3 14:38:56 dnsmasq[83]: using nameserver 212.48.194.37#53
Nov  3 14:39:12 dnsmasq[83]: read /etc/hosts - 3 addresses

etc, many times..

Original comment by a.matros...@gmail.com on 3 Nov 2010 at 11:45

GoogleCodeExporter commented 9 years ago
A few words about lease time.. We have an ability to set lease time up to 7 
days (from r2292), but we can't put more than 5 characters in the i/o-field 
(time in seconds from web-ui).

Original comment by a.matros...@gmail.com on 8 Nov 2010 at 1:19

GoogleCodeExporter commented 9 years ago
You have to read dnsmasq docs how to use suffixes (h - hour, for example) for 
lease time.

Original comment by lly.dev on 8 Nov 2010 at 1:37

GoogleCodeExporter commented 9 years ago
web-ui should be fixed to allow up to 6 chars. please flush your browres cache 
and recheck

Original comment by v...@orient-96.ru on 8 Nov 2010 at 2:37

GoogleCodeExporter commented 9 years ago
I rechecked everything and confirmed statement. Unfortunately you cannot enter 
more than 5 characters into the field and cannot use the suffixes (only 
numbers)..

Original comment by a.matros...@gmail.com on 9 Nov 2010 at 12:01

GoogleCodeExporter commented 9 years ago
As workaround use

nvram set dhcp_lease=48h

will be fixed soon

Original comment by lly.dev on 12 Nov 2010 at 7:03

GoogleCodeExporter commented 9 years ago
okay, thanx!

Original comment by a.matros...@gmail.com on 13 Nov 2010 at 9:47

GoogleCodeExporter commented 9 years ago
Should be fixed in r2336

Original comment by lly.dev on 14 Nov 2010 at 10:24

GoogleCodeExporter commented 9 years ago
It's working fine! But we do not use the dnsmasq option - "infinite" instead 
the leasetime.. Why not? ,)

http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html

Original comment by a.matros...@gmail.com on 14 Nov 2010 at 12:06

GoogleCodeExporter commented 9 years ago
"infinite" not allowed since dnsmasq don't store leases in nvram/flashfs.

Original comment by lly.dev on 14 Nov 2010 at 12:37