Linux Step By Steps

PCMCIA Network Interface - Step by Step

By: Marianne Taylor

Tested on Caldera eDesktop 2.4 with a standard 2.2.14 kernel; on an Acer Extensa 390 with D-link DFE 650TX Ethernet interface card.

Date Submitted: April 8, 2001
Document Version: #1.0

The definitive resource site for pcmcia under linux is the Linux PCMCIA Information Page . The definitive reference material for set-up and installation is PCMCIA How to .


Step by Step

All of the following should be done as root!

  1. I would recommend downloading the latest pcmcia file from Sourceforge .
    I used pcmcia-cs-3.1.25.tar.gz.
  2. Unload it with tar zxvf pcmcia-cs-3.1.25.tar.gz .
  3. Change to the directory where it is with: cd pcmcia-cs-3.1.25 .
  4. You now want to run the ./Configure file - typing ./Configure .
  5. You will be asked several questions - here is what I said. If in doubt I would accept the defaults.
    Linux source directory [/usr/src/linux]: Either just push enter to accept or type in the correct directory.
    Build 'trusting' versions of card utilities (y/n) [n]: Y
    Include 32-bit (CardBus) card support (y/n) [y]: Y
    Include PnP BIOS resource checking (y/n) [y]: Y
    Module install directory [/lib/modules/2.2.14]: Either push enter to accept or enter the correct directory.
  6. Next type make all .
  7. Next type make install .
  8. Next you will need to put your settings in /etc/pcmcia/network.opts
    Please see an example below:
    # 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=""
    # Host's IP address, netmask, network address, broadcast address
    IPADDR="192.168.1.4"
    NETMASK="255.255.255.0"
    NETWORK="192.168.1.0"
    BROADCAST="192.168.1.255"
    # Gateway address for static routing
    GATEWAY="192.168.1.1"
    # Things to add to /etc/resolv.conf for this interface
    DOMAIN="taylor"
    SEARCH="home.com"
    DNS_1="24.67.224.12"
    DNS_2="24.67.224.13"
    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=""
    # 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
  9. Next either restart the notebook or issue the following command to start up pcmcia. /etc/rc.d/init.d/pcmcia start