#17953: netifd - hotplug ifdown events and behaving differently in VM (NIC and 
vNIC
link loss)
-----------------------+------------------------
 Reporter:  anonymous  |      Owner:  developers
     Type:  defect     |     Status:  new
 Priority:  normal     |  Milestone:
Component:  packages   |    Version:  Trunk
 Keywords:  netifd     |
-----------------------+------------------------
 Two issues I've come across while testing OpenWrt (CC trunk and BB-14.07
 HEAD) + mwan3 in a VirtualBox VM v4.3.16 (x86):

  - netifd doesn't seem to send hotplug ifdown trigger, see
 https://forum.openwrt.org/viewtopic.php?pid=247780#p247780
  - in a x86 VM under VirtualBox netifd seems to "flush" routes upon vNIC
 link loss (unchecking of "Cable Connected"), but it doesn't behave the
 same on a physical router (TL-WDR4300)

 For details, please check today's discussion between Adze and kpv at
 https://forum.openwrt.org/viewtopic.php?id=39052&p=37

 In a VM, BEFORE disconnecting wan / eth1:
 {{{
 root@OpenWrt:~# ip route list table 1 default dev eth1
 default via 10.0.3.1
 root@OpenWrt:~#
 }}}

 whereas immediately after disconnecting wan / eth1 (unchecking of "Cable
 Connected") this route gets deleted:
 {{{
 root@OpenWrt:~# ip route list table 1 default dev eth1
 root@OpenWrt:~#
 }}}

 However, in case of a physical TP-LINK TL-WDR4300 router, that route isn't
 flushed.

 In VM the "unplugged" NIC:
 {{{
 root@OpenWrt:~# ip link sh
 ...
 7: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc hfsc state
 DOWN mode DEFAULT group default qlen 5
     link/ether 08:00:27:c1:de:6d brd ff:ff:ff:ff:ff:ff

 root@OpenWrt:~# ifconfig
 ...
 eth1      Link encap:Ethernet  HWaddr 08:00:27:C1:DE:6D
           inet6 addr: fe80::a00:27ff:fec1:de6d/64 Scope:Link
           UP BROADCAST MULTICAST  MTU:1500  Metric:1
           RX packets:611459 errors:0 dropped:0 overruns:0 frame:0
           TX packets:336570 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:5
           RX bytes:808462195 (771.0 MiB)  TX bytes:25230266 (24.0 MiB)
 }}}

 netifd - 2014-09-08-46c569989f984226916fec28dd8ef152a664043e
 OpenWrt BB 14.07 r42625

--
Ticket URL: <https://dev.openwrt.org/ticket/17953>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to