0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ヤマハルーターをLTE接続

Posted at

ヤマハルーターをLTEルーターとして使う

ヤマハルーターNVR700WをLTEルーターとして使ったときのメモ。今回のネタは軽いが、小生にとっては大事であった。

設定

GUI設定は楽だが、「おまけ」が多い。CLIによる最小設定が本稿の目的。

GUI

GUIによる設定方法は下記にある。

LTE I/F

ヤマハ的には、LTE I/Fは「内蔵無線WAN」という名称であり、CLIでは、「wwan」というキーワードを用いる。

最小設定

日本語によるコメント(#)を追記

administrator password himitsu
ip route default gateway pdp wan1  # デフォルトゲートウェイをI/F wan1(pdp:内蔵無線WANモジュール=LTE)とする
ip wan1 address pdp         # wan1のIPアドレス情報をpdpから取得
wan1 bind wwan 1                   # LTEをwan1に結びつける
pp disable all
wwan disable all
wwan select 1                       # wan1の設定内容
 description wwan Secret
 wwan always-on on                  # 常時ON
 wwan auth accept chap              # 認証方式
 wwan auth myname ID PASSWORD       # アカウント情報
 wwan auto connect on               # 自動接続
 wwan disconnect time off           # 切断タイマーOFF
 wwan disconnect input time off
 wwan disconnect output time off
 wwan access-point name mvno.net    # APN名
 wwan access limit length off       # 従量制限なし
 wwan access limit time off         # 時間制限なし
 wwan enable 1                      # 有効化
no tunnel enable all
wwan-module use on                  # 内蔵無線WANモジュール有効化

LAN側の設定はないが、少なくとも、コンソールから、通信を確認できる(例:「ping 8.8.8.8」。また、DNS情報が必要であれば、下記設定が必要となる。

dns server pdp wan1

wan1から得られるDNSサーバーを使うというものである。

L2TPv3の設定

結局は、L2TPv3を実施したかったので、その設定も記載。下記は受け側の設定であり、送り側からのL2TPv3接続を待つもの。このあたりおよびL2TPの詳細は、下記記事を参照。

administrator password himitsu
ip route default gateway pdp wan1
bridge member bridge1 lan1 tunnel1
ip bridge1 address 192.168.2.20/24
ip wan1 address pdp
ip wan1 nat descriptor 1
wan1 bind wwan 1
pp disable all
wwan disable all
wwan select 1
 description wwan Secret
 wwan always-on on
 wwan auth accept chap
 wwan auth myname ID PASSWORD
 wwan auto connect on
 wwan disconnect time off
 wwan disconnect input time off
 wwan disconnect output time off
 wwan access-point name mvno.net
 wwan access limit length off
 wwan access limit time off
 wwan enable 1
no tunnel enable all
tunnel select 1
 tunnel encapsulation l2tpv3-raw
 l2tp hostname RT2
 l2tp tunnel auth on yamaha
 l2tp tunnel disconnect time off
 l2tp keepalive use on 60 3
 l2tp keepalive log on
 l2tp syslog on
 l2tp local router-id 192.168.2.20
 l2tp remote router-id 192.168.2.10
 l2tp remote end-id yamaha
 ip tunnel tcp mss limit auto
 tunnel enable 1
nat descriptor type 1 masquerade
nat descriptor address outer 1 primary
nat descriptor address inner 1 auto
nat descriptor masquerade static 1 1 192.168.2.20 udp 1701
l2tp service on l2tpv3
wwan-module use on

EOF

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?