Skip to contentSkip to conversation

reg IFF_RUNNING behaviour

DISCUSSION [email protected] phani 1 participant 1 message Aug 3, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

when the interface operational status goes down (IFF_RUNNING) why linux ip stack is not flushing routing/neighbour (arp) entries related to the interface . I have the following doubt .

If there are two routes to the destiantion, one route is more
specific and points to the eth0 and another one points to the another
interface eth1. If eth0 goes down operationally , linux kernel has
not removed the specific route which points eth0. When the traffic came for this destination, specific route was getting exercised and traffic was getting dropped . Why is this behaviour supported in linux.

This is exampe.

eth0 Link encap:Ethernet HWaddr 00:05:1E:76:42:A1
inet addr:4.4.4.2 Bcast:4.4.4.255 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:9018 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:5 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0

eth1 Link encap:Ethernet HWaddr 00:05:1E:76:42:80
inet addr:10.32.152.16 Bcast:10.32.159.255 Mask:255.255.240.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:115582 errors:1 dropped:0 overruns:0 frame:0 TX packets:1472 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000

Routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.2.2.52       0.0.0.0         255.255.255.255 UH    0      0        0  eth0
4.4.4.0         0.0.0.0         255.255.255.0   U     0      0        0  eth0
10.32.144.0     0.0.0.0         255.255.240.0   U     0      0        0 eth1
0.0.0.0         10.32.144.1     0.0.0.0         UG    0      0        0 eth1

Thanks
Pani.