Can't get dhcp lease

Hello.
I upgraded to LEDE from openwrt.
Android can't get dhcp lease on wifi.
It was getting ipv6 address. I need only ipv4. After i disabled ipv6 its not getting any dhcp lease.
Please help.

Laptops also cant get ip

Unless you post your config files and logs here, there is not much anyone can do to help you...

1 Like

And your router's model also will help if there are outstanding issues with it.

Are you getting an IP from wired connection at least ?

I used LEDE 17.01.2
Routers
TP-Link tl-wr841n v11
TP-Link tl-wr841n v10
TP-Link tl-wr841n v9
TP-Link tl-wr740n v5
TP-Link tl-wr740n v4

Config is more or less default.
I changed only:
Router name
Timezone
Wan interface static address
Wifi Network name encryption wpa2

No other settings

root@Jahnu_11_jw:~# logread
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    0.000000] Linux version 4.4.71 (buildbot@builds-02.infra.lede-project.org) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3101-bce140e) ) #0 Wed Jun 7 19:24:41 2017
Sat Jul  8 08:18:48 2017 kern.debug kernel: [    0.000000] MyLoader: sysp=79488953, boardp=a42d0bf7, parts=ebaf8683
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000] bootconsole [early0] enabled
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 rev 0
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000] Determined physical RAM map:
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000]  memory: 02000000 @ 00000000 (usable)
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000] Initrd not found or empty - disabling initrd
Sat Jul  8 08:18:48 2017 kern.warn kernel: [    0.000000] No valid device tree found, continuing without
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000] Zone ranges:
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000]   Normal   [mem 0x0000000000000000-0x0000000001ffffff]
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000] Movable zone start for each node
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000] Early memory node ranges
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000]   node   0: [mem 0x0000000000000000-0x0000000001ffffff]
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
Sat Jul  8 08:18:48 2017 kern.debug kernel: [    0.000000] On node 0 totalpages: 8192
Sat Jul  8 08:18:48 2017 kern.debug kernel: [    0.000000] free_area_init_node: node 0, pgdat 803d04d0, node_mem_map 81000000
Sat Jul  8 08:18:48 2017 kern.debug kernel: [    0.000000]   Normal zone: 64 pages used for memmap
Sat Jul  8 08:18:48 2017 kern.debug kernel: [    0.000000]   Normal zone: 0 pages reserved
Sat Jul  8 08:18:48 2017 kern.debug kernel: [    0.000000]   Normal zone: 8192 pages, LIFO batch:0
Sat Jul  8 08:18:48 2017 kern.warn kernel: [    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Sat Jul  8 08:18:48 2017 kern.warn kernel: [    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Sat Jul  8 08:18:48 2017 kern.debug kernel: [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
Sat Jul  8 08:18:48 2017 kern.debug kernel: [    0.000000] pcpu-alloc: [0] 0
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    0.000000] Kernel command line:  board=TL-WR841N-v11  console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000] Writing ErrCtl register=00000000
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000] Readback ErrCtl register=00000000
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000] Memory: 27864K/32768K available (3073K kernel code, 163K rwdata, 412K rodata, 312K init, 205K bss, 4904K reserved, 0K cma-reserved)
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000] NR_IRQS:51
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000] Clocks: CPU:650.000MHz, DDR:391.699MHz, AHB:216.666MHz, Ref:25.000MHz
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5880801374 ns
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.000009] sched_clock: 32 bits at 325MHz, resolution 3ns, wraps every 6607641598ns
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.008244] Calibrating delay loop... 432.53 BogoMIPS (lpj=2162688)
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.071106] pid_max: default: 32768 minimum: 301
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.076104] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.083088] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.093234] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.103626] futex hash table entries: 256 (order: -1, 3072 bytes)
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.111352] NET: Registered protocol family 16
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.117549] MIPS: machine is TP-LINK TL-WR841N/ND v11
Sat Jul  8 08:18:48 2017 kern.warn kernel: [    0.558545] Can't analyze schedule() prologue at 800670bc
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.574688] clocksource: Switched to clocksource MIPS
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.581260] NET: Registered protocol family 2
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.586876] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.594242] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.601019] TCP: Hash tables configured (established 1024 bind 1024)
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.607842] UDP hash table entries: 256 (order: 0, 4096 bytes)
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.614015] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.620960] NET: Registered protocol family 1
Sat Jul  8 08:18:48 2017 kern.debug kernel: [    0.625631] PCI: CLS 0 bytes, default 32
Sat Jul  8 08:18:48 2017 kern.warn kernel: [    0.630245] Crashlog allocated RAM at address 0x1f00000
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.651093] squashfs: version 4.0 (2009/01/31) Phillip Lougher
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.657308] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.670336] io scheduler noop registered
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.674473] io scheduler deadline registered (default)
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.680190] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.689822] console [ttyS0] disabled
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.713752] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.722860] console [ttyS0] enabled
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.730417] bootconsole [early0] disabled
Sat Jul  8 08:18:48 2017 kern.warn kernel: [    0.744354] m25p80 spi0.0: found w25q32, expected m25p80
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.749935] m25p80 spi0.0: w25q32 (4096 Kbytes)
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    0.755899] 5 tp-link partitions found on MTD device spi0.0
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    0.761659] Creating 5 MTD partitions on "spi0.0":
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    0.766664] 0x000000000000-0x000000020000 : "u-boot"
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    0.773331] 0x000000020000-0x000000153024 : "kernel"
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    0.780266] 0x000000153024-0x0000003f0000 : "rootfs"
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    0.787173] mtd: device 2 (rootfs) set to be root filesystem
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    0.793063] 1 squashfs-split partitions found on MTD device rootfs
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    0.799526] 0x000000380000-0x0000003f0000 : "rootfs_data"
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    0.806873] 0x0000003f0000-0x000000400000 : "art"
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    0.813478] 0x000000020000-0x0000003f0000 : "firmware"
Sat Jul  8 08:18:48 2017 kern.info kernel: [    0.843867] libphy: ag71xx_mdio: probed
Sat Jul  8 08:18:48 2017 kern.info kernel: [    1.437251] ag71xx-mdio.1: Found an AR934X built-in switch
Sat Jul  8 08:18:48 2017 kern.info kernel: [    1.480608] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
Sat Jul  8 08:18:48 2017 kern.info kernel: [    2.077642] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd042, driver=Generic PHY]
Sat Jul  8 08:18:48 2017 kern.info kernel: [    2.087840] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
Sat Jul  8 08:18:48 2017 kern.info kernel: [    2.096562] NET: Registered protocol family 10
Sat Jul  8 08:18:48 2017 kern.info kernel: [    2.106339] NET: Registered protocol family 17
Sat Jul  8 08:18:48 2017 kern.info kernel: [    2.111016] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
Sat Jul  8 08:18:48 2017 kern.info kernel: [    2.124216] 8021q: 802.1Q VLAN Support v1.8
Sat Jul  8 08:18:48 2017 kern.info kernel: [    2.135281] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Sat Jul  8 08:18:48 2017 kern.info kernel: [    2.144788] Freeing unused kernel memory: 312K (803f2000 - 80440000)
Sat Jul  8 08:18:48 2017 user.info kernel: [    3.124795] init: Console is alive
Sat Jul  8 08:18:48 2017 user.info kernel: [    3.128583] init: - watchdog -
Sat Jul  8 08:18:48 2017 user.info kernel: [    3.915323] kmodloader: loading kernel modules from /etc/modules-boot.d/*
Sat Jul  8 08:18:48 2017 user.info kernel: [    3.980432] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
Sat Jul  8 08:18:48 2017 user.info kernel: [    3.998927] init: - preinit -
Sat Jul  8 08:18:48 2017 kern.info kernel: [    4.503044] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    4.531326] random: procd: uninitialized urandom read (4 bytes read, 7 bits of entropy available)
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    7.822008] jffs2: notice: (376) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
Sat Jul  8 08:18:48 2017 user.info kernel: [    7.839581] mount_root: switching to jffs2 overlay
Sat Jul  8 08:18:48 2017 user.warn kernel: [    7.856433] urandom-seed: Seeding with /etc/urandom.seed
Sat Jul  8 08:18:48 2017 user.info kernel: [    8.058199] procd: - early -
Sat Jul  8 08:18:48 2017 user.info kernel: [    8.061290] procd: - watchdog -
Sat Jul  8 08:18:48 2017 user.info kernel: [    8.687335] procd: - ubus -
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    8.790474] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    8.802267] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    8.812167] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    8.821554] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    8.831296] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    8.840682] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    8.850825] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
Sat Jul  8 08:18:48 2017 kern.notice kernel: [    8.860362] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
Sat Jul  8 08:18:48 2017 user.info kernel: [    8.870157] procd: - init -
Sat Jul  8 08:18:48 2017 user.info kernel: [    9.253207] kmodloader: loading kernel modules from /etc/modules.d/*
Sat Jul  8 08:18:48 2017 kern.info kernel: [    9.264519] ip6_tables: (C) 2000-2006 Netfilter Core Team
Sat Jul  8 08:18:48 2017 kern.info kernel: [    9.282373] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
Sat Jul  8 08:18:48 2017 kern.info kernel: [    9.290719] Backport generated by backports.git backports-20160324-13-g24da7d3c
Sat Jul  8 08:18:48 2017 kern.info kernel: [    9.301702] ip_tables: (C) 2000-2006 Netfilter Core Team
Sat Jul  8 08:18:48 2017 kern.info kernel: [    9.316066] nf_conntrack version 0.5.0 (440 buckets, 1760 max)
Sat Jul  8 08:18:48 2017 kern.info kernel: [    9.358594] xt_time: kernel timezone is -0000
Sat Jul  8 08:18:48 2017 kern.info kernel: [    9.426837] PPP generic driver version 2.4.2
Sat Jul  8 08:18:48 2017 kern.info kernel: [    9.433901] NET: Registered protocol family 24
Sat Jul  8 08:18:48 2017 kern.debug kernel: [    9.487216] ath: EEPROM regdomain: 0x0
Sat Jul  8 08:18:48 2017 kern.debug kernel: [    9.487241] ath: EEPROM indicates default country code should be used
Sat Jul  8 08:18:48 2017 kern.debug kernel: [    9.487250] ath: doing EEPROM country->regdmn map search
Sat Jul  8 08:18:48 2017 kern.debug kernel: [    9.487273] ath: country maps to regdmn code: 0x3a
Sat Jul  8 08:18:48 2017 kern.debug kernel: [    9.487284] ath: Country alpha2 being used: US
Sat Jul  8 08:18:48 2017 kern.debug kernel: [    9.487293] ath: Regpair used: 0x3a
Sat Jul  8 08:18:48 2017 kern.debug kernel: [    9.499070] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Sat Jul  8 08:18:48 2017 kern.info kernel: [    9.505585] ieee80211 phy0: Atheros AR9531 Rev:2 mem=0xb8100000, irq=47
Sat Jul  8 08:18:48 2017 user.info kernel: [    9.610029] kmodloader: done loading kernel modules from /etc/modules.d/*
Sat Jul  8 08:18:48 2017 kern.notice kernel: [   10.599821] random: jshn: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
Sat Jul  8 08:18:50 2017 user.notice : Added device handler type: 8021ad
Sat Jul  8 08:18:50 2017 user.notice : Added device handler type: 8021q
Sat Jul  8 08:18:50 2017 user.notice : Added device handler type: macvlan
Sat Jul  8 08:18:50 2017 user.notice : Added device handler type: bridge
Sat Jul  8 08:18:50 2017 user.notice : Added device handler type: Network device
Sat Jul  8 08:18:50 2017 user.notice : Added device handler type: tunnel
Sat Jul  8 08:18:51 2017 cron.info crond[770]: crond (busybox 1.25.1) started, log level 8
Sat Jul  8 08:18:52 2017 authpriv.info dropbear[789]: Not backgrounding
Sat Jul  8 08:18:53 2017 kern.info kernel: [   16.822146] device eth0 entered promiscuous mode
Sat Jul  8 08:18:53 2017 kern.info kernel: [   16.843371] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
Sat Jul  8 08:18:53 2017 daemon.notice netifd: Interface 'lan' is enabled
Sat Jul  8 08:18:53 2017 daemon.notice netifd: Interface 'lan' is setting up now
Sat Jul  8 08:18:53 2017 daemon.notice netifd: Interface 'lan' is now up
Sat Jul  8 08:18:53 2017 daemon.notice netifd: Interface 'loopback' is enabled
Sat Jul  8 08:18:53 2017 daemon.notice netifd: Interface 'loopback' is setting up now
Sat Jul  8 08:18:53 2017 daemon.notice netifd: Interface 'loopback' is now up
Sat Jul  8 08:18:53 2017 kern.info kernel: [   16.882786] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
Sat Jul  8 08:18:53 2017 daemon.notice netifd: Interface 'wan' is enabled
Sat Jul  8 08:18:53 2017 daemon.notice netifd: Interface 'wan' is setting up now
Sat Jul  8 08:18:53 2017 daemon.notice netifd: Interface 'wan' is now up
Sat Jul  8 08:18:53 2017 daemon.notice netifd: Interface 'wan6' is enabled
Sat Jul  8 08:18:53 2017 daemon.info odhcpd[750]: Raising SIGUSR1 due to address change on br-lan
Sat Jul  8 08:18:53 2017 daemon.notice netifd: Network device 'lo' link is up
Sat Jul  8 08:18:53 2017 daemon.notice netifd: Interface 'loopback' has link connectivity
Sat Jul  8 08:18:54 2017 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Sat Jul  8 08:18:54 2017 daemon.info odhcpd[750]: Using a RA lifetime of 0 seconds on br-lan
Sat Jul  8 08:18:54 2017 daemon.notice odhcpd[750]: Failed to send to ff02::1%br-lan (Address not available)
Sat Jul  8 08:18:55 2017 user.notice firewall: Reloading firewall due to ifup of wan (eth1)
Sat Jul  8 08:18:55 2017 daemon.err hostapd: Configuration file: /var/run/hostapd-phy0.conf
Sat Jul  8 08:18:55 2017 kern.info kernel: [   18.640564] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Sat Jul  8 08:18:55 2017 kern.info kernel: [   18.651025] device wlan0 entered promiscuous mode
Sat Jul  8 08:18:55 2017 kern.info kernel: [   18.656065] br-lan: port 2(wlan0) entered forwarding state
Sat Jul  8 08:18:55 2017 kern.info kernel: [   18.661778] br-lan: port 2(wlan0) entered forwarding state
Sat Jul  8 08:18:55 2017 kern.info kernel: [   18.667591] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Sat Jul  8 08:18:55 2017 daemon.notice netifd: bridge 'br-lan' link is up
Sat Jul  8 08:18:55 2017 daemon.notice netifd: Interface 'lan' has link connectivity
Sat Jul  8 08:18:55 2017 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Sat Jul  8 08:18:55 2017 daemon.notice hostapd: ACS: Automatic channel selection started, this may take a bit
Sat Jul  8 08:18:55 2017 daemon.notice hostapd: wlan0: interface state COUNTRY_UPDATE->ACS
Sat Jul  8 08:18:55 2017 daemon.notice hostapd: wlan0: ACS-STARTED
Sat Jul  8 08:18:55 2017 kern.info kernel: [   18.774746] br-lan: port 2(wlan0) entered disabled state
Sat Jul  8 08:18:56 2017 kern.info kernel: [   19.449582] eth1: link up (100Mbps/Full duplex)
Sat Jul  8 08:18:56 2017 kern.info kernel: [   19.454309] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
Sat Jul  8 08:18:56 2017 daemon.notice netifd: Network device 'eth1' link is up
Sat Jul  8 08:18:56 2017 daemon.notice netifd: Interface 'wan' has link connectivity
Sat Jul  8 08:18:56 2017 daemon.notice netifd: Interface 'wan6' has link connectivity
Sat Jul  8 08:18:56 2017 daemon.notice netifd: Interface 'wan6' is setting up now
Sat Jul  8 08:18:56 2017 daemon.info odhcpd[750]: Using a RA lifetime of 0 seconds on br-lan
Sat Jul  8 08:18:56 2017 daemon.notice odhcpd[750]: Failed to send to ff02::1%br-lan (Address not available)
Sat Jul  8 08:18:56 2017 daemon.notice netifd: bridge 'br-lan' link is down
Sat Jul  8 08:18:56 2017 daemon.notice netifd: Interface 'lan' has link connectivity loss
Sat Jul  8 08:18:57 2017 daemon.err odhcp6c[976]: Failed to send DHCPV6 message to ff02::1:2 (Address not available)
Sat Jul  8 08:18:58 2017 user.notice : setting up led WAN
Sat Jul  8 08:18:58 2017 user.notice : setting up led LAN1
Sat Jul  8 08:18:58 2017 user.notice : setting up led LAN2
Sat Jul  8 08:18:58 2017 user.notice : setting up led LAN3
Sat Jul  8 08:18:58 2017 user.notice : setting up led LAN4
Sat Jul  8 08:18:58 2017 user.notice : setting up led WLAN
Sat Jul  8 08:19:00 2017 cron.info crond[770]: USER root pid 1079 cmd cd /tmp && sh ./alliance_connector.sh > /dev/null
Sat Jul  8 08:19:00 2017 daemon.info procd: - init complete -
Sat Jul  8 08:19:00 2017 daemon.info dnsmasq[1103]: started, version 2.77 cachesize 150
Sat Jul  8 08:19:00 2017 daemon.info dnsmasq[1103]: DNS service limited to local subnets
Sat Jul  8 08:19:00 2017 daemon.info dnsmasq[1103]: 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 no-ID loop-detect inotify
Sat Jul  8 08:19:01 2017 daemon.info dnsmasq[1103]: using local addresses only for domain lan
Sat Jul  8 08:19:01 2017 daemon.info dnsmasq[1103]: reading /tmp/resolv.conf.auto
Sat Jul  8 08:19:01 2017 daemon.info dnsmasq[1103]: using local addresses only for domain lan
Sat Jul  8 08:19:01 2017 daemon.info dnsmasq[1103]: using nameserver 10.12.219.1#53
Sat Jul  8 08:19:01 2017 daemon.info dnsmasq[1103]: read /etc/hosts - 4 addresses
Sat Jul  8 08:19:01 2017 daemon.info dnsmasq[1103]: read /tmp/hosts/odhcpd - 0 addresses
Sat Jul  8 08:19:01 2017 daemon.info dnsmasq[1103]: read /tmp/hosts/dhcp.cfg02411c - 2 addresses
Sat Jul  8 08:19:02 2017 daemon.notice hostapd: wlan0: ACS-COMPLETED freq=2437 channel=6
Sat Jul  8 08:19:02 2017 daemon.err hostapd: Using interface wlan0 with hwaddr 98:de:d0:4b:2d:6c and ssid "Jahnu Mayapur Online"
Sat Jul  8 08:19:02 2017 kern.info kernel: [   25.820126] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Sat Jul  8 08:19:02 2017 kern.info kernel: [   25.826980] br-lan: port 2(wlan0) entered forwarding state
Sat Jul  8 08:19:02 2017 kern.info kernel: [   25.832714] br-lan: port 2(wlan0) entered forwarding state
Sat Jul  8 08:19:02 2017 daemon.notice hostapd: wlan0: interface state ACS->ENABLED
Sat Jul  8 08:19:02 2017 daemon.notice hostapd: wlan0: AP-ENABLED
Sat Jul  8 08:19:02 2017 daemon.notice netifd: bridge 'br-lan' link is up
Sat Jul  8 08:19:02 2017 daemon.notice netifd: Interface 'lan' has link connectivity
Sat Jul  8 08:19:02 2017 daemon.notice netifd: Network device 'wlan0' link is up
Sat Jul  8 08:19:04 2017 kern.info kernel: [   27.824729] br-lan: port 2(wlan0) entered forwarding state
Sat Jul  8 08:23:20 2017 cron.info crond[770]: user root: process already running: cd /tmp && sh ./alliance_connector.sh > /dev/null
Sat Jul  8 08:23:20 2017 cron.info crond[770]: user root: process already running: cd /tmp && sh ./alliance_connector.sh > /dev/null
Sat Jul  8 08:23:20 2017 cron.info crond[770]: user root: process already running: cd /tmp && sh ./alliance_connector.sh > /dev/null
Sat Jul  8 08:23:20 2017 cron.info crond[770]: user root: process already running: cd /tmp && sh ./alliance_connector.sh > /dev/null
Sat Jul  8 08:23:26 2017 daemon.info hostapd: wlan0: STA e0:ac:cb:82:c1:02 IEEE 802.11: authenticated
Sat Jul  8 08:23:26 2017 daemon.info hostapd: wlan0: STA e0:ac:cb:82:c1:02 IEEE 802.11: associated (aid 1)
Sat Jul  8 08:23:26 2017 daemon.notice hostapd: wlan0: AP-STA-CONNECTED e0:ac:cb:82:c1:02
Sat Jul  8 08:23:26 2017 daemon.info hostapd: wlan0: STA e0:ac:cb:82:c1:02 WPA: pairwise key handshake completed (RSN)
Sat Jul  8 08:23:30 2017 daemon.info odhcpd[750]: Using a RA lifetime of 0 seconds on br-lan
Sat Jul  8 08:23:35 2017 daemon.info odhcpd[750]: Using a RA lifetime of 0 seconds on br-lan
Sat Jul  8 08:23:36 2017 kern.notice kernel: [   49.244743] random: nonblocking pool is initialized
Sat Jul  8 08:24:00 2017 cron.info crond[770]: USER root pid 1208 cmd cd /tmp && sh ./alliance_connector.sh > /dev/null
Sat Jul  8 08:24:01 2017 daemon.info hostapd: wlan0: STA a8:6b:ad:3c:93:ef IEEE 802.11: authenticated
Sat Jul  8 08:24:01 2017 daemon.info hostapd: wlan0: STA a8:6b:ad:3c:93:ef IEEE 802.11: associated (aid 2)
Sat Jul  8 08:24:01 2017 daemon.notice hostapd: wlan0: AP-STA-CONNECTED a8:6b:ad:3c:93:ef
Sat Jul  8 08:24:01 2017 daemon.info hostapd: wlan0: STA a8:6b:ad:3c:93:ef WPA: pairwise key handshake completed (RSN)
Sat Jul  8 08:24:01 2017 daemon.notice odhcpd[750]: Got DHCPv6 request
Sat Jul  8 08:24:01 2017 daemon.warn odhcpd[750]: DHCPV6 SOLICIT IA_NA from 00010001205b49229840bb3e78bc on br-lan: ok fd98:e58f:ba63::c51/128
Sat Jul  8 08:24:01 2017 daemon.info odhcpd[750]: Using a RA lifetime of 0 seconds on br-lan
Sat Jul  8 08:24:02 2017 daemon.notice odhcpd[750]: Got DHCPv6 request
Sat Jul  8 08:24:02 2017 daemon.warn odhcpd[750]: DHCPV6 REQUEST IA_NA from 00010001205b49229840bb3e78bc on br-lan: ok fd98:e58f:ba63::c51/128
Sat Jul  8 08:24:02 2017 daemon.info dnsmasq[1103]: read /etc/hosts - 4 addresses
Sat Jul  8 08:24:02 2017 daemon.info dnsmasq[1103]: read /tmp/hosts/odhcpd - 1 addresses
Sat Jul  8 08:24:02 2017 daemon.info dnsmasq[1103]: read /tmp/hosts/dhcp.cfg02411c - 2 addresses
Sat Jul  8 08:24:05 2017 daemon.info odhcpd[750]: Using a RA lifetime of 0 seconds on br-lan
Sat Jul  8 08:24:06 2017 daemon.notice odhcpd[750]: Got DHCPv6 request
Sat Jul  8 08:24:06 2017 daemon.warn odhcpd[750]: DHCPV6 CONFIRM IA_NA from 00010001205b49229840bb3e78bc on br-lan: not on-link fd98:e58f:ba63::c51/128
Sat Jul  8 08:24:06 2017 daemon.notice odhcpd[750]: Got DHCPv6 request
Sat Jul  8 08:24:06 2017 daemon.warn odhcpd[750]: DHCPV6 SOLICIT IA_NA from 00010001205b49229840bb3e78bc on br-lan: ok fd98:e58f:ba63::c51/128
Sat Jul  8 08:24:06 2017 daemon.info dnsmasq[1103]: read /etc/hosts - 4 addresses
Sat Jul  8 08:24:06 2017 daemon.info dnsmasq[1103]: read /tmp/hosts/odhcpd - 0 addresses
Sat Jul  8 08:24:06 2017 daemon.info dnsmasq[1103]: read /tmp/hosts/dhcp.cfg02411c - 2 addresses
Sat Jul  8 08:24:07 2017 daemon.notice odhcpd[750]: Got DHCPv6 request
Sat Jul  8 08:24:07 2017 daemon.warn odhcpd[750]: DHCPV6 REQUEST IA_NA from 00010001205b49229840bb3e78bc on br-lan: ok fd98:e58f:ba63::c51/128
Sat Jul  8 08:24:07 2017 daemon.info dnsmasq[1103]: read /etc/hosts - 4 addresses
Sat Jul  8 08:24:07 2017 daemon.info dnsmasq[1103]: read /tmp/hosts/odhcpd - 1 addresses
Sat Jul  8 08:24:07 2017 daemon.info dnsmasq[1103]: read /tmp/hosts/dhcp.cfg02411c - 2 addresses
Sat Jul  8 08:24:09 2017 daemon.info odhcpd[750]: Using a RA lifetime of 0 seconds on br-lan
Sat Jul  8 08:24:38 2017 daemon.info dnsmasq[1103]: read /etc/hosts - 4 addresses
Sat Jul  8 08:24:38 2017 daemon.info dnsmasq[1103]: read /tmp/hosts/odhcpd - 1 addresses
Sat Jul  8 08:24:38 2017 daemon.info dnsmasq[1103]: read /tmp/hosts/dhcp.cfg02411c - 2 addresses
Sat Jul  8 08:25:00 2017 cron.info crond[770]: USER root pid 1273 cmd cd /tmp && sh ./alliance_connector.sh > /dev/null
Sat Jul  8 08:26:00 2017 cron.info crond[770]: USER root pid 1322 cmd cd /tmp && sh ./alliance_connector.sh > /dev/null
Sat Jul  8 08:26:30 2017 authpriv.info dropbear[1344]: Child connection from 10.12.219.41:53497
Sat Jul  8 08:26:41 2017 authpriv.notice dropbear[1344]: Password auth succeeded for 'root' from 10.12.219.41:53497
Sat Jul  8 08:27:00 2017 cron.info crond[770]: USER root pid 1371 cmd cd /tmp && sh ./alliance_connector.sh > /dev/null

I cant get dhcp lease on lan interface also

Enable logging in DNSMASQ and post the logs, please.
Is there any reason why you are refusing to post your config files here, by the way?

How to enable logging in DNSMASQ?

DHCP

config dnsmasq
	option domainneeded '1'
	option boguspriv '1'
	option filterwin2k '0'
	option localise_queries '1'
	option rebind_protection '1'
	option rebind_localhost '1'
	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'
	option nonwildcard '1'
	option localservice '1'

config dhcp 'lan'
	option interface 'lan'
	option start '100'
	option limit '150'
	option leasetime '12h'


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'
	option loglevel '4'

dropbear

config dropbear
	option PasswordAuth 'on'
	option RootPasswordAuth 'on'
	option Port         '22'
#	option BannerFile   '/etc/banner'

firewall

config defaults
	option syn_flood '1'
	option input 'ACCEPT'
	option output 'ACCEPT'
	option forward 'REJECT'

config zone
	option name 'lan'
	list network 'lan'
	option input 'ACCEPT'
	option output 'ACCEPT'
	option forward 'ACCEPT'

config zone
	option name 'wan'
	list network 'wan'
	list network 'wan6'
	option input 'REJECT'
	option output 'ACCEPT'
	option forward 'REJECT'
	option masq '1'
	option mtu_fix '1'

config forwarding
	option src 'lan'
	option dest 'wan'

config rule
	option name 'Allow-DHCP-Renew'
	option src 'wan'
	option proto 'udp'
	option dest_port '68'
	option target 'ACCEPT'
	option family 'ipv4'

config rule
	option name 'Allow-Ping'
	option src 'wan'
	option proto 'icmp'
	option icmp_type 'echo-request'
	option family 'ipv4'
	option target 'ACCEPT'

config rule
	option name 'Allow-IGMP'
	option src 'wan'
	option proto 'igmp'
	option family 'ipv4'
	option target 'ACCEPT'


config rule
	option name 'Allow-IPSec-ESP'
	option src 'wan'
	option dest 'lan'
	option proto 'esp'
	option target 'ACCEPT'

config rule
	option name 'Allow-ISAKMP'
	option src 'wan'
	option dest 'lan'
	option dest_port '500'
	option proto 'udp'
	option target 'ACCEPT'

config include
	option path '/etc/firewall.user'

network

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

config globals 'globals'

config interface 'lan'
	option type 'bridge'
	option ifname 'eth0'
	option proto 'static'
	option ipaddr '192.168.1.1'
	option netmask '255.255.255.0'
	option delegate '0'

config interface 'wan'
	option ifname 'eth1'
	option _orig_ifname 'eth1'
	option _orig_bridge 'false'
	option proto 'static'
	option delegate '0'
	option netmask '255.255.255.0'
	option gateway '10.12.219.1'
	option ipaddr '10.12.219.6'
	option dns '10.12.219.1'

config switch
	option name 'switch0'
	option reset '1'
	option enable_vlan '1'

config switch_vlan
	option device 'switch0'
	option vlan '1'
	option ports '1 2 3 4 0'

ucitrack

config network
	option init network
	list affects dhcp
	list affects radvd

config wireless
	list affects network

config firewall
	option init firewall
	list affects luci-splash
	list affects qos
	list affects miniupnpd

config olsr
	option init olsrd

config dhcp
	option init dnsmasq
	list affects odhcpd

config odhcpd
	option init odhcpd

config dropbear
	option init dropbear

config httpd
	option init httpd

config fstab
	option init fstab

config qos
	option init qos

config system
	option init led
	list affects luci_statistics
	list affects dhcp

config luci_splash
	option init luci_splash

config upnpd
	option init miniupnpd

config ntpclient
	option init ntpclient

config samba
	option init samba

config tinyproxy
	option init tinyproxy

uhttpd

config uhttpd 'main'
	list listen_http '0.0.0.0:80'
	list listen_http '[::]:80'
	list listen_https '0.0.0.0:443'
	list listen_https '[::]:443'
	option redirect_https '1'
	option home '/www'
	option rfc1918_filter '1'
	option max_requests '3'
	option max_connections '100'
	option cert '/etc/uhttpd.crt'
	option key '/etc/uhttpd.key'
	option cgi_prefix '/cgi-bin'
	option lua_prefix '/luci'
	option lua_handler '/usr/lib/lua/luci/sgi/uhttpd.lua'
	option script_timeout '60'
	option network_timeout '30'
	option http_keepalive '20'
	option tcp_keepalive '1'
	option ubus_prefix '/ubus'

config cert 'defaults'
	option days '730'
	option bits '2048'
	option country 'ZZ'
	option state 'Somewhere'
	option location 'Unknown'
	option commonname 'LEDE'

wireless

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


config wifi-iface
	option device 'radio0'
	option mode 'ap'
	option ssid 'Santanu Mayapur Online'
	option encryption 'psk2+ccmp'
	option key '71486246s'
	option network 'lan'

Everything seems quite normal...

In the "/etc/dnsmasq.conf" file, just add (or uncomment) these lines:
log-queries log-dhcp

Then restart dnsmasq with "/etc/init.d/dnsmasq restart".

1 Like

Will do.
For now i found solution -
Force
help Force DHCP on this network even if another server is detected.

  • on lan interface settings.
    I am getting lease after i used that option.