このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
mas1xx_ope:modem_emulation_ppp:start [2021/08/17 20:59] – admin | mas1xx_ope:modem_emulation_ppp:start [2021/08/30 14:58] (現在) – admin | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== モデムエミュレーターの利用 | + | ====== |
+ | |||
+ | いままでモデム + 電話回線や PHS で PPP 接続を行っていた機器の構成の **モデム + 電話回線** の部分を MA-S1xx/ | ||
+ | |||
+ | {{: | ||
+ | |||
+ | \\ | ||
+ | |||
+ | ===== 設定 ===== | ||
+ | |||
+ | ==== 本装置側 ==== | ||
+ | |||
+ | MA-S1xx/ | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ※ 本装置側の PPP I/F は **" | ||
+ | |||
+ | \\ | ||
+ | |||
+ | ==== 接続機器側 ==== | ||
+ | |||
+ | 本装置とは、RS-232C **インターリンクケーブル**((RTS-CTS, | ||
+ | Linux で PPP 接続をする場合は、下記のような設定になります。 | ||
+ | |||
+ | === / | ||
+ | |||
+ | <file config ppp0> | ||
+ | unit 0 | ||
+ | hide-password | ||
+ | noauth | ||
+ | connect "/ | ||
+ | debug | ||
+ | modem | ||
+ | lock | ||
+ | / | ||
+ | 115200 | ||
+ | noipdefault | ||
+ | defaultroute | ||
+ | replacedefaultroute | ||
+ | maxfail 40 | ||
+ | remotename ppp0 | ||
+ | ipparam ppp0 | ||
+ | |||
+ | nopersist | ||
+ | usepeerdns | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | |||
+ | === / | ||
+ | |||
+ | <file config ppp0> | ||
+ | TIMEOUT 10 | ||
+ | '' | ||
+ | OK ATE0 | ||
+ | ABORT BUSY | ||
+ | ABORT 'NO CARRIER' | ||
+ | ABORT VOICE | ||
+ | ABORT 'NO DIALTONE' | ||
+ | ABORT 'NO DIAL TONE' | ||
+ | ABORT 'NO ANSWER' | ||
+ | ABORT DELAYED | ||
+ | ABORT ERROR | ||
+ | TIMEOUT 30 | ||
+ | |||
+ | OK ATDT5555 | ||
+ | CONNECT \d\c | ||
+ | </ | ||
+ | |||
+ | ※ ATDT5555 の電話番号指定は、WebUI の 『着信 電話番号』で設定した番号にします。 | ||
+ | |||
+ | \\ | ||
+ | |||
+ | ==== 実行例 ==== | ||
+ | |||
+ | PPP 接続を実行した場合のログの例です。 | ||
+ | |||
+ | < | ||
+ | Aug 17 11:38:03 lg-gram pppd[4125]: pppd 2.4.7 started by root, uid 0 | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: timeout set to 10 seconds | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: send (ATZ^M) | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: expect (OK) | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: ATZ^M^M | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: OK | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: send (ATE0^M) | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: abort on (BUSY) | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: abort on (NO CARRIER) | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: abort on (VOICE) | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: abort on (NO DIALTONE) | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: abort on (NO DIAL TONE) | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: abort on (NO ANSWER) | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: abort on (DELAYED) | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: abort on (ERROR) | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: timeout set to 30 seconds | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: expect (OK) | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: ^M | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: ATE0^M^M | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: OK | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: send (ATDT5555^M) | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: expect (CONNECT) | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: ^M | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: ^M | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: CONNECT | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: | ||
+ | Aug 17 11:38:04 lg-gram chat[4127]: send (\d) | ||
+ | Aug 17 11:38:05 lg-gram pppd[4125]: Script / | ||
+ | Aug 17 11:38:05 lg-gram pppd[4125]: Serial connection established. | ||
+ | Aug 17 11:38:05 lg-gram pppd[4125]: using channel 3 | ||
+ | Aug 17 11:38:05 lg-gram pppd[4125]: Using interface ppp0 | ||
+ | Aug 17 11:38:05 lg-gram pppd[4125]: Connect: ppp0 <--> / | ||
+ | Aug 17 11:38:05 lg-gram NetworkManager[952]: | ||
+ | Aug 17 11:38:05 lg-gram systemd-udevd[4128]: | ||
+ | Aug 17 11:38:06 lg-gram pppd[4125]: sent [LCP ConfReq id=0x1 < | ||
+ | Aug 17 11:38:07 lg-gram pppd[4125]: rcvd [LCP ConfReq id=0x1 < | ||
+ | Aug 17 11:38:07 lg-gram pppd[4125]: sent [LCP ConfAck id=0x1 < | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: sent [LCP ConfReq id=0x1 < | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: rcvd [LCP ConfAck id=0x1 < | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: sent [LCP EchoReq id=0x0 magic=0xb452adfb] | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: sent [CCP ConfReq id=0x1 <deflate 15> < | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: sent [IPCP ConfReq id=0x1 < | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: rcvd [LCP EchoReq id=0x0 magic=0xade986dc] | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: sent [LCP EchoRep id=0x0 magic=0xb452adfb] | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: rcvd [CCP ConfReq id=0x1 <deflate 15> < | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: sent [CCP ConfAck id=0x1 <deflate 15> < | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: rcvd [IPCP ConfReq id=0x1 < | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: sent [IPCP ConfAck id=0x1 < | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: rcvd [LCP EchoRep id=0x0 magic=0xade986dc] | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: rcvd [CCP ConfAck id=0x1 <deflate 15> < | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: Deflate (15) compression enabled | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: rcvd [IPCP ConfNak id=0x1 <addr 192.168.1.254> | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: sent [IPCP ConfReq id=0x2 < | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: rcvd [IPCP ConfAck id=0x2 < | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: replacing old default route to wlp1s0 [172.16.1.66] | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: local IP address 192.168.1.254 < | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: remote IP address 192.168.1.1 | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: primary | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: secondary DNS address 192.168.1.1 | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: Script / | ||
+ | Aug 17 11:38:09 lg-gram NetworkManager[952]: | ||
+ | Aug 17 11:38:09 lg-gram NetworkManager[952]: | ||
+ | Aug 17 11:38:09 lg-gram dnsmasq[1123]: | ||
+ | Aug 17 11:38:09 lg-gram dnsmasq[1123]: | ||
+ | Aug 17 11:38:09 lg-gram pppd[4125]: Script / | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | |||
+ | IP アドレスとして 192.168.1.254 が割り当てられ、本装置の IP アドレスが DNS サーバーとして設定されていることが確認できます。 | ||