CentOS 5.2 と Lenovo ThinkPad X61 でテストしました。
必要なパッケージ
wvdial, libwvstreams が必要です。libwvstreams は wvdial の依存関係でインストールされます。
$ sudo yum install wvdial
設定ファイル
1. /etc/wvdial.conf
[Dialer softbank]Modem = /dev/ttyS1Baud = 115200SetVolume = 0Init1 = ATZInit2 = ATQ0 V1 E1 S0=0 &C1 &D2ISDN = 0Modem Type = Analog ModemUsername = ai@softbankPassword = softbankPhone = *99#Stupid Mode = 1Inherits = Modem0
2. /etc/ppp/peers/softbank
connect "/usr/bin/wvdial --remotename softbank --chat 'softbank'"
3. /etc/ppp/chap-secrets
# Secrets for authentication using CHAP# client server secret IP addresses"ai@softbank" "softbank" "softbank""ai@softbank" * "softbank"ai\@softbank * softbank
4. /etc/ppp/pap-secrets
# Secrets for authentication using PAP# client server secret IP addresses"ai@softbank" "softbank" "softbank""ai@softbank" * "softbank"ai\@softbank * softbank
5. /etc/sysconfig/network-scripts/ifcfg-ppp0
# Please read /usr/share/doc/initscripts-*/sysconfig.txt# for the documentation of these parameters.TYPE=ModemDEVICE=ppp0BOOTPROTO=dialupONBOOT=noUSERCTL=yesPEERDNS=yesAC=offBSDCOMP=offVJCCOMP=offCCP=offPC=offVJ=offLINESPEED=115200MODEMPORT=/dev/ttyS1PROVIDER=softbankDEFROUTE=yesPERSIST=noPAPNAME='ai@softbank'WVDIALSECT=softbankMODEMNAME=Modem0DEMAND=no
使用方法
1. 接続
$ /sbin/ifup ppp0
2. 切断
$ /sbin/ifdown ppp0
3. PCMCIA カードの状態確認
$ /sbin/pccardctl statusSocket 0: 3.3V 16-bit PC Card Subdevice 0 (function 0) bound to driver "serial_cs" $ /sbin/pccardctl infoPRODID_1="SII"PRODID_2="C01SI"PRODID_3=""PRODID_4=""MANFID=c01e,0000FUNCID=2 $ /sbin/pccardctl identSocket 0: product info: "SII", "C01SI", "", "" manfid: 0xc01e, 0x0000 function: 2 (serial)
4. PCMCIA カードのリセット(なんか知らんが調子悪い時)
$ /sbin/pccardctl reset
5. PCMCIA カードの取り外し
$ /sbin/pccardctl eject
6. PCMCIA カードを挿した時のログ(dmesg)
pcmcia: registering new device pcmcia0.0pcmcia: request for exclusive IRQ could not be fulfilled.pcmcia: the driver needs updating to supported shared IRQ lines.0.0: ttyS1 at I/O 0x2f8 (irq = 177) is a XScale
7. PCMCIA カードを抜いた時のログ(dmesg)
pccard: card ejected from slot 0