Debian GNU/kFreeBSDでL-02Cを使ってpppする

最終更新日時:2014-04-22 19:53

初版公開日時:2014-04-22 19:53

タグ: debian debian_kfreebsd


環境

  • OS : Debian GNU/kFreeBSD unstable amd64

  • SONY VAIO TZ VGN-93NS

  • CPU : Core 2 Duo U7700

  • memory : 2GB

  • disk : SSD 160GB

  • USBモデム : NTT docomo L-02C (ファームウェア:V10d)


事前準備

  • USBモデム「L-02C」を用意し、SIMカードを入れておきます。

  • 今回は私が契約しているIIJmioを使いました。


必要パッケージのインストール

# apt-get update
# apt-get install freebsd-ppp usb-modeswitch

L-02CをPCに差します

以下のログが出てハードウェアを認識します。

# dmesg
ugen4.7:  at usbus4 (disconnected)
u3g0: at uhub4, port 5, addr 7 (disconnected)
ugen4.7:  at usbus4
umass0:  on usbu
s4
umass0:  SCSI over Bulk-Only; quirks = 0x0100
umass0:3:0:-1: Attached to scbus3
cd0 at umass-sim0 bus 0 scbus3 target 0 lun 0
cd0:  Removable CD-ROM SCSI-0 device
cd0: 40.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
cd0: quirks=0x10<10_BYTE_ONLY>

L-02Cをモデムモードに変更します

ここはLinuxでよくあるパターンと同じです

usb_modeswitchでL-02Cをモデムモードに変更するための設定ファイルを作成します。

# vi /etc/usb_modeswitch.d/L02C.conf
########################################################
# LG L-02C LTE modem

DefaultVendor= 0x1004
DefaultProduct=0x61dd

TargetVendor= 0x1004
TargetProduct=0x618f

MessageContent=5553424312345678000000000000061b000000020000000000000000000000
NeedResponse=1
CheckSuccess=20

以下のメッセージが出て、モデムモードへの変換ができます。

# usb_modeswitch -c /etc/usb_modeswitch.d/L02C.conf
Look for target devices ...
 No devices in target mode or class found
Look for default devices ...
   product ID matched
 Found devices in default mode (1)
Access device 007 on bus 004
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: NTT DOCOMO, INC.
     Product: docomo L02C
  Serial No.: 353168043489090
-------------------------
Looking for active driver ...
 OK, driver detached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Read the response to message 1 (CSW) ...
 Response successfully read (13 bytes).
Reset response endpoint 0x81
Reset message endpoint 0x01

Check for mode switch (max. 20 times, once per second) ...
 Search for target devices ...
 Search for target devices ...
 Search for target devices ...
   product ID matched

Found target device, open it
 Found correct target device

Mode switch succeeded. Bye!

すると以下のデバイスができます。

# ls /dev/cua*
/dev/cuaU0.0       /dev/cuaU0.1       /dev/cuaU0.2       /dev/cuaU0.3
/dev/cuaU0.0.init  /dev/cuaU0.1.init  /dev/cuaU0.2.init  /dev/cuaU0.3.init
/dev/cuaU0.0.lock  /dev/cuaU0.1.lock  /dev/cuaU0.2.lock  /dev/cuaU0.3.lock

dmesgでログを確認すると、u3g.koというドライバを利用するデバイスであることがわかります。

# dmesg
umass0: at uhub4, port 5, addr 7 (disconnected)
cd0 at umass-sim0 bus 0 scbus3 target 0 lun 0
cd0:  detached
(cd0:umass-sim0:0:0:0): Periph destroyed
ugen4.7:  at usbus4 (disconnected)
ugen4.7:  at usbus4
u3g0:  on usbu
s4
u3g0: Found 4 ports.

pppの設定ファイルを作成します

freebsdのpppコマンド形式の設定ファイルを作成します

# vi /etc/ppp/ppp.conf

default:
 set log Phase Chat LCP IPCP CCP tun command
 ident user-ppp VERSION
 set device /dev/cuaU0.2
 set speed 38400
 set dial "ABORT BUSY TIMEOUT 2 \
        \"\" \
        AT OK-AT-OK \
        AT+CFUN=1 OK-AT-OK \
        AT+CMEE=2 OK-AT-OK \
        AT+CSQ OK \
        AT+CGDCONT=1,\\\"IP\\\",\\\"iijmio.jp\\\" OK \
        AT+CGACT? OK-AT-OK \
        AT+CGATT? OK \
        AT+CGCLASS? OK \
        AT+COPS? OK \
        ATD*99***1# CONNECT"
 set timeout 180
 enable dns

iijmio:
 set phone "*99***1#"
 set authname "mio@iij"
 set authkey "iij"
 set timeout 300
 disable ipv6
 set ifaddr 10.1.0.1/0 10.1.0.2/0 255.255.255.255 0.0.0.0
 add default HISADDR

pppを実行してインターネットに接続します。

# ppp -foreground iijmio

pppの実行ログは以下です

# tail -f /var/log/syslog
Apr 22 22:20:12 localhost ppp[3479]: Phase: Using interface: tun0
Apr 22 22:20:12 localhost devd: Pushing table
Apr 22 22:20:12 localhost devd: Processing notify event
Apr 22 22:20:12 localhost ppp[3479]: Phase: deflink: Created in closed state
Apr 22 22:20:12 localhost devd: Popping table
Apr 22 22:20:12 localhost devd: Processing event '!system=IFNET subsystem=tun0 type=ATTACH'
Apr 22 22:20:12 localhost devd: Pushing table
Apr 22 22:20:12 localhost devd: Processing notify event
Apr 22 22:20:12 localhost devd: Executing 'ifup --allow=hotplug tun0'
Apr 22 22:20:12 localhost ppp[3479]: Warning: Add! route failed: ff02::/: errno: Network is unreachable
Apr 22 22:20:12 localhost ppp[3479]: tun0: Command: default: ident user-ppp VERSION
Apr 22 22:20:12 localhost ppp[3479]: tun0: Command: default: set device /dev/cuaU0.2
Apr 22 22:20:12 localhost ppp[3479]: tun0: Command: default: set speed 38400
Apr 22 22:20:12 localhost ppp[3479]: tun0: Command: default: set dial ABORT BUSY TIMEOUT 2         ""         AT OK-AT-OK         AT+CFUN=1 OK-AT-OK         AT+CMEE=2
 OK-AT-OK         AT+CSQ OK         AT+CGDCONT=1,\"IP\",\"iijmio.jp\" OK         AT+CGACT? OK-AT-OK         AT+CGATT? OK         AT+CGCLASS? OK         AT+COPS? OK
      ATD*99***1# CONNECT
Apr 22 22:20:12 localhost ppp[3479]: tun0: Command: default: set timeout 180
Apr 22 22:20:12 localhost ppp[3479]: tun0: Command: default: enable dns
Apr 22 22:20:12 localhost ppp[3479]: tun0: Command: iijmio: set phone *99***1#
Apr 22 22:20:12 localhost ppp[3479]: tun0: Command: iijmio: set authname mio@iij
Apr 22 22:20:12 localhost ppp[3479]: tun0: Command: iijmio: set authkey ********
Apr 22 22:20:12 localhost ppp[3479]: tun0: Command: iijmio: set timeout 300
Apr 22 22:20:12 localhost ppp[3479]: tun0: Command: iijmio: disable ipv6
Apr 22 22:20:12 localhost ppp[3479]: tun0: Command: iijmio: set ifaddr 10.1.0.1/0 10.1.0.2/0 255.255.255.255 0.0.0.0
Apr 22 22:20:12 localhost ppp[3479]: tun0: Command: iijmio: add default HISADDR
Apr 22 22:20:12 localhost ppp[3481]: tun0: Phase: PPP Started (ddial mode).
Apr 22 22:20:12 localhost ppp[3481]: tun0: Phase: bundle: Establish
Apr 22 22:20:12 localhost ppp[3481]: tun0: Phase: deflink: closed -> opening
Apr 22 22:20:12 localhost ppp[3481]: tun0: Phase: deflink: Connected!
Apr 22 22:20:12 localhost ppp[3481]: tun0: Phase: deflink: opening -> dial
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Phone: *99***1#
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Send: AT#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Expect(2): OK
Apr 22 22:20:12 localhost devd: Popping table
Apr 22 22:20:12 localhost devd: Processing event '!system=IFNET subsystem=tun0 type=LINK_UP'
Apr 22 22:20:12 localhost devd: Pushing table
Apr 22 22:20:12 localhost devd: Processing notify event
Apr 22 22:20:12 localhost devd: Popping table
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: AT#015#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: OK#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Send: AT+CFUN=1#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Expect(2): OK
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: AT+CFUN=1#015#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: OK#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Send: AT+CMEE=2#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Expect(2): OK
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: AT+CMEE=2#015#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: OK#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Send: AT+CSQ#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Expect(2): OK
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: AT+CSQ#015#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: +CSQ: 12,99#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: #015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: OK#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Send: AT+CGDCONT=1,"IP","iijmio.jp"#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Expect(2): OK
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: AT+CGDCONT=1,"IP","iijmio.jp"#015#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: OK#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Send: AT+CGACT?#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Expect(2): OK
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: AT+CGACT?#015#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: +CGACT: 1,0#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: +CGACT: 11,0#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: #015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: OK#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Send: AT+CGATT?#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Expect(2): OK
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: AT+CGATT?#015#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: +CGATT: 0#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: #015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: OK#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Send: AT+CGCLASS?#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Expect(2): OK
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: AT+CGCLASS?#015#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: +CGCLASS: "A"#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: #015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: OK#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Send: AT+COPS?#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Expect(2): OK
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: AT+COPS?#015#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: +COPS: 0#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: #015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: OK#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Send: ATD*99***1##015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Expect(2): CONNECT
Apr 22 22:20:12 localhost kernel: tun0: link state changed to UP
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: ATD*99***1##015#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Chat: Received: CONNECT#015
Apr 22 22:20:12 localhost ppp[3481]: tun0: Phase: deflink: dial -> carrier
Apr 22 22:20:13 localhost ppp[3481]: tun0: Phase: deflink: /dev/cuaU0.2: CD detected
Apr 22 22:20:13 localhost ppp[3481]: tun0: Phase: deflink: carrier -> login
Apr 22 22:20:13 localhost ppp[3481]: tun0: Phase: deflink: login -> lcp
Apr 22 22:20:13 localhost ppp[3481]: tun0: LCP: FSM: Using "deflink" as a transport
Apr 22 22:20:13 localhost ppp[3481]: tun0: LCP: deflink: State change Initial --> Closed
Apr 22 22:20:13 localhost ppp[3481]: tun0: LCP: deflink: State change Closed --> Stopped
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP: deflink: LayerStart
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  ACFCOMP[2]
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  PROTOCOMP[2]
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  ACCMAP[6] 0x00000000
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  MRU[4] 1500
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  MAGICNUM[6] 0xb0f09387
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP: deflink: State change Stopped --> Req-Sent
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP: deflink: RecvConfigReq(0) state = Req-Sent
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  ACCMAP[6] 0x00000000
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x05)
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  MAGICNUM[6] 0x02e0b5a1
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  PROTOCOMP[2]
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  ACFCOMP[2]
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP: deflink: SendConfigAck(0) state = Req-Sent
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  ACCMAP[6] 0x00000000
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x05)
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  MAGICNUM[6] 0x02e0b5a1
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  PROTOCOMP[2]
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  ACFCOMP[2]
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP: deflink: State change Req-Sent --> Ack-Sent
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP: deflink: RecvConfigAck(1) state = Ack-Sent
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  ACFCOMP[2]
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  PROTOCOMP[2]
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  ACCMAP[6] 0x00000000
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  MRU[4] 1500
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  MAGICNUM[6] 0xb0f09387
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP: deflink: State change Ack-Sent --> Opened
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP: deflink: LayerUp
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP: deflink: SendIdent(0) state = Opened
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  MAGICNUM b0f09387
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP:  TEXT user-ppp 3.4.2
Apr 22 22:20:14 localhost ppp[3481]: tun0: Phase: bundle: Authenticate
Apr 22 22:20:14 localhost ppp[3481]: tun0: Phase: deflink: his = CHAP 0x05, mine = none
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP: deflink: RecvDiscardReq(1) state = Opened
Apr 22 22:20:14 localhost ppp[3481]: tun0: Phase: Chap Input: CHALLENGE (16 bytes from UMTS_CHAP_SRVR)
Apr 22 22:20:14 localhost ppp[3481]: tun0: Phase: Chap Output: RESPONSE (mio@iij)
Apr 22 22:20:14 localhost ppp[3481]: tun0: Phase: Chap Input: SUCCESS
Apr 22 22:20:14 localhost ppp[3481]: tun0: IPCP: Using trigger address 0.0.0.0
Apr 22 22:20:14 localhost ppp[3481]: tun0: CCP: FSM: Using "deflink" as a transport
Apr 22 22:20:14 localhost ppp[3481]: tun0: CCP: deflink: State change Initial --> Closed
Apr 22 22:20:14 localhost ppp[3481]: tun0: CCP: deflink: LayerStart.
Apr 22 22:20:14 localhost ppp[3481]: tun0: CCP: deflink: SendConfigReq(1) state = Closed
Apr 22 22:20:14 localhost ppp[3481]: tun0: CCP:  DEFLATE[4] win 15
Apr 22 22:20:14 localhost ppp[3481]: tun0: CCP:  PRED1[2]
Apr 22 22:20:14 localhost ppp[3481]: tun0: CCP: deflink: State change Closed --> Req-Sent
Apr 22 22:20:14 localhost ppp[3481]: tun0: Phase: deflink: lcp -> open
Apr 22 22:20:14 localhost ppp[3481]: tun0: Phase: bundle: Network
Apr 22 22:20:14 localhost ppp[3481]: tun0: IPCP: FSM: Using "deflink" as a transport
Apr 22 22:20:14 localhost ppp[3481]: tun0: IPCP: deflink: State change Initial --> Closed
Apr 22 22:20:14 localhost ppp[3481]: tun0: IPCP: deflink: LayerStart.
Apr 22 22:20:14 localhost ppp[3481]: tun0: IPCP: deflink: SendConfigReq(1) state = Closed
Apr 22 22:20:14 localhost ppp[3481]: tun0: IPCP:  IPADDR[6] 0.0.0.0
Apr 22 22:20:14 localhost ppp[3481]: tun0: IPCP:  COMPPROTO[6] 16 VJ slots with slot compression
Apr 22 22:20:14 localhost ppp[3481]: tun0: IPCP:  PRIDNS[6] 202.232.2.3
Apr 22 22:20:14 localhost ppp[3481]: tun0: IPCP:  SECDNS[6] 255.255.255.255
Apr 22 22:20:14 localhost ppp[3481]: tun0: IPCP: deflink: State change Closed --> Req-Sent
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP: deflink: RecvProtocolRej(2) state = Opened
Apr 22 22:20:14 localhost ppp[3481]: tun0: LCP: deflink: -- Protocol 0x80fd (Compression Control Protocol) was rejected!
Apr 22 22:20:14 localhost ppp[3481]: tun0: CCP: deflink: State change Req-Sent --> Stopped
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP: deflink: RecvConfigReq(0) state = Req-Sent
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP:   [EMPTY]
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP: deflink: SendConfigNak(0) state = Req-Sent
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP:  IPADDR[6] 10.1.0.2
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP: deflink: RecvConfigRej(1) state = Req-Sent
Apr 22 22:20:15 localhost ppp[3481]: tun0: LCP: deflink: SendIdent(1) state = Opened
Apr 22 22:20:15 localhost ppp[3481]: tun0: LCP:  MAGICNUM b0f09387
Apr 22 22:20:15 localhost ppp[3481]: tun0: LCP:  TEXT user-ppp 3.4.2
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP:  COMPPROTO[6] 16 VJ slots with slot compression
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP: deflink: SendConfigReq(2) state = Req-Sent
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP:  IPADDR[6] 0.0.0.0
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP:  PRIDNS[6] 202.232.2.3
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP:  SECDNS[6] 255.255.255.255
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP: deflink: RecvConfigReq(1) state = Req-Sent
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP:   [EMPTY]
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP: deflink: SendConfigAck(1) state = Req-Sent
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP:   [EMPTY]
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP: deflink: State change Req-Sent --> Ack-Sent
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP: deflink: RecvConfigNak(2) state = Ack-Sent
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP:  IPADDR[6] 10.196.153.95
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP:  IPADDR[6] changing address: 0.0.0.0  --> 10.196.153.95
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP:  PRIDNS[6] 202.232.2.2
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP:  SECDNS[6] 202.232.2.3
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP: Primary nameserver set to 202.232.2.2
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP: Secondary nameserver set to 202.232.2.3
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP: deflink: SendConfigReq(3) state = Ack-Sent
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP:  IPADDR[6] 10.196.153.95
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP:  PRIDNS[6] 202.232.2.2
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP:  SECDNS[6] 202.232.2.3
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP: deflink: RecvConfigAck(3) state = Ack-Sent
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP:  IPADDR[6] 10.196.153.95
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP:  PRIDNS[6] 202.232.2.2
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP:  SECDNS[6] 202.232.2.3
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP: deflink: State change Ack-Sent --> Opened
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP: deflink: LayerUp.
Apr 22 22:20:15 localhost ppp[3481]: tun0: IPCP: myaddr 10.196.153.95 hisaddr = 10.1.0.2
Apr 22 22:20:15 localhost ppp[3481]: tun0: Warning: 0.0.0.0: Change route failed: errno: No such process

ネットワーク接続を確認します

# ifconfig tun0
tun0: flags=8051 metric 0 mtu 1500
        options=80000
        inet 10.196.153.95 --> 10.1.0.2 netmask 0xffffffff
        nd6 options=23
        Opened by PID 3481
# cat /etc/resolv.conf

nameserver 202.232.2.2
nameserver 202.232.2.3

Debian GNU/kFreeBSDでモバイル快適ライフをお楽しみください。



auther: dictoss

地元の北海道から流れて大阪へ行き、現在は東京でお仕事中。 仕事ではCentOS、家ではDebianとFreeBSDを使い何かしようと画策中。

github.com


最近の更新記事