D02HW でダイアルアップ

SheevaPlug

なぜか持っている(?) D02HW をつないでみた。

D02HW の接続

root@debian:~# tail -f /var/log/messages
	:
	:
Jan 16 22:18:35 debian kernel: usb 1-1: new full speed USB device using orion-ehci and address 2
Jan 16 22:18:35 debian kernel: usb 1-1: configuration #1 chosen from 1 choice
Jan 16 22:18:35 debian kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jan 16 22:18:35 debian kernel: usb 1-1: USB disconnect, address 2
Jan 16 22:18:36 debian kernel: usb 1-1: new full speed USB device using orion-ehci and address 3
Jan 16 22:18:36 debian kernel: usb 1-1: configuration #1 chosen from 1 choice
Jan 16 22:18:36 debian kernel: scsi3 : SCSI emulation for USB Mass Storage devices
Jan 16 22:18:36 debian kernel: USB Serial support registered for GSM modem (1-port)
Jan 16 22:18:36 debian kernel: option 1-1:1.0: GSM modem (1-port) converter detected
Jan 16 22:18:36 debian kernel: usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Jan 16 22:18:36 debian kernel: option 1-1:1.1: GSM modem (1-port) converter detected
Jan 16 22:18:36 debian kernel: usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Jan 16 22:18:36 debian kernel: usbcore: registered new interface driver option
Jan 16 22:18:36 debian kernel: option: v0.7.2:USB Driver for GSM modems
Jan 16 22:18:41 debian kernel: scsi 3:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Jan 16 22:18:41 debian kernel: scsi 3:0:0:0: Attached scsi generic sg0 type 5
Jan 16 22:18:41 debian kernel: sr0: scsi-1 drive
Jan 16 22:18:41 debian kernel: Uniform CD-ROM driver Revision: 3.20

ppconfig のインストール

root@debian:~# apt-get install pppconfig
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libpcap0.8 ppp
Suggested packages:
  iptables
The following NEW packages will be installed:
  libpcap0.8 ppp pppconfig
0 upgraded, 3 newly installed, 0 to remove and 9 not upgraded.
Need to get 503kB of archives.
After this operation, 2298kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ports.ubuntu.com jaunty/main libpcap0.8 1.0.0-1 [108kB]
Get:2 http://ports.ubuntu.com jaunty/main ppp 2.4.5~git20081126t100229-0ubuntu2 [350kB]
Get:3 http://ports.ubuntu.com jaunty/main pppconfig 2.3.18ubuntu2 [44.7kB]
Fetched 503kB in 2s (184kB/s)
Selecting previously deselected package libpcap0.8.
(Reading database ... 12105 files and directories currently installed.)
Unpacking libpcap0.8 (from .../libpcap0.8_1.0.0-1_armel.deb) ...
Selecting previously deselected package ppp.
Unpacking ppp (from .../ppp_2.4.5~git20081126t100229-0ubuntu2_armel.deb) ...
 Removing any system startup links for /etc/init.d/ppp ...
Selecting previously deselected package pppconfig.
Unpacking pppconfig (from .../pppconfig_2.3.18ubuntu2_all.deb) ...
Setting up libpcap0.8 (1.0.0-1) ...

Setting up ppp (2.4.5~git20081126t100229-0ubuntu2) ...

Setting up pppconfig (2.3.18ubuntu2) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
root@debian:~#

/etc/ppp/peers/em の編集

root@debian:~# vi /etc/ppp/peers/em
	:
	:
root@debian:~# cat /etc/ppp/peers/em
user "em@em"
connect "/usr/sbin/chat -v -f /etc/chatscripts/pap -T *99***1#"
/dev/ttyUSB0
115200
noipdefault
usepeerdns
defaultroute
persist
noauth
root@debian:~#

接続

再起動のあと、pon コマンドを実行する
root@debian:~# pon em
root@debian:~#
D02HW の LED が水色に点灯した
root@debian:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:43:01:ca:72
          inet addr:192.168.2.85  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::250:43ff:fe01:ca72/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:410 errors:0 dropped:0 overruns:0 frame:0
          TX packets:237 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:535268 (535.2 KB)  TX bytes:16818 (16.8 KB)
          Interrupt:11

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:19 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1677 (1.6 KB)  TX bytes:1677 (1.6 KB)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:114.51.11.40  P-t-P:10.64.64.64  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:310 (310.0 B)  TX bytes:157 (157.0 B)

root@debian:~#
EMobile にはつながった。
root@debian:~# ping yahoo.co.jp
PING yahoo.co.jp (124.83.139.192) 56(84) bytes of data.
64 bytes from f1.top.vip.ogk.yahoo.co.jp (124.83.139.192): icmp_seq=1 ttl=52 time=169 ms
64 bytes from f1.top.vip.ogk.yahoo.co.jp (124.83.139.192): icmp_seq=2 ttl=52 time=148 ms
64 bytes from f1.top.vip.ogk.yahoo.co.jp (124.83.139.192): icmp_seq=3 ttl=52 time=147 ms
64 bytes from f1.top.vip.ogk.yahoo.co.jp (124.83.139.192): icmp_seq=4 ttl=52 time=236 ms
64 bytes from f1.top.vip.ogk.yahoo.co.jp (124.83.139.192): icmp_seq=5 ttl=52 time=155 ms
^C
--- yahoo.co.jp ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4004ms
rtt min/avg/max/mdev = 147.095/171.152/236.085/33.434 ms
root@debian:~#
GJ!

さて、どうやったらダイアルアップルータになる???


参考にさせていただいたページ EMOBILE D02HWを使う


←(前のページ)
ntpd のインストール
当月のハックの記録
SheevaPlug/玄柴(KURO-SHEEVA)をハックしよう トップ
(次のページ)→
「1月下旬少数入荷決定しました」

Copyright (C) 2003-2010 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市