Cisco ASA可达性静态路由配置示例

  • 格式:docx
  • 大小:40.62 KB
  • 文档页数:5

Cisco ASA可达性静态路由配置示例如果网络中具有两个ISP的出口连接,为了确保目标地址可达,可配置一个服务等级协议(SLA)监视器进程来监视任意目标地址,这个进程与静态路由联合,使该路由跟踪可达的目标。

简易拓扑:配置示例:ciscoasa(config)# interface ethernet 0/1ciscoasa(config-if)# ip address 200.1.1.1 255.255.255.0ciscoasa(config-if)# nameif outsideciscoasa(config-if)# no shutdownciscoasa(config)# interface ethernet 0/2ciscoasa(config-if)# ip address 201.1.1.1 255.255.255.0ciscoasa(config-if)# nameif outside_2ciscoasa(config-if)# no shutdownciscoasa(config)# sla monitor 1 定义SLA监视过程ciscoasa(config-sla-monitor)# type echo protocol ipIcmpEcho 200.1.1.254 interface outsi de 定义可达性测试ciscoasa(config-sla-monitor-echo)# frequency 30 测试频率设置为30秒一次ciscoasa(config-sla-monitor-echo)# threshold 2000 测试阀值间隔为2秒ciscoasa(config-sla-monitor-echo)# timeout 5000 测试超时间隔为5秒ciscoasa(config-sla-monitor-echo)# exitciscoasa(config)# sla monitor schedule 1 life forever start-time now 立即开始SLA监控测试ciscoasa(config)# track 1 rtr 1 reachability 启用可达性跟踪ciscoasa(config)# sla monitor 2ciscoasa(config-sla-monitor)# type echo protocol ipIcmpEcho 201.1.1.254 interface outsi de_2ciscoasa(config-sla-monitor-echo)# frequency 30ciscoasa(config-sla-monitor-echo)# threshold 2000ciscoasa(config-sla-monitor-echo)# timeout 5000ciscoasa(config-sla-monitor-echo)# exitciscoasa(config)# sla monitor schedule 2 life forever start-time nowciscoasa(config)# track 2 rtr 2 reachabilityciscoasa(config)# route outside 0.0.0.0 0.0.0.0 200.1.1.254 track 1 对默认路由使用跟踪ciscoasa(config)# route outside_2 0.0.0.0 0.0.0.0 201.1.1.254 2 track 2检测静态路由可达性跟踪过程:ciscoasa(config)# show trackTrack 1Response Time Reporter 1 reachabilityReachability is Down1 change, last change 00:04:10Latest operation return code: TimeoutTracked by:STATIC-IP-ROUTING 0Track 2Response Time Reporter 2 reachabilityReachability is Down1 change, last change 00:01:34Latest operation return code: TimeoutTracked by:STATIC-IP-ROUTING 0ciscoasa(config)# debug sla monitor traceIP SLA Monitor TRACE debugging for all operations is onciscoasa(config)# IP SLA Monitor(1) echo operation: TimeoutIP SLA Monitor(1) Scheduler: Updating resultIP SLA Monitor(2) Scheduler: Starting an operationIP SLA Monitor(2) echo operation: Sending an echo operationIP SLA Monitor(2) echo operation: TimeoutIP SLA Monitor(2) Scheduler: Updating result检查SLA配置:ciscoasa(config)# show sla monitor configuration SA Agent, Infrastructure Engine-IIEntry number: 1Owner:Tag:Type of operation to perform: echoTarget address: 200.1.1.254Interface: outsideNumber of packets: 1Request size (ARR data portion): 28Operation timeout (milliseconds): 5000Type Of Service parameters: 0x0Verify data: NoOperation frequency (seconds): 30Next Scheduled Start Time: Start Time already passed Group Scheduled : FALSELife (seconds): ForeverEntry Ageout (seconds): neverRecurring (Starting Everyday): FALSEStatus of entry (SNMP RowStatus): ActiveEnhanced History:Entry number: 2Owner:Tag:Type of operation to perform: echoTarget address: 201.1.1.254Interface: outside_2Number of packets: 1Request size (ARR data portion): 28Operation timeout (milliseconds): 5000Type Of Service parameters: 0x0Verify data: NoOperation frequency (seconds): 30Next Scheduled Start Time: Start Time already passed Group Scheduled : FALSELife (seconds): ForeverEntry Ageout (seconds): neverRecurring (Starting Everyday): FALSEStatus of entry (SNMP RowStatus): ActiveEnhanced History:ciscoasa(config)#show sla monitor operational-state Entry number: 1Modification time: 16:17:04.626 UTC Tue Oct 30 2012Number of Octets Used by this Entry: 1480Number of operations attempted: 18Number of operations skipped: 0Current seconds left in Life: ForeverOperational state of entry: ActiveLast time this entry was reset: NeverConnection loss occurred: FALSETimeout occurred: TRUEOver thresholds occurred: FALSELatest RTT (milliseconds): NoConnection/Busy/TimeoutLatest operation start time: 16:25:34.659 UTC Tue Oct 30 2012 Latest operation return code: TimeoutRTT Values:RTTAvg: 0 RTTMin: 0 RTTMax: 0NumOfRTT: 0 RTTSum: 0 RTTSum2: 0Entry number: 2Modification time: 16:19:41.114 UTC Tue Oct 30 2012Number of Octets Used by this Entry: 1480Number of operations attempted: 13Number of operations skipped: 0Current seconds left in Life: ForeverOperational state of entry: ActiveLast time this entry was reset: NeverConnection loss occurred: FALSETimeout occurred: TRUEOver thresholds occurred: FALSELatest RTT (milliseconds): NoConnection/Busy/TimeoutLatest operation start time: 16:25:41.150 UTC Tue Oct 30 2012 Latest operation return code: TimeoutRTT Values:RTTAvg: 0 RTTMin: 0 RTTMax: 0NumOfRTT: 0 RTTSum: 0 RTTSum2: 0检查路由:ciscoasa(config)# show routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setC 201.1.1.0 255.255.255.0 is directly connected, outside_2 C 200.1.1.0 255.255.255.0 is directly connected, outside C 192.168.1.0 255.255.255.0 is directly connected, inside。