LAB13:IP SIA

一、实验目的
1、掌握IP SLA的应用
知识点链接:
SLA(Service Level Aggrement)在接入层交换机就可以提供此服务。主要作用是网络中发出的各种数据包进行探测,然后进行统计看网络数据包的状况。当然还可以和HSRP 静态路由结合做track服务。
 
二、实验内容
拓扑图:

switch分解试验部分-LAB13:IP SIA_试验

需求:
1、在SW1/SW2创建no switchport三层接口
2 、SW1作为source方,模拟发出UDP报文,端口2005。SW2作为接收方。报文每2S发送一次
Timeout为500毫秒。然后查看SLA统计情况。
 
三、实验配置
SW1(config)#interface fastEthernet 0/24
SW1(config-if)#no switchport 关闭2层接口,开启三层接口
SW1(config-if)#ip address 10.1.1.1 255.255.255.0
SW2(config)#inter f0/24
SW1(config-if)#no switchport 关闭2层接口,开启三层接口
SW2(config-if)#ip address 10.1.1.2 255.255.255.0
SW1(config)#do ping 10.1.1.2 ping SW2确保能够通讯
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds:
!!!!!
 
SW1(config)#ip sla 1 进入SLA配置模式,编号为1
SW1(config-ip-sla)#udp-echo 10.1.1.2 2005 对目的地10.1.1.2发送udp echo报文。端口2005
SW1(config-ip-sla-udp)#timeout 500 超时时间是500毫秒
SW1(config-ip-sla-udp)#frequency 2 发送频率是每2秒发送一次
SW1(config)#ip sla schedule 1 life forever 一直不停的发送报文
SW1(config)#ip sla schedule 1 start-time now 立即开始发送
SW2(config)#ip sla responder SW2作为相应端,相应SW1的UDP报文
SW2(config)#ip sla responder udp-echo port 2005
 
SW1#show ip sla statistics 查看SLA统计信息
Round Trip Time (RTT) for Index 1
Latest RTT: 3 ms
Latest operation start time: *00:31:00.699 UTC Mon Mar 1 1993
Latest operation return code: OK
Number of successes: 32
Number of failures: 8
Operation time to live: Forever