[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: your mail



From: "Mike Beattie" <mjb@debian.org>

> On Tue, Mar 18, 2003 at 10:37:00AM -0400, Derek Broughton wrote:
> > > RTFM://interfaces(5)  -  around line 70 or so.
> >
> > He appears to be using pcmcia nics, in which case changing anything in
> > ../interfaces won't do him a bit of good.
>
> What a load of shit. I use /e/n/interfaces for all of my PCMCIA cards, have
> never had to modify /etc/pcmcia/*.opts .
>
> Go read some docs yourself, before commenting. (specifically, the last 16 or
> so lines of /etc/pcmcia/network.opts)

Geez.  I'm taking a heck of a lot of abuse for a fairly reasonable line of
response.  I'd be taking less if your mail client hadn't, apparently
auto-inserted the subject "your mail".  Then I got a nasty response off-list for
using that subject.  Too bad, Angela, but I don't like changing subjects
mid-thread.

However, this is important enough to me that I'm willing to still be friendly
about it.

As near as I can tell, when you put stuff in /etc/network/interfaces, it gets
executed at init time, before pcmcia gets started. If your card is already
inserted, then when pcmcia _does_ start, ifup doesn't get executed.  Perhaps I'm
misconfigured, but this is what's happening to me.  I try to start firewall
rules in /etc/network/interfaces and they don't start at power-up, but they _do_
start if I remove and reinsert the card.  Now, looking at the file I see two
potential problems:

1) it does "pre-up /etc/pcmcia/network start" - isn't this a bit circular, when
/etc/pcmcia/network.opts does "/sbin/ifup"?

2) the firewall script runs in a "pre-up" as well.  It seemed like a good idea
at the time, because I was thinking I wanted the firewall up before the link was
really active - but now that I think of it, I'm not sure dhclient will have run
before the firewall script starts - so I'll have to rtfm and check that.  If I'm
right on this, it would explain why resetting the card will work, because dhcp
always gets the same IP here, anyway.

derek



Reply to: