Juniper SRX スタティックルートの設定

ネットワーク

作業環境

  • 型番:SRX100H2
  • バージョン:12.1X44-D45

スタティックルートの設定

  • set routing-options static route x.x.x.x/nn nexthop y.y.y.y

設定例:

set routing-options static route 0.0.0.0/0 next-hop 10.1.10.1
set routing-options static route 10.1.20.0/24 next-hop 10.1.10.1
routing-options {
    static {
        route 0.0.0.0/0 next-hop 10.1.10.1;
        route 10.1.20.0/24 next-hop 10.1.10.1;
    }
}

ルートの確認

  • show route
root@SRX> show route

inet.0: 6 destinations, 7 routes (6 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

0.0.0.0/0          *[Static/5] 00:00:54
                    > to 10.1.10.1 via fe-0/0/0.0
                    [Access-internal/12] 08:13:52
                    > to 10.1.10.6 via fe-0/0/0.0
10.1.10.0/24       *[Direct/0] 08:13:52
                    > via fe-0/0/0.0
10.1.10.8/32       *[Local/0] 08:13:52
                      Local via fe-0/0/0.0
10.1.20.0/24       *[Static/5] 00:00:06
                    > to 10.1.10.1 via fe-0/0/0.0
192.168.1.0/24     *[Direct/0] 08:16:00
                    > via fe-0/0/7.0
192.168.1.99/32    *[Local/0] 08:16:10
                      Local via fe-0/0/7.0
  • show route detail
    • 詳細情報の表示
root@SRX> show route detail

inet.0: 6 destinations, 7 routes (6 active, 0 holddown, 0 hidden)
0.0.0.0/0 (2 entries, 1 announced)
        *Static Preference: 5
                Next hop type: Router, Next hop index: 559
                Address: 0x15c0438
                Next-hop reference count: 7
                Next hop: 10.1.10.1 via fe-0/0/0.0, selected
                State: <Active Int Ext>
                Age: 11:40
                Task: RT
                Announcement bits (2): 0-KRT 1-Resolve tree 1
                AS path: I
         Access-internal Preference: 12
                Next hop type: Router, Next hop index: 558
                Address: 0x15c03ec
                Next-hop reference count: 1
                Next hop: 10.1.10.6 via fe-0/0/0.0, selected
                State: <Int>
                Inactive reason: Route Preference
                Age: 8:24:38
                Task: RPD Unix Domain Server./var/run/rpd_serv.local
                AS path: I

10.1.10.0/24 (1 entry, 1 announced)
.
.
.

参考資料

36.Static RouteのCLI設定 Juniper SRX日本語マニュアル
36 static route SRX300 機器にて、スタティックルートの CLI 設定について説明します。

―――――――――――――

タイトルとURLをコピーしました