通过 Cisco IOS 15.x 和 SLA 跟踪实现冗余互联网访问

网络工程 思科
2021-08-01 16:55:34

各位,

我正在尝试在具有两个宽带 Internet 连接、NAT 和 SLA 跟踪的路由器上进行 SLA 跟踪。

这是我在 IOS 12.x 中做过很多次的事情,而且相对简单。

我面临的问题是这个特定的客户路由器(Cisco 1921)运行 IOS 15.1 并且以前的语法 (ip sla xx) 不再有效。相反,它被思科设置服务器和响应器的新方法所取代。

这是有道理的,这是我在 IOS 12.x 上工作的配置的一个片段,跟踪连接到相应 ISP 宽带路由器的两个 FE 接口:

----
track 1 rtr 1 reachability
  delay down 15 up 10

track 2 rtr 2 reachability
  delay down 15 up 10

ip sla 1
  icmp-echo 10.10.10.1 source-interface Fastethernet0/0
  timeout 1000
  threshold 40
  frequency 3

ip sla 2
  icmp-echo 10.10.20.1 source-interface Fastethernet0/1
  timeout 1000
  threshold 40
  frequency 3

route-map nat-1 permit 10
  match ip address 100
  match interface FastEthernet0/0

route-map nat-2 permit 10
  match ip address 100
  match interface FastEthernet0/1

ip sla schedule 1 life forever start-time now
ip sla schedule 2 life forever start-time now

access-list 100 permit ip 192.168.108.0 0.0.0.255 any

ip nat inside source route-map nat-1 interface FastEthernet0/0 overload
ip nat inside source route-map nat-2 interface FastEthernet0/1 overload

ip route 0.0.0.0 0.0.0.0 FastEthernet0/0 track 1
ip route 0.0.0.0 0.0.0.0 FastEthernet0/1 track 2
----

上面的语法对于 IOS 15.x 和 SLAs 引擎 3.0 来说都是不适用的。

有任何想法吗 ?

谢谢。

这是节目版本的摘录:

Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2011 by Cisco Systems, Inc.
Compiled Tue 06-Dec-11 16:02 by prod_rel_team

ROM: System Bootstrap, Version 15.0(1r)M15, RELEASE SOFTWARE (fc1)
<SNIP>
Cisco CISCO1921/K9 (revision 1.0) with 487424K/36864K bytes of memory.
Processor board ID FGL1615213P
<SNIP>
Cisco CISCO1921/K9 (revision 1.0) with 487424K/36864K bytes of memory.
  Processor board ID FGL1615213P
  1 DSL controller
  1 Ethernet interface
  2 Gigabit Ethernet interfaces
  1 ATM interface
  1 terminal line

DRAM configuration is 64 bits wide with parity disabled.
255K bytes of non-volatile configuration memory.
245744K bytes of USB Flash usbflash0 (Read/Write)


License Info:

License UDI:

-------------------------------------------------
Device#   PID           SN
-------------------------------------------------
*0        CISCO1921/K9          FGL1615213P

Technology Package License Information for Module:'c1900'

-----------------------------------------------------------------
Technology    Technology-package           Technology-package
Current       Type           Next reboot
------------------------------------------------------------------
ipbase        ipbasek9      Permanent      ipbasek9
security      None          None           None
data          None          None           None
1个回答

对于新的 15 版软件系列,Cisco 1921 路由器上的 IP SLA 需要数据许可证。请包括路由器的显示版本供我们查看,您安装了哪些许可证。基本许可证仅包括 IP SLA 响应程序。

许可证升级后,您可以使用上面指定的命令/配置。

更多信息:https : //www.cisco.com/c/en/us/products/collat​​eral/cloud-systems-management/software-activation-on-integrated-services-routers-isr/white_paper_c11_556985.html