- 博客(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
965
原创 IPSec scale config script over Cisco Router
该脚本支持了SVTI模式的config scale from xml.dom import minidom from ftplib import FTP import telnetlib import sys import time import logging import os import re import platform import string class IPSecC
2016-05-23 16:32:53
843
原创 Scale IPSec config over cisco router
Cisco Router 的IPSec配置很复杂,如果需要生成多条tunnel的配置的时候,需要很大的工作量 简单写了一个脚本来生成,看看结果如何把 Limitation: 1. 支持IKEv2 2. 只能在Cisco IOS router上运行 3. Topology: site to site Benifit: 同时生成A和B两个router的配置,赞吧?
2016-05-12 14:48:42
742
原创 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
1538
原创 CSR1000V在XenServer的安装和简单使用
目前主流市场上最火的hyper-v,就是vmware的ESX,Citrix的xenserver, 微软的hyper-v,以及KVM等 虽然国内很多厂家用的都是vmware的虚拟化产品,但是,国外还是很多人在用xenserver。 就尝试着用用xenserver吧 1. 下载ISO 2. 刻录光盘,也可以U盘启动 3. 一步步安装,没有任何悬念,主要就是配置management i
2015-07-30 14:51:55
4677
原创 CCIE RS LAB V5 Verification - Multicast
验证结果: 一定要一会儿收到来自R18的response,一会儿收到来自R19的response SW5#ping 232.1.1.1 source vlan 55 repeat 10 Type 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
1597
原创 路由器上FirewallNonsession丢包原因分析
在ASR1000上出现这样的drop cause,有如下几种原因: 1. firewall session setup rate太快了,内存来不及分配 2. 在这个chassis上,已经达到了firewall最大支持的session数量,无法承载更加多的firewall session 这两种情况下,第一种情况只是瞬时的、暂时的状态,而第二种状态是永久的,一直存在的。 解决
2014-11-20 10:02:56
1757
原创 ZoneBasedFirewall对系统性能影响
ASR1002x-3#show pl hard qfp ac datapath utilization CPP 0: Subdev 0 5 secs 1 min 5 min 60 min Input: Priority (pps) 0 0 0
2014-11-12 14:57:58
1130
原创 路由器taildrop丢包原因总结分析
Taildrop在路由器上是一种非常常见的丢包策略。如果路由器进来数据包的总bps超过了路由器能处理的bps,那么,某些数据包就会被丢弃,而丢包原因就是taildrop。 这种情况下的丢包,和路由器过载无法处理(一般是pps达到了路由器处理的上限)是完全不一样的。路由器因为pps过大导致路由器过载而丢包,这样的包很可能都没有丢包原因的。 下面的这个例子,路由器dataplane的处理能
2014-11-12 12:26:52
9306
原创 NAT和IPSec在思考路由器上的实现
Topology: Client --- Router(NAT) ===IPSec=== Router --- Server Client: 90.1.0.8 NAT Router outside: 90.1.0.1 Server 1: 100.100.100.142 Server 2: 100.100.100.162 Server GW: 1
2014-08-07 11:07:17
4035
原创 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
2168
原创 Cisco 7600 Core Switch useful commands
Cisco7600 core switch useful commands: show module show power show environment temperature all show environment cooling all 1. 显示7600上模块数量以及板卡类别 SBCPERF-7600-1#show module Mod Ports C
2013-10-22 13:48:03
2178
原创 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
2129
原创 System V之我见
在查看很多系统性的文件和资料时,经常谈到system V, 有些是脚本。 比如: service(8) service(8) NAME service - run a System V init script SYNOPSIS s
2013-10-21 13:19:35
3936
原创 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
4408
原创 如何让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
988
原创 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
4943
原创 IPV6 NAT Translation
----------------------------------------------------------------------------------------------------------------------------- IPV6 NAT inside router -----------------------------------------------
2013-10-16 23:29:30
1116
原创 Telnet: Error opening terminal: network
Python telnet Error opening terminal: network ansi xterm
2010-12-10 12:57:00
1408
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
630
原创 正则表达式的十二罗汉
<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
736
原创 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
813
原创 python获取当前日期前后N天或N月的日期
<br />#!/usr/bin/python ''' Filename: "utildate.py" author: "zhangsong" date : "2009-03-24" version: "1.00" ''' from time import strftime, localtime from datetime import timedelta, date import calendar year = strftime("%Y",localtime()) mo
2010-11-16 17:18:00
1376
原创 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
630
原创 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
1323
原创 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
1030
原创 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
770
原创 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
767
原创 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
1838
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅