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

Re: your mail



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

It seems I'd picked up a version of pcmcia-cs from sid in one of my
experiments, but even having downgraded this to 3.1.33-6 it does _not_ seem to invoke ifup/ifdown (all that seems different is the use of hotplug in sid). I _did_ reset DHCP="y" when I recreated the
network.opts file.

Of cource, you do realise that when using /e/n/interfaces with pcmcia, you dont want to change the default network.opts at all, right?

Well, no I didn't, but a private email led me to understand the error of my ways. It still seems odd that I need to leave network.opts saying DHCP="n" if I want to get ifup to use dhcp. But I do understand that that's correct. Of course, it still didn't work...

I checked /etc/network/interfaces and I don't have "auto" specified for
eth0.

I've reinstalled pcmcia-cs just to make sure that I _do_ have a default
network.opts (attached).  Now the only thing that comes to mind is
hotplug, which was installed for USB but is now getting invoked for
PCMCIA cards, too.

But whatever's happening, I'm seeing 'ifdown' execute (correctly - it
runs the firewall's stop script) but 'ifup' doesn't:

cardmgr[308]: + /sbin/ifup: interface eth0 already configured

At least I can see that it's _trying_ to run ifup.

My configs are attached, along with the relevant part of syslog (minus too verbose output from dhclient showing that it did get an IP).
### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE IT.
auto lo

iface lo inet loopback

iface eth0 inet dhcp
        hostname casio


### END OF DEBCONF AREA.  PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED.
	up /etc/init.d/firestarter start
	post-down /etc/init.d/firestarter stop
# Network adapter configuration
#
# The address format is "scheme,socket,instance,hwaddr".
#
# Note: the "network address" here is NOT the same as the IP address.
# See the Networking HOWTO.  In short, the network address is the IP
# address masked by the netmask.
#
case "$ADDRESS" in
*,*,*,*)
    INFO="Sample private network setup"
    # Transceiver selection, for some cards -- see 'man ifport'
    IF_PORT=""
    # Use BOOTP (via /sbin/bootpc, or /sbin/pump)? [y/n]
    BOOTP="n"
    # Use DHCP (via /sbin/dhcpcd, /sbin/dhclient, or /sbin/pump)? [y/n]
    DHCP="n"
    # If you need to explicitly specify a hostname for DHCP requests
    DHCP_HOSTNAME=""
    # Use PPP over Ethernet (via the pppoe package)? [y/n]
    PPPOE="n"
    # Use WHEREAMI (via the whereami package)? [y/n]
    WHEREAMI="n"
    # Host's IP address, netmask, network address, broadcast address
    IPADDR=""
    NETMASK="255.255.255.0"
    NETWORK="10.0.1.0"
    BROADCAST="10.0.1.255"
    # Gateway address for static routing
    GATEWAY="10.0.1.1"
    # Things to add to /etc/resolv.conf for this interface
    DOMAIN=""
    SEARCH=""
    # The nameserver IP addresses specified here complement the
    # nameservers already defined in /etc/resolv.conf.  These nameservers
    # will be added to /etc/resolv.conf automatically when the PCMCIA
    # network connection is established and removed from this file when
    # the connection is broken.
    DNS_1=""
    DNS_2=""
    DNS_3=""
    # NFS mounts, should be listed in /etc/fstab
    MOUNTS=""
    # If you need to override the interface's MTU...
    MTU=""
    # For IPX interfaces, the frame type and network number
    IPX_FRAME=""
    IPX_NETNUM=""
    # Run ipmasq? [y/n]  (see the Debian ipmasq package)
    IPMASQ="n"
    # Extra stuff to do after setting up the interface
    start_fn () { return; }
    # Extra stuff to do before shutting down the interface
    stop_fn () { return; }
    # Card eject policy options
    NO_CHECK=n
    NO_FUSER=n
    ;;
esac

# This tries to use Debian's network setup in /etc/network/interfaces
# if no settings are given higher up in this file.  You can delete it
# if that isn't desired.

#is_true $PUMP || is_true $BOOTP || is_true $DHCP || is_true $DHCLIENT || \
#if [ ! "$IPADDR" -a -f /etc/network/interfaces ] ; then
    INFO="Debian network setup"
    start_fn () {
	log /sbin/ifup $1
    }
    stop_fn () {
	log /sbin/ifdown $1
    }
#fi
Mar 20 09:06:42 casio.othello.dyn.ca cardmgr[308]: executing: './network stop eth0'
Mar 20 09:06:44 casio.othello.dyn.ca cardmgr[308]: + Stopping firestarter firewall: firestarter.
Mar 20 09:06:44 casio.othello.dyn.ca cardmgr[308]: executing: 'modprobe -r pcnet_cs'
Mar 20 09:06:44 casio.othello.dyn.ca cardmgr[308]: executing: 'modprobe -r 8390'
Mar 20 09:06:44 casio.othello.dyn.ca /etc/hotplug/net.agent: invoke ifdown eth0
Mar 20 09:07:00 casio.othello.dyn.ca cardmgr[308]: socket 0: NetGear FA411 Fast Ethernet
Mar 20 09:07:00 casio.othello.dyn.ca cardmgr[308]: executing: 'modprobe 8390'
Mar 20 09:07:01 casio.othello.dyn.ca cardmgr[308]: executing: 'modprobe pcnet_cs'
Mar 20 09:07:01 casio.othello.dyn.ca cardmgr[308]: executing: './network start eth0'
Mar 20 09:07:01 casio.othello.dyn.ca /etc/hotplug/net.agent: invoke ifup eth0
Mar 20 09:07:10 casio.othello.dyn.ca cardmgr[308]: + /sbin/ifup: interface eth0 already configured

Reply to: