Network settings on card
I need help with this:
When doing the following script:
while (true); do
ndd /dev/qfe instance 1
Param='ndd /dev/qfe link_status'
if [$Param == 0 ]; then
ifconfig qfe1 down
fi
sleep 10;
done
After I do ifconfig qfe1 down, then the link_status of the ndd command always return 0, even if the link is restored. Is there another way to disable tcp/ip prosessing untill the interface is up? I need to make sure that when the link_status is 0(not ok) then I need to drop ip packets going to the interface address. When the link_status is 1 (link ok) I need to restore IP processing to the interface. Why don't link_status give the actual link_status ?
Hoping anybody can help.