- 博客(105)
- 资源 (2)
- 收藏
- 关注
原创 CSR1000v XML file over KVM
备份一下,可以参考。virsh dumpxml csr1000v-1 CSR1000V-1 d9f35a4c-de68-49f4-abb9-d8538af1e97a 4194304 4194304 2 /machine hvm Haswell-noTSX
2016-11-01 10:36:03
887
原创 IPSec scale config script over Cisco Router
该脚本支持了SVTI模式的config scalefrom xml.dom import minidomfrom ftplib import FTPimport telnetlibimport sysimport timeimport loggingimport osimport reimport platformimport stringclass IPSecC
2016-05-23 16:32:53
758
原创 Scale IPSec config over cisco router
Cisco Router 的IPSec配置很复杂,如果需要生成多条tunnel的配置的时候,需要很大的工作量简单写了一个脚本来生成,看看结果如何把Limitation:1. 支持IKEv22. 只能在Cisco IOS router上运行3. Topology: site to siteBenifit:同时生成A和B两个router的配置,赞吧?
2016-05-12 14:48:42
682
原创 HSRP/VRRP/GLBP在CSR1000V上的问题
HSRP, VRRP, GLBP是网络中很重要的redundancy协议,特别是HSRP,是Cisco重点推荐的。和传统router一样,很多人都会把HSRP部署到UCS中,结果发现,HSRP的VIP一直不能被外面设备所ping成功,而外面设备ping这个active CSR1000V以及standby CSR1000V都是成功的,这点,是相当让人费解的。为什么呢?其实
2015-07-30 15:29:38
1436
原创 CSR1000V在XenServer的安装和简单使用
目前主流市场上最火的hyper-v,就是vmware的ESX,Citrix的xenserver, 微软的hyper-v,以及KVM等虽然国内很多厂家用的都是vmware的虚拟化产品,但是,国外还是很多人在用xenserver。就尝试着用用xenserver吧1. 下载ISO2. 刻录光盘,也可以U盘启动3. 一步步安装,没有任何悬念,主要就是配置management i
2015-07-30 14:51:55
4520
原创 CCIE RS LAB V5 Verification - Multicast
验证结果:一定要一会儿收到来自R18的response,一会儿收到来自R19的responseSW5#ping 232.1.1.1 source vlan 55 repeat 10Type escape sequence to abort.Sending 10, 100-byte ICMP Echos to 232.1.1.1, timeout is 2 seconds:Pa
2014-12-13 17:03:37
1516
原创 路由器上FirewallNonsession丢包原因分析
在ASR1000上出现这样的drop cause,有如下几种原因:1. firewall session setup rate太快了,内存来不及分配2. 在这个chassis上,已经达到了firewall最大支持的session数量,无法承载更加多的firewall session这两种情况下,第一种情况只是瞬时的、暂时的状态,而第二种状态是永久的,一直存在的。解决
2014-11-20 10:02:56
1676
原创 ZoneBasedFirewall对系统性能影响
ASR1002x-3#show pl hard qfp ac datapath utilization CPP 0: Subdev 0 5 secs 1 min 5 min 60 minInput: Priority (pps) 0 0 0
2014-11-12 14:57:58
1053
原创 路由器taildrop丢包原因总结分析
Taildrop在路由器上是一种非常常见的丢包策略。如果路由器进来数据包的总bps超过了路由器能处理的bps,那么,某些数据包就会被丢弃,而丢包原因就是taildrop。这种情况下的丢包,和路由器过载无法处理(一般是pps达到了路由器处理的上限)是完全不一样的。路由器因为pps过大导致路由器过载而丢包,这样的包很可能都没有丢包原因的。下面的这个例子,路由器dataplane的处理能
2014-11-12 12:26:52
9103
原创 NAT和IPSec在思考路由器上的实现
Topology:Client --- Router(NAT) ===IPSec=== Router --- ServerClient: 90.1.0.8NAT Router outside: 90.1.0.1Server 1: 100.100.100.142Server 2: 100.100.100.162Server GW: 1
2014-08-07 11:07:17
3967
原创 Linux IPv6 address configuration的思考
默认情况下,现在常用的Linux发型版本都支持IPV6,且同时激活。此时,如果网络中有一个IPV6的网络设备正在执行ND操作,发送RS消息,linux机器自动回应RA消息,同时,该接口使用IPV6的autoconfiguration功能,自行配置上IPV6地址。如果该Linux interface收到多个网段的IPV6 RS消息,则,同步会配置上多个IPV6地址。如:[asr@
2013-10-22 21:15:05
2065
原创 Cisco 7600 Core Switch useful commands
Cisco7600 core switch useful commands:show moduleshow powershow environment temperature allshow environment cooling all1. 显示7600上模块数量以及板卡类别SBCPERF-7600-1#show module Mod Ports C
2013-10-22 13:48:03
2092
原创 Linux之runlevel
也许是因为system V的缘故吧,Linux有很多runlevel.在inittab的注释文件中,说明的很清楚。[root@localhost run]# cat /etc/inittab# inittab is only used by upstart for the default runlevel.## ADDING OTHER CONFIGURATION HERE WI
2013-10-21 15:15:35
2029
原创 System V之我见
在查看很多系统性的文件和资料时,经常谈到system V, 有些是脚本。比如:service(8) service(8)NAME service - run a System V init scriptSYNOPSIS s
2013-10-21 13:19:35
3863
原创 Linux的Service之解析
Linux系统下的服务,可以在/etc/rc.d/init.d目录下查询到。比如常用的Apache服务,对应的是httpd,如果需要启动该服务,就可以使用service命令进行控制。[root@localhost rc.d]# ls -l /etc/rc.d/init.d/total 416-rwxr-xr-x. 1 root root 1708 Aug 26 2010 abr
2013-10-20 22:27:08
4314
原创 如何让Linux成为一台路由器
How to make Linux machine run as a router?默认情况下,Linux机器并不会以路由器的模式跑,而是以host形式运行。让Linux机器以router形式运行,有一定的好处,可以让Linux的某个interface进数据包,查路由表,从另外一个interface路由出去。就像一台真正的路由器。但是可以通过如下ip_forward进行控制?
2013-10-18 17:42:14
939
原创 diff和sdiff使用心得
在Linux下,有很多个文档比较工具,diff,sdiff, comm, cmp等。整体来说都不是很好用。相对而言,还是sdiff功能比较强大一些。Example 1: sdiff -s 1.txt 2. txt-s:--suppress-common-lines:Do not print common lines-w columns--width=co
2013-10-18 15:28:37
4846
原创 IPV6 NAT Translation
-----------------------------------------------------------------------------------------------------------------------------IPV6 NAT inside router-----------------------------------------------
2013-10-16 23:29:30
1049
原创 Telnet: Error opening terminal: network
Python telnet Error opening terminal: network ansi xterm
2010-12-10 12:57:00
1314
1
原创 Perl正则表达式
<br /><!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;}
2010-11-21 14:17:00
600
原创 正则表达式的十二罗汉
<br /><!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;}
2010-11-21 14:05:00
687
原创 python字符串操作(连接、比较、格式化等)
<br /><!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 680460288 22 0 262145 0;}
2010-11-17 09:22:00
770
原创 python获取当前日期前后N天或N月的日期
<br />#!/usr/bin/python''' Filename: "utildate.py"author: "zhangsong"date : "2009-03-24"version: "1.00"'''from time import strftime, localtimefrom datetime import timedelta, dateimport calendaryear = strftime("%Y",localtime())mo
2010-11-16 17:18:00
1300
原创 Perl文件及目录操作
<br /><!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 680460288 22 0 262145 0;}
2010-11-10 09:35:00
585
原创 Perl字符串基本操作详解
<br /><!-- /* Font Definitions */ @font-face {font-family:"MS Mincho"; panose-1:2 2 6 9 4 2 5 8 3 4; mso-font-alt:"MS 明朝"; mso-font-charset:128; mso-generic-font-family:modern; mso-font-pitch:fixed; mso-font-signature:-536870145 1791491
2010-11-10 09:18:00
1250
原创 perl 多行注释
<br /><!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 680460288 22 0 262145 0;}
2010-11-09 17:04:00
971
原创 Perl文件及目录操作
<br /><!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 680460288 22 0 262145 0;}
2010-11-09 15:04:00
729
原创 perl几个读取文件命令
<br /><!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 680460288 22 0 262145 0;}
2010-11-09 14:04:00
726
原创 PERL: 获取system输出
<br />1.使用重定位的方法,比如:system "path >> d://path.txt";然后再对临时文件 path.txt 处理 2.使用 ` (这个是tab上面的`) <br />就是这个东东,弄了好久才搞明白...一定是 TAB 上面的 ` 不是 ~,也不是单引号'my $path = `path`;<br />print $path; 3.使用qx////是分隔符,也可以用其他符号代替,比如!,[],()my $path = qx/path/;<br />print $path;
2010-11-08 16:10:00
1780
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人