Hi guys,
It looks to me as if LEDE restarts all interfaces (WAN, tun) when I plug the LAN cable in, what causes me problems on the OpenVPN tun adapter and it also interrupts the WAN connection for a few seconds.
System:
Lede Reboot (17.01.4, r3560-79f57e422d)
LAN = eth0 = br-lan
WAN = eth1
Un-plug LAN cable:
Wed Apr 18 20:23:11 2018 daemon.notice netifd: Network device 'eth0' link is down
Wed Apr 18 20:23:11 2018 kern.info kernel: [ 151.692998] br-lan: port 1(eth0) entered disabled state
Wed Apr 18 20:23:12 2018 daemon.notice netifd: bridge 'br-lan' link is down
Wed Apr 18 20:23:12 2018 daemon.notice netifd: Interface 'lan' has link connectivity loss
Everything good so far.
Re-plug LAN cable:
Wed Apr 18 20:24:12 2018 daemon.notice netifd: Network device 'eth0' link is up
Wed Apr 18 20:24:12 2018 kern.info kernel: [ 212.717460] br-lan: port 1(eth0) entered forwarding state
Wed Apr 18 20:24:12 2018 kern.info kernel: [ 212.746534] br-lan: port 1(eth0) entered forwarding state
Wed Apr 18 20:24:12 2018 daemon.notice netifd: bridge 'br-lan' link is up
Wed Apr 18 20:24:12 2018 daemon.notice netifd: Interface 'lan' has link connectivity
Wed Apr 18 20:24:12 2018 daemon.notice netifd: Interface 'lan' is now down
Wed Apr 18 20:24:12 2018 daemon.info odhcpd[1303]: Raising SIGUSR1 due to address change on br-lan
Wed Apr 18 20:24:12 2018 daemon.info odhcpd[1303]: Raising SIGUSR1 due to address change on br-lan
Wed Apr 18 20:24:12 2018 user.notice root: stopping ntpclient
Wed Apr 18 20:24:12 2018 kern.info kernel: [ 212.798452] br-lan: port 1(eth0) entered disabled state
Wed Apr 18 20:24:12 2018 kern.info kernel: [ 212.834505] device eth0 left promiscuous mode
Wed Apr 18 20:24:12 2018 kern.info kernel: [ 212.882899] br-lan: port 1(eth0) entered disabled state
Wed Apr 18 20:24:12 2018 kern.info kernel: [ 212.936891] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Wed Apr 18 20:24:12 2018 daemon.notice netifd: Interface 'lan' is disabled
Wed Apr 18 20:24:12 2018 daemon.notice netifd: Network device 'eth0' link is down
Wed Apr 18 20:24:12 2018 daemon.notice netifd: bridge 'br-lan' link is down
Wed Apr 18 20:24:12 2018 daemon.notice netifd: Interface 'lan' has link connectivity loss
Wed Apr 18 20:24:12 2018 daemon.notice netifd: Interface 'loopback' is now down
Wed Apr 18 20:24:12 2018 daemon.notice netifd: Interface 'loopback' is disabled
Wed Apr 18 20:24:12 2018 daemon.notice netifd: Network device 'lo' link is down
Wed Apr 18 20:24:12 2018 daemon.notice netifd: Interface 'loopback' has link connectivity loss
Wed Apr 18 20:24:12 2018 daemon.notice netifd: Interface 'vpn1' is now down
Wed Apr 18 20:24:12 2018 daemon.notice netifd: Interface 'vpn1' is disabled
Wed Apr 18 20:24:12 2018 daemon.notice netifd: Network device 'tun1' link is down
Wed Apr 18 20:24:12 2018 daemon.notice netifd: Interface 'vpn1' has link connectivity loss
Wed Apr 18 20:24:12 2018 daemon.notice netifd: wan (1407): udhcpc: received SIGTERM
Wed Apr 18 20:24:12 2018 daemon.notice netifd: Interface 'wan' is now down
Wed Apr 18 20:24:12 2018 daemon.notice netifd: Interface 'wan' is disabled
Wed Apr 18 20:24:12 2018 daemon.notice netifd: Network device 'eth1' link is down
Wed Apr 18 20:24:12 2018 daemon.notice netifd: Interface 'wan' has link connectivity loss
Wed Apr 18 20:24:12 2018 daemon.warn dnsmasq[1544]: no servers found in /tmp/resolv.conf.auto, will retry
Wed Apr 18 20:24:13 2018 user.notice : Added device handler type: 8021ad
Wed Apr 18 20:24:13 2018 user.notice : Added device handler type: 8021q
Wed Apr 18 20:24:13 2018 user.notice : Added device handler type: macvlan
Wed Apr 18 20:24:13 2018 user.notice : Added device handler type: bridge
Wed Apr 18 20:24:13 2018 user.notice : Added device handler type: Network device
Wed Apr 18 20:24:13 2018 user.notice : Added device handler type: tunnel
Wed Apr 18 20:24:14 2018 kern.info kernel: [ 214.443615] device eth0 entered promiscuous mode
Wed Apr 18 20:24:14 2018 kern.info kernel: [ 214.491077] br-lan: port 1(eth0) entered forwarding state
Wed Apr 18 20:24:14 2018 kern.info kernel: [ 214.529412] br-lan: port 1(eth0) entered forwarding state
Wed Apr 18 20:24:14 2018 daemon.notice netifd: Interface 'lan' is enabled
Wed Apr 18 20:24:14 2018 daemon.notice netifd: Interface 'lan' is setting up now
Wed Apr 18 20:24:14 2018 daemon.notice netifd: Interface 'lan' is now up
Wed Apr 18 20:24:14 2018 daemon.notice netifd: Interface 'loopback' is enabled
Wed Apr 18 20:24:14 2018 daemon.notice netifd: Interface 'loopback' is setting up now
Wed Apr 18 20:24:14 2018 daemon.notice netifd: Interface 'loopback' is now up
Wed Apr 18 20:24:14 2018 daemon.notice netifd: Interface 'vpn1' is enabled
Wed Apr 18 20:24:14 2018 daemon.notice netifd: Interface 'wan' is enabled
Wed Apr 18 20:24:14 2018 daemon.notice netifd: bridge 'br-lan' link is up
Wed Apr 18 20:24:14 2018 daemon.notice netifd: Interface 'lan' has link connectivity
Wed Apr 18 20:24:14 2018 daemon.notice netifd: Network device 'eth0' link is up
Wed Apr 18 20:24:14 2018 daemon.info odhcpd[1303]: Raising SIGUSR1 due to address change on br-lan
Wed Apr 18 20:24:14 2018 daemon.notice netifd: Network device 'lo' link is up
Wed Apr 18 20:24:14 2018 daemon.notice netifd: Interface 'loopback' has link connectivity
Wed Apr 18 20:24:14 2018 daemon.notice netifd: Network device 'tun1' link is up
Wed Apr 18 20:24:14 2018 daemon.notice netifd: Interface 'vpn1' has link connectivity
Wed Apr 18 20:24:14 2018 daemon.notice netifd: Interface 'vpn1' is setting up now
Wed Apr 18 20:24:14 2018 daemon.notice netifd: Interface 'vpn1' is now up
Wed Apr 18 20:24:14 2018 daemon.notice netifd: Network device 'eth1' link is up
Wed Apr 18 20:24:14 2018 daemon.notice netifd: Interface 'wan' has link connectivity
Wed Apr 18 20:24:14 2018 daemon.notice netifd: Interface 'wan' is setting up now
Wed Apr 18 20:24:14 2018 daemon.notice netifd: wan (1916): udhcpc: started, v1.25.1
Wed Apr 18 20:24:14 2018 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Wed Apr 18 20:24:14 2018 daemon.notice netifd: wan (1916): udhcpc: sending discover
Wed Apr 18 20:24:14 2018 daemon.notice netifd: wan (1916): udhcpc: sending select for 192.168.11.229
Wed Apr 18 20:24:14 2018 daemon.notice netifd: wan (1916): udhcpc: lease of 192.168.11.229 obtained, lease time 5184000
Wed Apr 18 20:24:14 2018 daemon.notice netifd: Interface 'wan' is now up
Wed Apr 18 20:24:14 2018 daemon.info dnsmasq[1544]: reading /tmp/resolv.conf.auto
Wed Apr 18 20:24:14 2018 daemon.info dnsmasq[1544]: using local addresses only for domain lan
Wed Apr 18 20:24:14 2018 daemon.info dnsmasq[1544]: using nameserver 192.168.11.254#53
Wed Apr 18 20:24:15 2018 daemon.info odhcpd[1303]: Using a RA lifetime of 0 seconds on br-lan
Wed Apr 18 20:24:15 2018 daemon.notice odhcpd[1303]: Failed to send to ff02::1%br-lan (Address not available)
Wed Apr 18 20:24:15 2018 daemon.notice odhcpd[1303]: Got DHCPv6 request
Wed Apr 18 20:24:15 2018 daemon.warn odhcpd[1303]: DHCPV6 SOLICIT IA_NA from 0001000122504c0800e04b624baa on br-lan: ok fd46:f2ae:caa1::e53/128
Wed Apr 18 20:24:15 2018 daemon.notice odhcpd[1303]: Got DHCPv6 request
Wed Apr 18 20:24:15 2018 daemon.warn odhcpd[1303]: DHCPV6 REQUEST IA_NA from 0001000122504c0800e04b624baa on br-lan: ok fd46:f2ae:caa1::e53/128
Wed Apr 18 20:24:15 2018 daemon.info dnsmasq[1544]: read /etc/hosts - 4 addresses
Wed Apr 18 20:24:15 2018 daemon.info dnsmasq[1544]: read /tmp/hosts/odhcpd - 1 addresses
Wed Apr 18 20:24:15 2018 daemon.info dnsmasq[1544]: read /tmp/hosts/dhcp.cfg02411c - 2 addresses
Wed Apr 18 20:24:15 2018 daemon.info dnsmasq-dhcp[1544]: read /etc/ethers - 0 addresses
Wed Apr 18 20:24:15 2018 daemon.info odhcpd[1303]: Using a RA lifetime of 0 seconds on br-lan
Wed Apr 18 20:24:16 2018 kern.info kernel: [ 216.520051] br-lan: port 1(eth0) entered forwarding state
Wed Apr 18 20:24:16 2018 daemon.info odhcpd[1303]: Using a RA lifetime of 0 seconds on br-lan
Wed Apr 18 20:24:16 2018 user.notice root: starting ntpclient
Wed Apr 18 20:24:17 2018 user.notice firewall: Reloading firewall due to ifup of vpn1 (tun1)
Wed Apr 18 20:24:17 2018 user.notice firewall: Reloading firewall due to ifup of wan (eth1)
Wed Apr 18 20:24:18 2018 daemon.notice odhcpd[1303]: Got DHCPv6 request
Wed Apr 18 20:24:18 2018 daemon.warn odhcpd[1303]: DHCPV6 CONFIRM IA_NA from 0001000122504c0800e04b624baa on br-lan: not on-link fd46:f2ae:caa1::e53/128
Wed Apr 18 20:24:18 2018 daemon.notice odhcpd[1303]: Got DHCPv6 request
Wed Apr 18 20:24:18 2018 daemon.warn odhcpd[1303]: DHCPV6 SOLICIT IA_NA from 0001000122504c0800e04b624baa on br-lan: ok fd46:f2ae:caa1::e53/128
Wed Apr 18 20:24:18 2018 daemon.info dnsmasq[1544]: read /etc/hosts - 4 addresses
Wed Apr 18 20:24:18 2018 daemon.info dnsmasq[1544]: read /tmp/hosts/odhcpd - 0 addresses
Wed Apr 18 20:24:18 2018 daemon.info dnsmasq[1544]: read /tmp/hosts/dhcp.cfg02411c - 2 addresses
Wed Apr 18 20:24:18 2018 daemon.info dnsmasq-dhcp[1544]: read /etc/ethers - 0 addresses
Wed Apr 18 20:24:19 2018 daemon.notice odhcpd[1303]: Got DHCPv6 request
Wed Apr 18 20:24:19 2018 daemon.warn odhcpd[1303]: DHCPV6 REQUEST IA_NA from 0001000122504c0800e04b624baa on br-lan: ok fd46:f2ae:caa1::e53/128
Wed Apr 18 20:24:19 2018 daemon.info dnsmasq[1544]: read /etc/hosts - 4 addresses
Wed Apr 18 20:24:19 2018 daemon.info dnsmasq[1544]: read /tmp/hosts/odhcpd - 1 addresses
Wed Apr 18 20:24:19 2018 daemon.info dnsmasq[1544]: read /tmp/hosts/dhcp.cfg02411c - 2 addresses
Wed Apr 18 20:24:19 2018 daemon.info dnsmasq-dhcp[1544]: read /etc/ethers - 0 addresses
Wed Apr 18 20:24:19 2018 daemon.info odhcpd[1303]: Using a RA lifetime of 0 seconds on br-lan
Wed Apr 18 20:24:20 2018 daemon.info odhcpd[1303]: Using a RA lifetime of 0 seconds on br-lan
Not sure if if is like a "/etc/init.d/network restart", but the log shows that a lot of things happen on all interfaces, not only on the LAN.
Is this the way how it should be?