#
# フレッツ・VPN プライオを使用した拠点間接続(IPIPを利用) : コマンド設定
#

#
# センター ルーター
#

#
# ゲートウェイの設定
#
ip route default gateway 172.16.1.1
ip route 172.16.2.0/24 gateway tunnel 1
ip route 172.16.3.0/24 gateway tunnel 2
ip route 192.168.11.0/24 gateway 192.168.10.1
ip route 192.168.12.0/24 gateway 192.168.10.1

#
# LANインターフェースの設定
# (LAN1ポートを使用)
#
ip lan1 address 172.16.1.254/24

#
# WANインターフェースの設定
# (LAN2ポートを使用)
#
ip lan2 address 192.168.10.2/24
ip lan2 mtu 1444

#
# VPN(IPIP)の設定
# (拠点1とのトンネル)
#
tunnel select 1
tunnel encapsulation ipip
tunnel endpoint address 192.168.10.2 192.168.11.2
ip tunnel mtu 1424
ip tunnel tcp mss limit auto
tunnel enable 1

#
# VPN(IPIP)の設定
# (拠点2とのトンネル)
#
tunnel select 2
tunnel encapsulation ipip
tunnel endpoint address 192.168.10.2 192.168.12.2
ip tunnel mtu 1424
ip tunnel tcp mss limit auto
tunnel enable 2