Score:0

How to detect router switching in daisy chain network?

cn flag

We have an embbeded Linux device product which supports the built-in network switch. The device has 2 ethernet ports. By using "daisy chain", 2 or more devices can be chained together. The Device2 is able to have networking as it's connected to Device1 which is connected to the router1.

      \    /        
+---------+        +---------+
| Router1 |--------| Device1 |
+---------+     +--|         |
                |  +---------+ 
                |  
  \    /        |  +---------+
+---------+     +--| Device2 |
| Router2 |        |         |
+---------+        +---------+

When we switch the router to another one for Device1, we have a way to detect the ethernet cable unplug/plug event in Device1. We trigger the IP address release and renew. This way, Device1 is able to update its IP address. For Device2, however, there is no way to detect the router switching. The subnet for router1 is 10.0.0.x. The subnet for router2 is 192.168.0.x.

By running "ip monitor" in Device2, there are some messages:

device# ip monitor
10.0.0.1 dev br0 lladdr b2:9b:68:0a:33:21 STALE
10.0.0.1 dev br0 lladdr b2:9b:68:0a:33:21 PROBE
10.0.0.1 dev br0  FAILED
10.0.0.1 dev br0  FAILED

How can I detect the router switching in this case for Device2? Is there something would change in "/sys/class/net/br0" folder?

Thanks.

ChanganAuto avatar
us flag
This has nothing to do with Ubuntu.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.