NIC(pcmcia)2枚差しの設定
/etc/pcmcia/config の編集

1枚目は、これまた家に転がっていたチョー古いpcmcia(MELCO LPC-TS)。 とにかく差してみることに。なんと!うんとも、すんとも言ってくれない(-_-;) さあここからが大変(^^;) /etc/pcmcia/config を見るとそれらしいのはあるのですが、 「ピッ」、「ピッ」と反応してくれないのだからしょうがない。 ここから何日も時間を費やす結果に。。。(T-T) そして、やっとたどり着いたのが下の4行を追加したことです。 最後まで困らせてくれたのは[cis "cis/NE2K.dat"]でした。

card "Accton UE2212 Ethernet"
version "PCMCIA", "UE2212"
cis "cis/NE2K.dat"
bind "pcnet_cs"

2枚目は、新調する訳なので /etc/pcmcia/config をみてから MELCO LPC2-Tを\2,180で 買って来ました。こっちはあっと言う間に「ピッ」、「ピッ」です。 実はびびって100/10BASE-Tを買えなかったんです。何故って?流石に1枚目でこりてしまいました(^_^;)

■ /etc/pcmcia/network.optsの編集

eth0にグローバルIPを割り振り、eth1/eth1:0 にLAN内のIPを割り振ることに。 元のファイルは.ORGとでも付けて残して置くと良いでしょう。

ifconfig eth1 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255 Gateway 192.168.1.1
ifconfig eth1:0 192.168.1.254 netmask 255.255.255.0 broadcast 192.168.1.255 Gateway 192.168.1.1

と設定する。と、言う人もいますが、そうするとeth1:0を決定するのにかなり時間を要しました。 そこで、こうしました。

ifconfig eth1 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255
ifconfig eth1:0 192.168.1.254 netmask 255.255.255.0 broadcast 192.168.1.255

ここでは1クライアントである必要がある為、内側であるeth1,eth1:0の設定をあえて今の段階では変えておきます。

# vi /etc/pcmcia/network.opts

# NOTE: This file was generated automatically by the pcnetconfig script.
# 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
*,0,*,*)
# ------------------definitions for network card in socket 0
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="xx1.xx2.xx3.xx4"
NETMASK="255.255.255.0"
NETWORK="xx1.xx2.xx3.0"
BROADCAST="xx1.xx2.xx3.255"
# Gateway address for static routing
GATEWAY="xx1.xx2.xx3.1"
# Things to add to /etc/resolv.conf for this interface
DOMAIN="ns.test.com"
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="xx1.xx2.xx3.xx4"
DNS_2="xx5.xx6.xx7.xx8"
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"
;;
*,1,*,*)
# ----------------definitions for network card in socket 1
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.18"
NETMASK="255.255.255.0"
NETWORK="192.168.1.0"
BROADCAST="192.168.1.255"
# Gateway address for static routing
# Things to add to /etc/resolv.conf for this interface
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="192.168.1.254"
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 () {
ifconfig eth1 192.168.1.18 netmask 255.255.255.0 broadcast 192.168.1.255
ifconfig eth1:0 192.168.1.222 netmask 255.255.255.0 broadcast 192.168.1.255
return;
}
# Extra stuff to do before shutting down the interface
stop_fn () {
ifconfig eth1 down
ifconfig eth1:0 down
return;
}
# Card eject policy options
NO_CHECK="n"
NO_FUSER="n"
;;

esac

ここまで設定できたら、eth1すなわち内側 NICのみをLANに接続しておきます。