Comment 29 for bug 16137

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Fri, 01 Jul 2005 01:26:47 +0100
From: Luke Kenneth Casson Leighton <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: iproute: removing modules, ifup down up down kill ip _eventually_ succeeds

Package: iproute
Version: 20041019-3
Severity: normal
Followup-For: Bug #282492

one million and increasing attempts to flush eth0.

this is what i am using (in combination with fwbuilder) to attempt
to get round of the problem. it is not successful always but can be
eventually successful after killing /sbin/ip and re-running the script,
repeat until success.

#!/bin/sh

iptables -F
iptables -X
ifdown eth0
ifdown eth1

rmmod ip6table_filter
rmmod ip6_tables
rmmod ipt_LOG
rmmod ipt_state
rmmod ip_nat_tftp
rmmod ip_nat_snmp_basic
rmmod ip_nat_irc
rmmod ip_nat_ftp
rmmod ip_nat_amanda
rmmod iptable_nat
rmmod ip_conntrack_tftp
rmmod ip_conntrack_proto_sctp
rmmod ip_conntrack_irc
rmmod ip_conntrack_ftp
rmmod ip_conntrack_amanda
rmmod ip_conntrack
rmmod iptable_filter
rmmod ipt_REDIRECT

sleep 1
rmmod tulip
rmmod 3c59x
modprobe tulip
modprobe 3c59x
sleep 1
ifup eth0
ifup eth1
ip -4 neigh flush dev eth0
ip -4 neigh flush dev eth1
sleep 1
ifdown eth0
ifdown eth1
sleep 1
ifup eth0
ifup eth1

sh /etc/fwbuilder.script.fw

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux highfield 2.6.11-1-686 #1 Fri May 20 07:34:54 UTC 2005 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages iproute depends on:
ii libatm1 2.4.1-16 shared library for ATM (Asynchrono
ii libc6 2.3.2.ds1-21 GNU C Library: Shared libraries an

-- no debconf information