# Reinserting the module, to start from clean slate

modprobe -r dummy
modprobe dummy

ifconfig dummy0 192.168.140.31 netmask 255.255.252.0


echo "Tables before the test"
ip addr ls dev dummy0
echo " "
ip route show table local | fgrep dummy
echo "----------------------"

ip addr add 192.168.142.109/23 dev dummy0
ip addr add 192.168.142.109/22 dev dummy0
ip addr del 192.168.142.109/22 dev dummy0
ip addr del 192.168.142.109/23 dev dummy0

# Now print the results
echo "Tables after the test"
# Addrs
ip addr ls dev dummy0
echo " "

# Local routing table
ip route show table local | fgrep dummy