IPSLA(ping疎通)


●IP SLA 基本設定例(Cisco IOS)

ICMP Echo(Ping)の例

ip sla 1
 icmp-echo 8.8.8.8 source-interface GigabitEthernet0/0
 frequency 5
ip sla schedule 1 life forever start-time now

今すぐ、送信元IF Gi0/0から、8.8.8.8宛に5秒間隔でping送信

ポイント

  • icmp-echo:ping
  • frequency 5:5秒ごとに測定
  • start-time now:すぐ開始

●IP SLA + Tracking(経路切り替え)

回線 A が死んだら回線 B へ自動切り替えする例

① IP SLA(監視)

ip sla 10
 icmp-echo 8.8.8.8 source-interface GigabitEthernet0/0
 frequency 5
ip sla schedule 10 life forever start-time now

② Tracking 連動

track 10 ip sla 10 reachability

③ デフォルトルートに優先度を付ける

ip route 0.0.0.0 0.0.0.0 192.168.0.1 track 10
ip route 0.0.0.0 0.0.0.0 10.1.1.1 200

● 8.8.8.8 に ping が通る → track 10 = up → 回線Aへ
● 通らなくなる → track 10 = down → 管理距離 200 の回線Bへ自動切り替え

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny