Re: ifup/ifdown are not idempotent
Christian Jaeger wrote: - when removing an ethernet card from a pc laptop, the interface goes away (but does not trigger ifdown). When reinserting it, the interface does not come back. (One has to manually issue ifdown eth0; ifup eth0). If you're using ifupdown to manage pcmcia interfaces, you need to make sure that the code in the if statement at the end of /etc/pcmcia/network.opts is running. This will run ifdown when the card is ejected. -- see shy jo msg06577/pgp0.pgp Description: PGP signature
Re: ifup/ifdown are not idempotent
On Fri, Oct 11, 2002 at 11:58:13AM +0200, martin f krafft wrote: check this series of commands: Are you sure there's not an old /etc/init.d/network or other startup script that brings the interface up initially using ifconfig? In my experience, when ifup brings up an interface, ifdown brings it down. Does your /etc/network/interfaces list anything else to do when the interface is brought up/down that might be causing the messages? On one of our boxes, I'd forgotten that an interface entry ran a firewall script before coming up; moving the firewall script made it so ifup didn't bring the interface up at all. That doesn't appear to be your problem, but a long-forgotten entry in one of those scripts can cause some puzzling behavior. --Pete -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: ifup/ifdown are not idempotent
Christian Jaeger [EMAIL PROTECTED] writes: BTW, two other things I'm wondering about ifup/down: - when an interface is really down (as seen with ifconfig), why does ifup refuse it's operation saying device already configured? It could determine that Sometimes ifdown will bring an interface down, but will not make the necessary changes in /etc/network/ifstate. ifup will then return device already configured as you have noted. (I have not experimented enough to detail the circumstances in which this occurs.) In thus case you can issue ifdown --force iface, the rerun ifup. From man ifup: --force Force de/configuration of interface. HTH, Bob -- _ |_) _ |_Robert D. Hilliard[EMAIL PROTECTED] |_) (_) |_) 1294 S.W. Seagull Way [EMAIL PROTECTED] Palm City, FL 34990 USA GPG Key ID: 390D6559 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]