T M B

Posts Tagged ‘ios’

GLBP负载均衡

星期三, 三月 2nd, 2011

GLBP有3种负载均衡策略:

  1. round-robin:主机在AVF(活跃虚拟转发器)间轮循,同一主机在不同的时间段里可能由不同的AVF来转发数据;
  2. weight:由weight值大小决定负载,同一主机在不同的时间里可能由不同的AVF来转发数据;
  3. host-dependent:如果主机一旦确定了AVF后,一直都由这个AVF来转发数据;

默认负载均衡策略为round-robin,下面测试这三种负载均衡策略:

GLBP Load Balancing

GLBP Load Balancing

(更多…)

Cisco IOS IP SLA TCP Connect Operation

星期二, 三月 1st, 2011

前一篇文章简要的描述了Cisco IP SLA,这里就简单实现一个Cisco IP SLA的TCP Connect Operation,用于测量设备的TCP的响应时间。
如果是目标是Cisco路由器,可以开启Cisco IOS IP SLA responder。如果目标不是Cisco设备,可以使用一些著名接口,例如:21 (ftp), 23 (telnet), 80 (HTTP Server)等。
IP SLA TCP Connect Operation
基于CLI来定义TCP Connect Operation (更多…)

Cisco IOS IP SLA

星期二, 三月 1st, 2011

Cisco IOS IP SLA是一个网络性能度量与诊断工具,它通过主动在多个站点之间或多条路径之间发送数量来实现对网络性能的度量。IP SLA使用时间戳来计算如抖动、延时、响应时间这、丢包率、语音MOS值等网络性能参数。用户通过命令行或RTTMON MIB可以定义一个IP SLA操作,定义IP SLA动作时可以明确这个动作所产生的流量的包尺寸、发包间隔、协议类型、DSCP标记以及其它一些参数,然后让这个动作在适当的时候运行并返回度量性能所需要的参数。例如,我们可以定义一个用来度量UDP抖动的动作,这个操作每分钟每隔20ms发出10个64Bytes的包。

IP SLA

在做测试之前,必须先满足以下条件:

源设备必须是思科设备,并且能运行IP SLA IOS版本为 12.0(5)T或更新;
当做IP SLA测试时,目的设备可以是一个IP设备,也可以使用思科路由器中的IP SLA Responder,来提高测量精度;

(更多…)

Cisco IOU LiveCD v1

星期三, 一月 19th, 2011

继本博客(flyxj.cn)在国内首先放出了Cisco IOU的信息以及相关教程后,大家都非常的关注。有网友(撒加)用CDLinux做了一个便携版,创意很不错,但是苦于其版本不方便使用SecureCRT等软件远程登陆,搭建拓扑也不是很灵活(对于刚接触,还不知道IOU的怎么回事,或是Linux不熟悉的人,呵呵),所以我用CDLinux也做了一个LiveCD,并且配上综合拓扑图,Shell脚本参考BX2AA,感谢他们两位。

该版本暂且称之为Cisco IOU LiveCD v1.0,是一个便携版本,可以刻盘光驱启动,也可以装在U盘中,使用U盘启动,同时也可以放入VMware等虚拟机使用光盘启动,非常的方便。LiveCD中使用的IOU文件i86bi_linux-adventerprisek9-ms我已经Patched,大家懂得,直接可以使用。

拓扑如下:

基本的路由实验都是能够完成了,IOU的资源占用确实是非常小的,6台设备全开了,也就CPU占用0%~1%,并且支持重启。目前CCIE RS的排错考试就是用IOU搭建的。

通过截图来说明如何使用,我在VMware演示:

(更多…)

Cisco IOU

星期四, 一月 13th, 2011

Cisco IOS-On-UNIX is an internal Cisco application used by engineers for testing, proof-of-concept, and validating design.

This is the Linux-based version. It is similar in function to Dynamips/Dynagen/GNS3, but nowhere near as CPU/memory intensive.

***************************************************************
IOS On Unix – Cisco Systems confidential, internal use only
Under no circumstances is this software to be provided to any
non Cisco staff or customers. To do so is likely to result
in disciplinary action. Please refer to the IOU Usage policy at
wwwin-iou.cisco.com for more information.
***************************************************************

Defeating Cisco IOU’s License Protection

IOS 设备 NTP 配置示例

星期二, 五月 25th, 2010

在日志和调试时加上时间戳

Router(config)#service timestamps log datetime localtime
Router(config)#service timestamps debug datetime localtime

设置时间

Router#clock set 15:30:00 January 1 2009
outer#calendar set 15:30:00 January 1 2009

Clock 和 Calendar 的区别:
Most Cisco routers have two clocks:a battery-powered hardware clock (referenced in CLI commands as the “calendar”) and a software clock (referenced in CLI commands as the “clock”). These two clocks are managed separately.
The primary source for time data on your system is the software clock. This clock runs from the moment the system starts up and keeps track of the current date and time. The software clock can be set from a number of sources and in turn can be used to distribute the current time through various mechanisms to other systems. When a router with a hardware clock is initialized or rebooted, the software clock is initially set based on the time in the hardware clock.

(更多…)