Duplicates in route table.
I am working with a linux OS embedded device.
It has a wired ethernet, and also intends to have a hotpluggable USB wifi dongle.
After a few hotplugs, I notice that the network traffic stops, and I think the problem is shown through the /sbin/route command output:
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
default 192.168.1.5 0.0.0.0 UG 0 0 0 wlan0
default 192.168.1.5 0.0.0.0 UG 0 0 0 eth0
Not sure if the above is clear - but it looks like there are duplicates in the route table.
I can clear this by doing the following to the 'eth0' device:
ifconfig eth0 down
ifconfig eth0 up
But, that's not an acceptable solution (or is it?).
Any ideas about how to fix or refresh the route table?