Cisco IP Sla配置模板

以下以ASR1000,运行IOS XE 16.6.1为例:

ip sla 1
 icmp-echo 10.248.0.61 source-ip 10.248.0.33
  threshold 2  ! 阀值为2次
 timeout 5000   !超时时间,单位MS
 frequency 5  !发送频率为5秒1个包
 vrf ISP-CU    ! 可选项,若源IP不属于vrf, 不需配置

ip sla schedule 1 life forever start-time now

track 1 ip sla 1 reachability

ip route 10.248.0.0 255.255.255.0  10.1.1.2 name TokyoOffice track 1

&& 参数说明

Cisco-ASR1000(config-ip-sla-echo)#?
IP SLAs Icmp Echo Configuration Commands:
  data-pattern       Data Pattern
  default            Set a command to its defaults
  exit               Exit operation configuration
  frequency          Frequency of an operation
  history            History and Distribution Data
  no                 Negate a command or set its defaults
  owner              Owner of Entry
  request-data-size  Request data size
  tag                User defined tag
  threshold          Operation threshold in milliseconds
  timeout            Timeout of an operation
  tos                Type Of Service
  verify-data        Verify data
  vrf                Configure IP SLAs for a VPN Routing/Forwarding instance


Cisco-ASR1000# sh ip sla summary
IPSLAs Latest Operation Summary
Codes: * active, ^ inactive, ~ pending

ID           Type        Destination       Stats       Return      Last
                                           (ms)        Code        Run
-----------------------------------------------------------------------
*1           icmp-echo   10.196.0.1        RTT=1       OK          50 seconds ag
                                                                   o


Cisco-ASR1000#sh track 1
Track 1
  IP SLA 1 reachability
  Reachability is Up
    4 changes, last change 7w6d
  Latest operation return code: OK
  Latest RTT (millisecs) 1
  Tracked by:
    Static IP Routing 0


Cisco-ASR1000#sh track 1 brief
Track Type        Instance                   Parameter        State Last Change
1     ip sla      1                          reachability     Up    7w6d


Cisco-ASR1000#sh track brief
Track Type        Instance                   Parameter        State Last Change
1     ip sla      1                          reachability     Up    7w6d



Cisco-ASR1000#sh track summary
                   Track Summary

Object Type          Num Objects     Num Clients

All object types               1               1

interface                      0               0
ip route                       0               0
ip sla                         1               1
ipv6 route                     0               0
list                           0               0
stub-object                    0               0

猜你喜欢

转载自blog.csdn.net/funnycoffee123/article/details/108605243