[RTX1100] SRT100 をつなぎこんだ後、スタティックルートを追加してみた
経緯
我が家のメインルータである RTX1100 配下に SRT100 をつなげました。SRT100 の LAN 側に 192.168.10.0/24 というセグメントを設定しましたので、RTX1100 にこのルート宛の経路情報を追加しました。
コマンド
たった 1 行です。
# ip route 192.168.10.0/24 gateway 172.16.1.3
これで 192.168.10.0/24 宛のパケットを RTX1100 がルーティングしてくれるようになりました。
# save
で保存しておきます。
RTX1100 のコンフィグ
スタティックルートを 1 つ追加して RTX1100 のコンフィグは以下のようになりました。
ip route default gateway xxx.xxx.xxx.xxx ip route 192.168.10.0/24 gateway 172.16.1.3 ip lan1 address 10.1.0.1/24 ip lan1 proxyarp off ip lan2 address 172.16.1.1/24 ip lan2 proxyarp off ip lan2 nat descriptor 3 lan type lan3 auto ip lan3 address xxx.xxx.xxx.xxx/29 ip lan3 secondary address dhcp ip lan3 proxyarp off ip lan3 nat descriptor 1 2 nat descriptor type 1 masquerade nat descriptor address outer 1 secondary nat descriptor address inner 1 10.1.0.1-10.1.0.254 nat descriptor type 2 masquerade nat descriptor address outer 2 primary nat descriptor address inner 2 172.16.1.1-172.16.1.254 nat descriptor masquerade static 2 1 172.16.1.2 udp 500=500 nat descriptor masquerade static 2 2 172.16.1.2 udp 4500=4500 nat descriptor masquerade static 2 3 172.16.1.2 tcp https=https nat descriptor type 3 masquerade nat descriptor address outer 3 primary nat descriptor address inner 3 10.1.0.1-10.1.0.254 syslog host 172.16.1.2 syslog facility local4 syslog notice on dhcp service server dhcp scope 1 10.1.0.2-10.1.0.200/24 dns server 8.8.8.8 8.8.4.4 schedule at 1 */* 01:00 * ntpdate ntp.nict.jp syslog schedule at 2 */* 13:00 * ntpdate ntp.jst.mfeed.ad.jp syslog