NVR500専用v6プラス設定Config

#YAMAHA NVR500専用のv6プラス接続設定例です。
#初期化したNVR500の「コマンドの実行」へ、以下のコンフィグを丸ごと流し込めばとりあえず繋がるでしょう。
#必要最小限の設定ですのでフィルター関連は何もありません。
#LAN側IPアドレスはデフォルトのまま192.168.100.1でやっています。
#黄色いマーカー部分は回線毎に変わります。事前に各自の環境に合わせて修正してください。

#LAN側の設定
ip lan1 address 192.168.100.1/24
ipv6 prefix 1 ra-prefix@lan2::/64
ipv6 lan1 address ra-prefix@lan2::1/64
ipv6 lan1 rtadv send 1 o_flag=on
ipv6 lan1 dhcp service server

#WAN側の設定
ipv6 lan2 address 【CEのIPv6アドレス】/64
ipv6 lan2 dhcp service client ir=on
dns server dhcp lan2

#NVR500のトップページで接続状況が分かるように
provider lan1 name LAN:
provider lan2 name ipv6 PRV/0/8/0/0/1/1:JPNE

#MAP-Eトンネル設定
ip route default gateway tunnel 1
tunnel select 1
 tunnel encapsulation ipip
 tunnel endpoint address 【CEのIPv6アドレス】 【BRのIPv6アドレス】
 ip tunnel nat descriptor 1010 1020 1030 1040 1050 1060 1070 1080 1090 1100 1110 1120 1130 1140 1150
 ip tunnel tcp mss limit auto
 tunnel enable 1

#ポート16個分の範囲指定が15セットで合計240ポート確保
nat descriptor type 1010 masquerade
nat descriptor timer 1010 300
nat descriptor timer 1010 tcpfin 10
nat descriptor address outer 1010 【MAP-EのIPv4アドレス】
nat descriptor address inner 1010 auto
nat descriptor masquerade port range 1010 5904-5919

nat descriptor type 1020 masquerade
nat descriptor timer 1020 300
nat descriptor timer 1020 tcpfin 10
nat descriptor address outer 1020 【MAP-EのIPv4アドレス】
nat descriptor address inner 1020 auto
nat descriptor masquerade port range 1020 10000-10015

nat descriptor type 1030 masquerade
nat descriptor timer 1030 300
nat descriptor timer 1030 tcpfin 10
nat descriptor address outer 1030 【MAP-EのIPv4アドレス】
nat descriptor address inner 1030 auto
nat descriptor masquerade port range 1030 14096-14111

nat descriptor type 1040 masquerade
nat descriptor timer 1040 300
nat descriptor timer 1040 tcpfin 10
nat descriptor address outer 1040 【MAP-EのIPv4アドレス】
nat descriptor address inner 1040 auto
nat descriptor masquerade port range 1040 18192-18207

nat descriptor type 1050 masquerade
nat descriptor timer 1050 300
nat descriptor timer 1050 tcpfin 10
nat descriptor address outer 1050 【MAP-EのIPv4アドレス】
nat descriptor address inner 1050 auto
nat descriptor masquerade port range 1050 22288-22303

nat descriptor type 1060 masquerade
nat descriptor timer 1060 300
nat descriptor timer 1060 tcpfin 10
nat descriptor address outer 1060 【MAP-EのIPv4アドレス】
nat descriptor address inner 1060 auto
nat descriptor masquerade port range 1060 26384-26399

nat descriptor type 1070 masquerade
nat descriptor timer 1070 300
nat descriptor timer 1070 tcpfin 10
nat descriptor address outer 1070 【MAP-EのIPv4アドレス】
nat descriptor address inner 1070 auto
nat descriptor masquerade port range 1070 30480-30495

nat descriptor type 1080 masquerade
nat descriptor timer 1080 300
nat descriptor timer 1080 tcpfin 10
nat descriptor address outer 1080 【MAP-EのIPv4アドレス】
nat descriptor address inner 1080 auto
nat descriptor masquerade port range 1080 34576-34591

nat descriptor type 1090 masquerade
nat descriptor timer 1090 300
nat descriptor timer 1090 tcpfin 10
nat descriptor address outer 1090 【MAP-EのIPv4アドレス】
nat descriptor address inner 1090 auto
nat descriptor masquerade port range 1090 38672-38687

nat descriptor type 1100 masquerade
nat descriptor timer 1100 300
nat descriptor timer 1100 tcpfin 10
nat descriptor address outer 1100 【MAP-EのIPv4アドレス】
nat descriptor address inner 1100 auto
nat descriptor masquerade port range 1100 42768-42783

nat descriptor type 1110 masquerade
nat descriptor timer 1110 300
nat descriptor timer 1110 tcpfin 10
nat descriptor address outer 1110 【MAP-EのIPv4アドレス】
nat descriptor address inner 1110 auto
nat descriptor masquerade port range 1110 46864-46879

nat descriptor type 1120 masquerade
nat descriptor timer 1120 300
nat descriptor timer 1120 tcpfin 10
nat descriptor address outer 1120 【MAP-EのIPv4アドレス】
nat descriptor address inner 1120 auto
nat descriptor masquerade port range 1120 50960-50975

nat descriptor type 1130 masquerade
nat descriptor timer 1130 300
nat descriptor timer 1130 tcpfin 10
nat descriptor address outer 1130 【MAP-EのIPv4アドレス】
nat descriptor address inner 1130 auto
nat descriptor masquerade port range 1130 55056-55071

nat descriptor type 1140 masquerade
nat descriptor timer 1140 300
nat descriptor timer 1140 tcpfin 10
nat descriptor address outer 1140 【MAP-EのIPv4アドレス】
nat descriptor address inner 1140 auto
nat descriptor masquerade port range 1140 59152-59167

nat descriptor type 1150 masquerade
nat descriptor timer 1150 300
nat descriptor timer 1150 tcpfin 10
nat descriptor address outer 1150 【MAP-EのIPv4アドレス】
nat descriptor address inner 1150 auto
nat descriptor masquerade port range 1150 63248-63263

#DHCPの設定
dhcp service server
dhcp server rfc2131 compliant except remain-silent
dhcp scope 1 192.168.100.2-192.168.100.191/24