Hi,
I've suspected that something is not quite clear with ubuntu "ifdown*" utilities.
But the fact is that in redhat based OS ifdown is a simple script so it's easy to investigate it:
it calls appropriate script in /etc/sysconfig/network-scripts/.
And the only thing I've found there is:
if [ -n "$VLAN" -a -x /sbin/vconfig ]; then
# 802.1q VLAN
if echo ${DEVICE} | LANG=C egrep -v '(:)' | LANG=C egrep -q '(eth|bond)[0-9][0-9]*\.[0-9][0-9]?[0-9]?[0-9]?' \
|| echo ${DEVICE} | LANG=C egrep -q 'vlan[0-9][0-9]?[0-9]?[0-9]?' ; then
[ -f /proc/net/vlan/${DEVICE} ] && {
/sbin/vconfig rem ${DEVICE}
}
fi
fi
So,
1. If it's possible we can investigate src files of appropriate utilities in ubuntu OS.
2.
Quote: |
strace ifdown eth1.35 > /tmp/ifdown.eth1.35.trace 2>&1
|
ifdown can generate another process so could you possible try to it in the following way:
strace -fF -o out.txt ifdown eth1.35
Thank You!