<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lendy&#039;s Journalized</title>
	<atom:link href="http://lendy.9846.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://lendy.9846.com/blog</link>
	<description>我要的生活</description>
	<lastBuildDate>Mon, 02 Apr 2012 15:25:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Centos6下yum最新php</title>
		<link>http://lendy.9846.com/blog/2012/04/02/centos6-yum-php/</link>
		<comments>http://lendy.9846.com/blog/2012/04/02/centos6-yum-php/#comments</comments>
		<pubDate>Mon, 02 Apr 2012 15:25:10 +0000</pubDate>
		<dc:creator>Lendy</dc:creator>
				<category><![CDATA[Linux&Unix]]></category>

		<guid isPermaLink="false">http://lendy.9846.com/blog/?p=295</guid>
		<description><![CDATA[安装EPEL源: (64位系统) rpm -ivh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm (32位系统) rpm -ivh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm 安装REMI源: rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm 开启REMI,编辑 /etc/yum.repos.d/remi.repo 修改 enable=1 &#160;]]></description>
			<content:encoded><![CDATA[<p>安装EPEL源:</p>
<pre>(64位系统) rpm -ivh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm</pre>
<pre>(32位系统) rpm -ivh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm</pre>
<pre>安装<a title="REMI源" href="http://rpms.famillecollet.com/" target="_blank">REMI</a>源:</pre>
<pre>rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm</pre>
<pre>开启REMI,编辑 /etc/yum.repos.d/remi.repo</pre>
<pre>修改 enable=1</pre>
<pre></pre>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://lendy.9846.com/blog/2012/04/02/centos6-yum-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASA系列防火墙升级全过程详解</title>
		<link>http://lendy.9846.com/blog/2012/03/25/asa-firewall-ios-update/</link>
		<comments>http://lendy.9846.com/blog/2012/03/25/asa-firewall-ios-update/#comments</comments>
		<pubDate>Sun, 25 Mar 2012 08:43:56 +0000</pubDate>
		<dc:creator>Lendy</dc:creator>
				<category><![CDATA[思科产品]]></category>

		<guid isPermaLink="false">http://lendy.9846.com/blog/?p=287</guid>
		<description><![CDATA[asa asa(config)# dir //显示文件目录 copy disk0:/asa707-k8.bin tftp://192.168.1.149/ asa707-k8.bin //将原有IOS文件备份到TFTP服务器上 copy disk0:/asdm507.bin tftp://192.168.1.149/asdm507.bin //将原有asdm文件备份到TFTP服务器上 copy tftp://192.168.1.149/asa803-k8.bin disk0:/asa803-k8.bin //将新的IOS文件从TFTP服务器上拷贝到ASA中 copy tftp://192.168.1.149/asdm-603.bin disk0:/asdm-603.bin //将新的IOS文件从TFTP服务器上拷贝到ASA中 asa(config)# dir //再次显示目录，检查文件是否拷贝成功 asa(config)# no boot system disk0:/asa707-k8.bin //取消原来的启动文件关联 asa(config)# dir asa(config)# boot system disk0:/asa803-k8.bin asa(config)# asdm image disk0:/asdm-603.bin //设置IOS文件及ASDM文件的关联 Device Manager image set, but not a valid image file disk0:/asdm-603.bin //由于新的IOS文件在重新启动前并未生效，所以会提示新的ASDM镜像在设置关联的时候会提示无效。 asa(config)# exit [...]]]></description>
			<content:encoded><![CDATA[<p>asa</p>
<p>asa(config)# dir<br />
//显示文件目录<br />
copy disk0:/asa707-k8.bin tftp://192.168.1.149/ asa707-k8.bin<br />
//将原有IOS文件备份到TFTP服务器上<br />
copy disk0:/asdm507.bin tftp://192.168.1.149/asdm507.bin<br />
//将原有asdm文件备份到TFTP服务器上<br />
copy tftp://192.168.1.149/asa803-k8.bin disk0:/asa803-k8.bin<br />
//将新的IOS文件从TFTP服务器上拷贝到ASA中<br />
copy tftp://192.168.1.149/asdm-603.bin disk0:/asdm-603.bin<br />
//将新的IOS文件从TFTP服务器上拷贝到ASA中<br />
asa(config)# dir<br />
//再次显示目录，检查文件是否拷贝成功<br />
asa(config)# no boot system disk0:/asa707-k8.bin<br />
//取消原来的启动文件关联<br />
asa(config)# dir<br />
asa(config)# boot system disk0:/asa803-k8.bin<br />
asa(config)# asdm image disk0:/asdm-603.bin<br />
//设置IOS文件及ASDM文件的关联<br />
Device Manager image set, but not a valid image file disk0:/asdm-603.bin<br />
//由于新的IOS文件在重新启动前并未生效，所以会提示新的ASDM镜像在设置关联的时候会提示无效。<br />
asa(config)# exit<br />
asa# wr<br />
//保存配置<br />
asa# reload<br />
//重新启动路由器之前新的IOS不会生效</p>
<p>其他还有关于一些周边的环境架设可以参见以后补充的文章<br />
本文出自 “思想的邃空” 博客，请务必保留此出处http://lweibat.blog.51cto.com/525580/128046</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://lendy.9846.com/blog/2012/03/25/asa-firewall-ios-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PIX/ASA 7.x and later: Site to Site (L2L) IPsec VPN with Policy NAT Configuration Example</title>
		<link>http://lendy.9846.com/blog/2012/03/24/279/</link>
		<comments>http://lendy.9846.com/blog/2012/03/24/279/#comments</comments>
		<pubDate>Sat, 24 Mar 2012 09:18:21 +0000</pubDate>
		<dc:creator>Lendy</dc:creator>
				<category><![CDATA[思科产品]]></category>

		<guid isPermaLink="false">http://lendy.9846.com/blog/?p=279</guid>
		<description><![CDATA[http://www.cisco.com/en/US/products/hw/vpndevc/ps2030/products_configuration_example09186a00808c9950.shtml?referring_site=smartnavRD Introduction This document describes the steps used to translate (NAT) the VPN traffic from one end that travel over a LAN-to-LAN (L2L) IPsec tunnel between two security appliances and also PAT the Internet traffic. Each security appliance has a private protected network behind it. The network 192.168.1.0 in PIX-A is translated to 172.18.1.0 network [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cisco.com/en/US/products/hw/vpndevc/ps2030/products_configuration_example09186a00808c9950.shtml?referring_site=smartnavRD">http://www.cisco.com/en/US/products/hw/vpndevc/ps2030/products_configuration_example09186a00808c9950.shtml?referring_site=smartnavRD</a></p>
<h2><a name="intro"></a>Introduction</h2>
<p>This document describes the steps used to translate (NAT) the VPN traffic from one end that travel over a LAN-to-LAN (L2L) IPsec tunnel between two security appliances and also PAT the Internet traffic. Each security appliance has a private protected network behind it.</p>
<p>The network 192.168.1.0 in PIX-A is translated to 172.18.1.0 network and send the VPN traffic through the IPsec tunnel.</p>
<p>In L2L VPN, you can initiate the IPsec tunnel from either side of tunnel end points. In this scenario, PIX-A of inside network (192.168.1.0) is translated to 172.18.1.0 network using Policy NAT for VPN traffic. Because of this translation, the source network of the interesting traffic 172.18.1.0 is not reachable from PIX-B. If you try to initiate the tunnel from the PIX-B, the destination address of the VPN interesting traffic 172.18.1.0 , for example, natted network address of PIX-A, is not reachable. So you must initiate the VPN tunnel only from the PIX-A.<br />
<span id="more-279"></span></p>
<h2><a name="prereq"></a>Prerequisites</h2>
<h3><a name="req"></a>Requirements</h3>
<p>Ensure that you have configured the PIX Security Appliance with IP addresses on the interfaces and have basic connectivity before you proceed with this configuration example.</p>
<h3><a name="hw"></a>Components Used</h3>
<p>The information in this document is based on these software and hardware versions:</p>
<ul>
<li>Cisco PIX 500 Series Security Appliance runs with version 7.x and later</li>
</ul>
<p>The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.</p>
<h3><a name="rel"></a>Related Products</h3>
<p>This configuration can also be used with Cisco 5500 Series Adaptive Security Appliance runs with software version 7.x and later.</p>
<h3><a name="conv"></a>Conventions</h3>
<p>Refer to the <a href="http://www.cisco.com/en/US/tech/tk801/tk36/technologies_tech_note09186a0080121ac5.shtml">Cisco Technical Tips Conventions</a> for more information on document conventions.</p>
<h2><a name="conf"></a>Configure</h2>
<p>In this section, you are presented with the information to configure the features described in this document.</p>
<p><strong>Note: </strong>Use the <a href="http://tools.cisco.com/Support/CLILookup/cltSearchAction.do">Command Lookup Tool</a> (<a href="http://tools.cisco.com/RPF/register/register.do">registered</a> customers only) in order to obtain more information on the commands used in this section.</p>
<h3><a name="diag"></a>Network Diagram</h3>
<p>This document uses this network setup:</p>
<p><img src="http://lendy.9846.com/blog/wp-content/uploads/2012/03/092244TAE.gif" alt="/image/gif/paws/99122/pixasa7x-vpn-nat-config.gif" usemap="http://www.cisco.com/en/US/products/hw/vpndevc/ps2030/products_configuration_example09186a00808c9950.shtml?referring_site=smartnavRD" border="0" /></p>
<h3><a name="configs"></a>Configurations</h3>
<p>This document uses these configurations:</p>
<ul>
<li><a href="http://www.cisco.com/en/US/products/hw/vpndevc/ps2030/products_configuration_example09186a00808c9950.shtml?referring_site=smartnavRD#pixa">PIX-A Configuration</a></li>
<li><a href="http://www.cisco.com/en/US/products/hw/vpndevc/ps2030/products_configuration_example09186a00808c9950.shtml?referring_site=smartnavRD#pixb">PIX-B Configuration</a></li>
</ul>
<table width="60%" border="1" cellspacing="1" cellpadding="3" bgcolor="#FFFFFF">
<tbody>
<tr>
<th rowspan="1" colspan="1" bgcolor="#CCCCFF" width="" height="">PIX-A</th>
</tr>
<tr>
<td rowspan="1" colspan="1" bgcolor="#FFFFFF" width="" height="">
<pre>PIX-A#<strong>show running-config</strong>
: Saved
:
PIX Version 7.1(1)
!
hostname PIX-A
enable password 8Ry2YjIyt7RRXU24 encrypted
names
!
interface Ethernet0
 nameif outside
 security-level 0
 ip address 172.17.1.1 255.255.255.0
<em> <span style="color: #0000ff;">!--- Configure the outside interface.</span> </em>
!

interface Ethernet1
 nameif inside
 security-level 100
 ip address 192.168.1.1 255.255.255.0
<em> <span style="color: #0000ff;">!--- Configure the inside interface.</span> </em>

passwd 2KFQnbNIdI.2KYOU encrypted
ftp mode passive

access-list new extended permit ip 172.18.1.0 255.255.255.0 10.1.0.0 255.255.255.0
<em> <span style="color: #0000ff;">!--- This access list(new) is used with the crypto map (outside_map) !--- in order to determine which traffic should be encrypted !--- and sent across the tunnel.</span> </em>

<strong>access-list policy-nat extended permit ip 192.168.1.0 255.255.255.0 10.1.0.0 255.255.255.0</strong>

<em> <span style="color: #0000ff;">!--- The policy-nat ACL is used with the <strong>static</strong> !--- command in order to match the VPN traffic for translation. </span> </em>
pager lines 24
mtu outside 1500
mtu inside 1500
no failover
asdm image flash:/asdm-511.bin
no asdm history enable
arp timeout 14400

<strong>static (inside,outside) 172.18.1.0 access-list policy-nat</strong>
<em> <span style="color: #0000ff;">!--- It is a Policy NAT statement. !--- The <strong>static</strong> command with the access list (policy-nat), !--- which matches the VPN traffic and translates the source (192.168.1.0) to 172.18.1.0 !--- for outbound VPN traffic</span> </em>

global (outside) 1 172.19.1.1
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
<em> <span style="color: #0000ff;">!--- The above statements will PAT the internet traffic !--- except the VPN traffic using the IP address 172.19.1.1 </span> </em>
route outside 0.0.0.0 0.0.0.0 172.17.1.2 1

<em> <span style="color: #0000ff;">!--- Output suppressed</span> </em>

<em> <span style="color: #0000ff;">!--- PHASE 2 CONFIGURATION ---! !--- The encryption types for Phase 2 are defined here.</span> </em>
crypto ipsec transform-set ESP-AES-256-SHA esp-aes-256 esp-sha-hmac
<em> <span style="color: #0000ff;">!--- Define the transform set for Phase 2.</span> </em>
crypto map outside_map 20 match address new
<em> <span style="color: #0000ff;">!--- Define which traffic should be sent to the IPsec peer with the !-- access list (new). </span> </em>
crypto map outside_map 20 set peer 172.16.1.2
<em> <span style="color: #0000ff;">!--- Sets the IPsec peer (remote end point)</span> </em>
crypto map outside_map 20 set transform-set ESP-AES-256-SHA
<em> <span style="color: #0000ff;">!--- Sets the IPsec transform set "ESP-AES-256-SHA" !--- to be used with the crypto map entry "outside_map"</span> </em>
crypto map outside_map interface outside
<em> <span style="color: #0000ff;">!--- Specifies the interface to be used with !--- the settings defined in this configuration !--- PHASE 1 CONFIGURATION ---! !--- This configuration uses isakmp policy 10. !--- Policy 65535 is included in the configuration by default. !--- These configuration commands define the !--- Phase 1 policy parameters that are used.</span> </em>
isakmp identity address
isakmp enable outside
isakmp policy 10 authentication pre-share
isakmp policy 10 encryption aes-256
isakmp policy 10 hash sha
isakmp policy 10 group 5
isakmp policy 10 lifetime 86400

isakmp policy 65535 authentication pre-share
isakmp policy 65535 encryption 3des
isakmp policy 65535 hash sha
isakmp policy 65535 group 2
isakmp policy 65535 lifetime 86400

tunnel-group 172.16.1.2 type ipsec-l2l
<em> <span style="color: #0000ff;">!--- In order to create and manage the database of connection-specific records !--- for ipsec-l2l—IPsec (LAN-to-LAN) tunnels, use the <strong>tunnel-group</strong> !--- command in global configuration mode. !--- For L2L connections, the name of the tunnel group <strong>must</strong> be !--- the IP address of the IPsec peer (remote peer end).</span> </em>
tunnel-group 172.16.1.2 ipsec-attributes
 pre-shared-key *
<em> <span style="color: #0000ff;">!--- Enter the pre-shared key in order to configure the authentication method. </span> </em>

telnet timeout 5
ssh timeout 5
console timeout 0
!
class-map inspection_default
 match default-inspection-traffic
!
!
policy-map global_policy
 class inspection_default
  inspect dns maximum-length 512
  inspect ftp
  inspect h323 h225
  inspect h323 ras
  inspect netbios
  inspect rsh
  inspect rtsp
  inspect skinny
  inspect esmtp
  inspect sqlnet
  inspect sunrpc
  inspect tftp
  inspect sip
  inspect xdmcp
!
service-policy global_policy global
Cryptochecksum:33e1e37cd1280d908210dac0cc26e706
: end</pre>
</td>
</tr>
</tbody>
</table>
<p><a name="pixa"></a><a name="pixb"></a></p>
<table width="60%" border="1" cellspacing="1" cellpadding="3" bgcolor="#FFFFFF">
<tbody>
<tr>
<th rowspan="1" colspan="1" bgcolor="#CCCCFF" width="659" height="">PIX-B</th>
</tr>
<tr>
<td rowspan="1" colspan="1" bgcolor="#FFFFFF" width="659" height="">
<pre>PIX-B#<strong>show running-config</strong>
: Saved
:
PIX Version 8.0(2)
!
hostname PIX-B
enable password 8Ry2YjIyt7RRXU24 encrypted
names
!
interface Ethernet0
 nameif outside
 security-level 0
 ip address 172.16.1.2 255.255.255.0
!
interface Ethernet1
 nameif inside
 security-level 100
 ip address 10.1.0.1 255.255.255.0
!
<em> <span style="color: #0000ff;">!--- Output Suppressed</span> </em>

access-list 102 extended permit ip 10.1.0.0 255.255.255.0 172.18.1.0 255.255.255.0
<em> <span style="color: #0000ff;">!--- This access list (102) is used with the crypto map !--- outside_map in order to determine which traffic should be encrypted !--- and sent across the tunnel.</span> </em>
access-list no-nat extended permit ip 10.1.0.0 255.255.255.0 172.18.1.0 255.255.255.0
<em> <span style="color: #0000ff;">!--- This access list (no-nat) is used with the !--- <strong>nat zero</strong> command. !--- This prevents traffic, which matches the access list, from undergoing !--- network address translation (NAT). </span> </em>

global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
<em> <span style="color: #0000ff;">!--- The previous statements PAT the internet traffic !--- except the VPN traffic that uses the outside interface IP address </span> </em>

nat (inside) 0 access-list no-nat

<em> <span style="color: #0000ff;">!--- NAT 0 prevents NAT for networks specified in the ACL (no-nat).</span> </em>

route outside 0.0.0.0 0.0.0.0 172.16.1.1 1
<em> <span style="color: #0000ff;">!--- PHASE 2 CONFIGURATION ---! !--- The encryption types for Phase 2 are defined here.</span> </em>
crypto ipsec transform-set ESP-AES-256-SHA esp-aes-256 esp-sha-hmac
<em> <span style="color: #0000ff;">!--- Define the transform set for Phase 2.</span> </em>

crypto map outside_map 20 match address 102
<em> <span style="color: #0000ff;">!--- Define which traffic should be sent to the IPsec peer.</span> </em>

crypto map outside_map 20 set peer 172.17.1.1
<em> <span style="color: #0000ff;">!--- Sets the IPsec peer</span> </em>

crypto map outside_map 20 set transform-set ESP-AES-256-SHA
<em> <span style="color: #0000ff;">!--- Sets the IPsec transform set "ESP-AES-256-SHA" !--- to be used with the crypto map entry "outside_map"</span> </em>

crypto map outside_map interface outside
<em> <span style="color: #0000ff;"> !--- Specifies the interface to be used with !--- the settings defined in this configuration !--- PHASE 1 CONFIGURATION ---! !--- This configuration uses isakmp policy 10. !--- Policy 65535 is included in the config by default. !--- The configuration commands here define the !--- Phase 1 policy parameters that are used. </span> </em>

crypto isakmp identity address
crypto isakmp enable outside
crypto isakmp policy 10
 authentication pre-share
 encryption aes-256
 hash sha
 group 5
 lifetime 86400

crypto isakmp policy 65535
 authentication pre-share
 encryption 3des
 hash sha
 group 2
 lifetime 86400
no crypto isakmp nat-traversal
<em> <span style="color: #0000ff;">!--- Output suppressed</span> </em>

<em> <span style="color: #0000ff;">!--- In order to create and manage the database of connection-specific !--- records for ipsec-l2l—IPsec (LAN-to-LAN) tunnels, use the !--- <strong>tunnel-group </strong> command in global configuration mode. !--- For L2L connections the name of the tunnel group <strong>must</strong> be !--- the IP address of the IPsec peer.</span> </em>

tunnel-group 172.17.1.1 type ipsec-l2l
tunnel-group 172.17.1.1 ipsec-attributes
 pre-shared-key *
<em> <span style="color: #0000ff;">!--- Enter the pre-shared key in order to configure the authentication method. </span> </em>

prompt hostname context
Cryptochecksum:6b505b4a05c1aee96a71e67c23e71865
: end</pre>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h2><a name="pixb"></a><a name="veri"></a>Verify</h2>
<p>Use this section in order to confirm that your configuration works properly.</p>
<p>The <a href="https://www.cisco.com/cgi-bin/Support/OutputInterpreter/home.pl">Output Interpreter Tool</a> (<a href="http://tools.cisco.com/RPF/register/register.do">registered</a> customers only) (OIT) supports certain <strong>show</strong> commands. Use the OIT in order to view an analysis of <strong>show</strong> command output.</p>
<ul>
<li><strong>show crypto isakmp sa</strong>—Shows all current IKE Security Associations (SAs) at a peer.</li>
<li><strong>show crypto ipsec sa</strong>—Shows the settings used by current SAs.</li>
</ul>
<p><strong>Sample</strong></p>
<h3><a name="pixad"></a>Show Commands from PIX-A</h3>
<blockquote>
<pre>PIX-A#<strong>show crypto isakmp sa</strong>

   Active SA: 1
    Rekey SA: 0 (A tunnel will report 1 Active and 1 Rekey SA during rekey)
Total IKE SA: 1

1   IKE Peer: 172.16.1.2
    Type    : L2L             Role    : initiator
    Rekey   : no              State   : MM_ACTIVE</pre>
</blockquote>
<blockquote>
<pre>PIX-A#<strong>show crypto ipsec sa</strong>
interface: outside
    Crypto map tag: outside_map, seq num: 20, local addr: 172.17.1.1

      access-list new permit ip 172.18.1.0 255.255.255.0 10.1.0.0 255.255.255.0
      local ident (addr/mask/prot/port): (172.18.1.0/255.255.255.0/0/0)
      remote ident (addr/mask/prot/port): (10.1.0.0/255.255.255.0/0/0)
      current_peer: 172.16.1.2

      #pkts encaps: 9, #pkts encrypt: 9, #pkts digest: 9
      #pkts decaps: 9, #pkts decrypt: 9, #pkts verify: 9
      #pkts compressed: 0, #pkts decompressed: 0
      #pkts not compressed: 9, #pkts comp failed: 0, #pkts decomp failed: 0
      #send errors: 0, #recv errors: 0

      local crypto endpt.: 172.17.1.1, remote crypto endpt.: 172.16.1.2

      path mtu 1500, ipsec overhead 76, media mtu 1500
      current outbound spi: 95D66663

    inbound esp sas:
      spi: 0x9A4CB431 (2588718129)
         transform: esp-aes-256 esp-sha-hmac
         in use settings ={L2L, Tunnel, }
         slot: 0, conn_id: 1, crypto-map: outside_map
         sa timing: remaining key lifetime (kB/sec): (4274999/28758)
         IV size: 16 bytes
         replay detection support: Y
    outbound esp sas:
      spi: 0x95D66663 (2513856099)
         transform: esp-aes-256 esp-sha-hmac
         in use settings ={L2L, Tunnel, }
         slot: 0, conn_id: 1, crypto-map: outside_map
         sa timing: remaining key lifetime (kB/sec): (4274999/28756)
         IV size: 16 bytes
         replay detection support: Y</pre>
</blockquote>
<blockquote>
<pre>PIX-A#<strong>show nat</strong>

NAT policies on Interface inside:
  match ip inside 192.168.1.0 255.255.255.0 outside 10.1.0.0 255.255.255.0
    static translation to 172.18.1.0
    translate_hits = 5, untranslate_hits = 5</pre>
</blockquote>
<blockquote>
<pre>PIX-A#<strong>show xlate</strong>
1 in use, 2 most used
Global 172.18.1.0 Local 192.168.1.0</pre>
</blockquote>
<h3><a name="pixbf"></a>Show Commands from PIX-B</h3>
<blockquote>
<pre>PIX-B#<strong>show crypto ipsec sa</strong>
interface: outside
    Crypto map tag: outside_map, seq num: 20, local addr: 172.16.1.2

      access-list 102 permit ip 10.1.0.0 255.255.255.0 172.18.1.0 255.255.255.0
      local ident (addr/mask/prot/port): (10.1.0.0/255.255.255.0/0/0)
      remote ident (addr/mask/prot/port): (172.18.1.0/255.255.255.0/0/0)
      current_peer: 172.17.1.1

      #pkts encaps: 14, #pkts encrypt: 14, #pkts digest: 14
      #pkts decaps: 14, #pkts decrypt: 14, #pkts verify: 14
      #pkts compressed: 0, #pkts decompressed: 0
      #pkts not compressed: 14, #pkts comp failed: 0, #pkts decomp failed: 0
      #pre-frag successes: 0, #pre-frag failures: 0, #fragments created: 0
      #PMTUs sent: 0, #PMTUs rcvd: 0, #decapsulated frgs needing reassembly: 0
      #send errors: 0, #recv errors: 0

      local crypto endpt.: 172.16.1.2, remote crypto endpt.: 172.17.1.1

      path mtu 1500, ipsec overhead 74, media mtu 1500
      current outbound spi: 9A4CB431

    inbound esp sas:
      spi: 0x95D66663 (2513856099)
         transform: esp-aes-256 esp-sha-hmac none
         in use settings ={L2L, Tunnel, }
         slot: 0, conn_id: 16384, crypto-map: outside_map
         sa timing: remaining key lifetime (kB/sec): (3824998/28712)
         IV size: 16 bytes
         replay detection support: Y
    outbound esp sas:
      spi: 0x9A4CB431 (2588718129)
         transform: esp-aes-256 esp-sha-hmac none
         in use settings ={L2L, Tunnel, }
         slot: 0, conn_id: 16384, crypto-map: outside_map
         sa timing: remaining key lifetime (kB/sec): (3824998/28712)
         IV size: 16 bytes
         replay detection support: Y</pre>
</blockquote>
<blockquote>
<pre>PIX-B#<strong>show crypto isakmp sa</strong>

   Active SA: 1
    Rekey SA: 0 (A tunnel will report 1 Active and 1 Rekey SA during rekey)
Total IKE SA: 1

1   IKE Peer: 172.17.1.1
    Type    : L2L             Role    : responder
    Rekey   : no              State   : MM_ACTIVE</pre>
</blockquote>
<h2><a name="tshoot"></a>Troubleshoot</h2>
<h3><a name="coomm"></a>Clear Security Associations</h3>
<p>When you troubleshoot, be sure to clear existing Security Associations after you make a change. In the privileged mode of the PIX, use these commands:</p>
<ul>
<li><strong>clear crypto ipsec sa</strong>—Deletes the active IPsec SAs.</li>
<li><strong>clear crypto isakmp sa</strong>—Deletes the active IKE SAs.</li>
</ul>
<h3><a name="comm"></a>Troubleshooting Commands</h3>
<p>The <a href="https://www.cisco.com/cgi-bin/Support/OutputInterpreter/home.pl">Output Interpreter Tool</a> (<a href="http://tools.cisco.com/RPF/register/register.do">registered</a> customers only) (OIT) supports certain <strong>show</strong> commands. Use the OIT in order to view an analysis of <strong>show</strong> command output.</p>
<p><strong>Note: </strong>Refer to <a href="http://www.cisco.com/en/US/tech/tk801/tk379/technologies_tech_note09186a008017874c.shtml">Important Information on Debug Commands</a> before you use <strong>debug</strong> commands.</p>
<ul>
<li><strong>debug crypto ipsec</strong>—Displays the IPsec negotiations of Phase 2.</li>
<li><strong>debug crypto isakmp</strong>—Displays the ISAKMP negotiations of Phase 1.</li>
</ul>
<h2><a name="NetPro"></a>Cisco Support Community &#8211; Featured Conversations</h2>
<p><a href="https://supportforums.cisco.com/index.jspa">Cisco Support Community</a> is a forum for you to ask and answer questions, share suggestions, and collaborate with your peers. Below are just some of the most recent and relevant conversations happening right now.</p>
]]></content:encoded>
			<wfw:commentRss>http://lendy.9846.com/blog/2012/03/24/279/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>电话</title>
		<link>http://lendy.9846.com/blog/2012/02/27/%e7%94%b5%e8%af%9d/</link>
		<comments>http://lendy.9846.com/blog/2012/02/27/%e7%94%b5%e8%af%9d/#comments</comments>
		<pubDate>Mon, 27 Feb 2012 11:07:04 +0000</pubDate>
		<dc:creator>Lendy</dc:creator>
				<category><![CDATA[生活娱乐]]></category>

		<guid isPermaLink="false">http://lendy.9846.com/blog/?p=275</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><img title="1330340809794.jpg" class="alignnone" alt="image" src="http://lendy.9846.com/blog/wp-content/uploads/2012/02/wpid-1330340809794.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://lendy.9846.com/blog/2012/02/27/%e7%94%b5%e8%af%9d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>平安夜平安</title>
		<link>http://lendy.9846.com/blog/2011/12/24/%e5%b9%b3%e5%ae%89%e5%a4%9c%e5%b9%b3%e5%ae%89/</link>
		<comments>http://lendy.9846.com/blog/2011/12/24/%e5%b9%b3%e5%ae%89%e5%a4%9c%e5%b9%b3%e5%ae%89/#comments</comments>
		<pubDate>Sat, 24 Dec 2011 10:46:10 +0000</pubDate>
		<dc:creator>Lendy</dc:creator>
				<category><![CDATA[生活娱乐]]></category>
		<category><![CDATA[圣诞，平安夜]]></category>

		<guid isPermaLink="false">http://lendy.9846.com/blog/?p=270</guid>
		<description><![CDATA[平安夜平安]]></description>
			<content:encoded><![CDATA[<p><img style="display:block;margin-right:auto;margin-left:auto;" alt="image" src="http://lendy.9846.com/blog/wp-content/uploads/2011/12/wpid-1324723440881.jpg" /></p>
<p>平安夜平安</p>
]]></content:encoded>
			<wfw:commentRss>http://lendy.9846.com/blog/2011/12/24/%e5%b9%b3%e5%ae%89%e5%a4%9c%e5%b9%b3%e5%ae%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>复制工具robocopy</title>
		<link>http://lendy.9846.com/blog/2011/11/05/copy-tool-robocopy/</link>
		<comments>http://lendy.9846.com/blog/2011/11/05/copy-tool-robocopy/#comments</comments>
		<pubDate>Sat, 05 Nov 2011 12:15:02 +0000</pubDate>
		<dc:creator>Lendy</dc:creator>
				<category><![CDATA[微软产品]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[robocopy]]></category>
		<category><![CDATA[复制]]></category>

		<guid isPermaLink="false">http://lendy.9846.com/blog/?p=261</guid>
		<description><![CDATA[参考文章： Robocopy入门 文件拷贝、备份、传输的瑞士军刀 随心所欲玩复制 详解robocopy (一) 随心所欲玩复制 详解robocopy (二) http://technet.microsoft.com/zh-cn/magazine/2006.11.utilityspotlight.aspx  UtilitySpotlight2006_11 robocopy 说实话，Windows系统自带的复制功能不仅功能简单，而且定制性也不强，每每在对大量文件进行复制、移动、备份时，总少不了繁杂往复的操作。不过幸好，微软意识到了这一点，为我们提供了一款很强力的复制备份工具：robocopy。 robocopy已被Windows Vista、Windows 7以及Windows Server 2008所集成，网上有网友制作的GUI，有兴趣的童鞋可以下载尝试一下。另外，还在使用xp的童鞋直接在网上下载robocopy GUI吧。 robocopy GUI下载地址：http://www.brothersoft.com/robocopy-gui-105335.html 运行方法有很多种，可以使用Win+R，在“运行”窗口中直接输入命令；或者先启动CMD命令提示符，在命令提示符窗口中输入命令；另外一种则是在文本编辑器（如：记事本）中输入相应命令，保存为*.bat批处理文件双击运行即可。 推荐使用批处理文件，这样子不仅方便了我们保存和修改，还方便了随时随地进行调用。 废话不多说，下面我们就开始实战练习。 今天一早，经理从Boss那里得到一个任务，说是公司要对一个项目制作一些文档，需要这个项目的一些原始资料。于是，这个任务又从经理那里下派到我手上，按他的要求，需要尽可能快的从有关文件夹中取出合适的内容，并且复制到他U盘（盘符为H）Project文件夹中。其具体要求是整理出：txt文本文件、Word文档、JPG、BMP、TIF图像。他倒是说得简单，我面对的可是一个有上百个子文件夹至少5层目录结构的超级复杂文件目录树。 好吧，为了能顺利完成，放第一招： 第一招 我想咋复制就咋复制 robocopy D:\Document H:\Project *.txt *.doc *.jpg *.bmp *.tif /s 说明： 参数”/s”的作用是“除了空文件夹以外的所有子目录”。若要将文件夹下的所有文件（包括空文件夹）全部复制到目标文件夹，则上述命令应改为： robocopy D:\Document E:\Home /e 此处参数”/e”的表示所有子目录（包括空文件夹）。 第一个任务很顺利就完成，经理把我叫到办公室，对我的执行效率表示出非常满意，我长出一口气，气刚出到一半，经理就开口了：“还要做个项目概览，你去把一二级目录下的内容再单独整理出来，还拷贝到我的U盘里。”我晕…… 刚才小试牛刀，现在见招拆招，放第二招： 第二招 复制文件随心所欲 robocopy D:\Document H:\Project *.txt *.doc *.jpg *.bmp *.tif /s /lev:2 说明： 参数”/lev”表示复制的层级，比如指定为2级，则两层目录下的文件会被复制，更多级下面的则会被忽略。 经过一番折腾，经理对我的满意度算是越来越高了，但对于他而言，总是有解决不尽、也永远搞不清的问题，诸如他会在家选择文件之后按下Ctrl+C，然后第二天来公司在公司电脑上猛按Crtl+V。哎，这不，他又有新问题了。经过刚才几次复制，他那弱小的U盘已经经不起更多折腾，肚子塞的满满的，可是还有大批文件需要用U盘拷贝，经理他就挠着头，想啊想，想啊想，终于想出一个办法来，先把不用的文件拷贝到计算机上，再把垃圾文件删除掉！嗯~还真是个好办法，于是乎，他又叫来了我…… 同样，怕什么~~~接着放招： 第三招 垃圾文件我可不要 其实实现这个要求很简单，直接在复制的过程中筛选出垃圾文件并且deny掉就好啦~ 用如下命令吧： robocopy H:\Work D:\Work /e /xf *.tmp *.bak 说明： 参数”/xf”意为指定不执行复制操作的文件类型，文件名支持通配符。如果使用参数”/xd”，则表示排除指定的文件夹。 又一项任务顺利完成，我哼着小曲回到了自己的办公室，安安稳稳的坐在椅子上听起音乐。一个上午连续被经理所赞赏，那心情叫一个好啊，索性就用音箱吧~动人的旋律不仅飘到我耳朵里，也到了隔壁同事耳朵里，这不，隔壁同事又来了，他表示对我艺术审美很是赞赏，同时，还想拷走我所有音乐文件…… 天，我的音乐文件夹有好几个G之大，而他拿来的U盘才有碎碎的2G，这可怎么是好呢~ 想来想去，他觉得只好忍痛割爱，不要MV了。只是还有一个问题，如果用文件类型排除，那将非常麻烦，在这种情况下，我选择了以下方法： 第四招 大文件我也不要 robocopy F:\music H:\music /e /max:10000000 [...]]]></description>
			<content:encoded><![CDATA[<p>参考文章：<br />
<a href="http://www.5dmail.net/html/2011-6-9/201169164730.htm">Robocopy入门 文件拷贝、备份、传输的瑞士军刀<br />
</a><a href="http://marui.blog.51cto.com/1034148/296473">随心所欲玩复制 详解robocopy (一)<br />
</a><a title="随心所欲玩复制 详解robocopy (二) " href="http://marui.blog.51cto.com/1034148/297397">随心所欲玩复制 详解robocopy (二)<br />
</a><a href="http://technet.microsoft.com/zh-cn/magazine/2006.11.utilityspotlight.aspx">http://technet.microsoft.com/zh-cn/magazine/2006.11.utilityspotlight.aspx</a><a title="随心所欲玩复制 详解robocopy (二) " href="http://marui.blog.51cto.com/1034148/297397"> </a></p>
<p><span id="more-261"></span><a href="http://lendy.9846.com/blog/wp-content/uploads/2011/11/UtilitySpotlight2006_11.zip">UtilitySpotlight2006_11<br />
</a><a href="http://lendy.9846.com/blog/wp-content/uploads/2011/11/robocopy.zip">robocopy</a></p>
<div>
<p>说实话，Windows系统自带的复制功能不仅功能简单，而且定制性也不强，每每在对大量文件进行复制、移动、备份时，总少不了繁杂往复的操作。不过幸好，微软意识到了这一点，为我们提供了一款很强力的复制备份工具：robocopy。</p>
<p>robocopy已被Windows Vista、Windows 7以及Windows Server 2008所集成，网上有网友制作的GUI，有兴趣的童鞋可以下载尝试一下。另外，还在使用xp的童鞋直接在网上下载robocopy GUI吧。</p>
<p>robocopy GUI下载地址：<a href="http://www.brothersoft.com/robocopy-gui-105335.html">http://www.brothersoft.com/robocopy-gui-105335.html</a></p>
<p>运行方法有很多种，可以使用Win+R，在“运行”窗口中直接输入命令；或者先启动CMD命令提示符，在命令提示符窗口中输入命令；另外一种则是在文本编辑器（如：记事本）中输入相应命令，保存为*.bat批处理文件双击运行即可。</p>
<p>推荐使用批处理文件，这样子不仅方便了我们保存和修改，还方便了随时随地进行调用。</p>
<p><strong>废话不多说，下面我们就开始实战练习。</strong></p>
<hr />
<p><strong>今</strong>天一早，经理从Boss那里得到一个任务，说是公司要对一个项目制作一些文档，需要这个项目的一些原始资料。于是，这个任务又从经理那里下派到我手上，按他的要求，需要尽可能快的从有关文件夹中取出合适的内容，并且复制到他U盘（盘符为H）Project文件夹中。其具体要求是整理出：txt文本文件、Word文档、JPG、BMP、TIF图像。他倒是说得简单，我面对的可是一个有上百个子文件夹至少5层目录结构的超级复杂文件目录树。</p>
<p>好吧，为了能顺利完成，放第一招：</p>
<p><strong>第一招 我想咋复制就咋复制</strong></p>
<p>robocopy D:\Document H:\Project *.txt *.doc *.jpg *.bmp *.tif /s</p>
<p><strong>说明：</strong></p>
<p>参数”/s”的作用是“除了空文件夹以外的所有子目录”。若要将文件夹下的所有文件（包括空文件夹）全部复制到目标文件夹，则上述命令应改为：</p>
<p>robocopy D:\Document E:\Home /e</p>
<p>此处参数”/e”的表示所有子目录（包括空文件夹）。</p>
<hr />
<p><strong>第</strong>一个任务很顺利就完成，经理把我叫到办公室，对我的执行效率表示出非常满意，我长出一口气，气刚出到一半，经理就开口了：“还要做个项目概览，你去把一二级目录下的内容再单独整理出来，还拷贝到我的U盘里。”我晕……</p>
<p>刚才小试牛刀，现在见招拆招，放第二招：</p>
<p><strong>第二招 复制文件随心所欲</strong></p>
<p>robocopy D:\Document H:\Project *.txt *.doc *.jpg *.bmp *.tif /s /lev:2</p>
<p><strong>说明：</strong></p>
<p>参数”/lev”表示复制的层级，比如指定为2级，则两层目录下的文件会被复制，更多级下面的则会被忽略。</p>
<hr />
<p><strong>经</strong>过一番折腾，经理对我的满意度算是越来越高了，但对于他而言，总是有解决不尽、也永远搞不清的问题，诸如他会在家选择文件之后按下Ctrl+C，然后第二天来公司在公司电脑上猛按Crtl+V。哎，这不，他又有新问题了。经过刚才几次复制，他那弱小的U盘已经经不起更多折腾，肚子塞的满满的，可是还有大批文件需要用U盘拷贝，经理他就挠着头，想啊想，想啊想，终于想出一个办法来，先把不用的文件拷贝到计算机上，再把垃圾文件删除掉！嗯~还真是个好办法，于是乎，他又叫来了我……</p>
<p>同样，怕什么~~~接着放招：</p>
<p><strong>第三招 垃圾文件我可不要</strong></p>
<p>其实实现这个要求很简单，直接在复制的过程中筛选出垃圾文件并且deny掉就好啦~</p>
<p>用如下命令吧：</p>
<p>robocopy H:\Work D:\Work /e /xf *.tmp *.bak</p>
<p><strong>说明：</strong></p>
<p>参数”/xf”意为指定不执行复制操作的文件类型，文件名支持通配符。如果使用参数”/xd”，则表示排除指定的文件夹。</p>
<hr />
<p><strong>又</strong>一项任务顺利完成，我哼着小曲回到了自己的办公室，安安稳稳的坐在椅子上听起音乐。一个上午连续被经理所赞赏，那心情叫一个好啊，索性就用音箱吧~动人的旋律不仅飘到我耳朵里，也到了隔壁同事耳朵里，这不，隔壁同事又来了，他表示对我艺术审美很是赞赏，同时，还想拷走我所有音乐文件……</p>
<p>天，我的音乐文件夹有好几个G之大，而他拿来的U盘才有碎碎的2G，这可怎么是好呢~</p>
<p>想来想去，他觉得只好忍痛割爱，不要MV了。只是还有一个问题，如果用文件类型排除，那将非常麻烦，在这种情况下，我选择了以下方法：</p>
<p><strong>第四招 大文件我也不要</strong></p>
<p>robocopy F:\music H:\music /e /max:10000000</p>
<p><strong>说明：</strong></p>
<p>使用参数”/max”，可以选择文件大小上限，其单位为byte。如果是”/min”，限定了文件大小的下限。两个参数可以同时使用，限制出所需复制的文件大小的范围。</p>
<p><strong>复制指定修改时间的文件</strong></p>
<p>在日常使用中，免不了要通过文件修改时间筛选出最近的文件。如何实现此功能？通过下列命令：</p>
<p>robocopy D:\Document H:\Project /maxage:5</p>
<p>此条命令的意思为将D:Document下修改时间在5天内的文件复制到H:Project下。</p>
<p>参数”/maxage”表示距离今天最远的修改时间，凡是修改时间比这个限制还要早的那些文件都不会被复制。参数”/maxage”可以接受的字符有数字，或者是日期，表示天数时数字要小于1900，表示日期时需要使用”YYYYMMDD”格式。另外一个与之相对应的参数是”/minage”，表示距离今天最近的修改时间限制，比这个时间新的文件将不被复制。</p>
<p>因此，我们在实用环境下可以利用”/maxage”和”/minage”来共同限制时间范围。如下例：</p>
<p>robocopy D:\Document H:\Project /maxage:5 /minage:1</p>
<p>此命令则将欲复制的文件范围限定在修改时间在除今天意外的5天以内（是不是有点绕口……我实在描述不清楚了，各位看官请意会吧）。</p>
<p><strong>完全拷贝</strong></p>
<p>在Windows默认的复制粘贴下，如果已存在一个同名文件夹，系统会进行增量复制，而不会进行文件夹的替换操作。如果我们需要使目标文件夹与源文件夹完全相同，也就是说在复制的同时也删除在目标文件夹里存在但源文件夹里并没有的文件。则需要使用以下命令：</p>
<p>robocopy D:\Document H:\Project /mir</p>
<p>参数”/mir”的作用等同于”/purge /e”，”/purge”表示清理目标文件夹内有而源文件夹里没有的文件和文件夹。通过这个命令，能保证源文件夹和目标文件夹在结构与内容上完全相同。此参数对于创建镜像备份时是非常有用的。</p>
<p><strong>移动文件</strong></p>
<p>需要移动文件夹，也就是剪贴，需要使用另外两个参数，先看下例：</p>
<p>robocopy D:\Document H:\Project /move /e</p>
<p>参数”/move”意为移动，而”/e”则表示复制所有子目录包括空文件夹（这一点上篇文章有讲）。</p>
<p><strong>只拷贝文档结构</strong></p>
<p>有时我们只需要拷贝一个多级目录的目录树，或者说只需要它的结构，而不需要它的内容，参考如下命令：</p>
<p>robocopy c:\windows /s /create c:\empty\windows</p>
<p>这样，我们就创建了整个Windows文件夹的目录结构。其中，使用了”/creat”参数，此参数作用即为生成空的文件结构。</p>
<p>还有另外一种剑走偏锋的实现方法：</p>
<p>robocopy c:\windows c:\empty\windows /e /lev:5 /minage:19000101</p>
<p>这是使用了普通的复制方法，指定5层目录，但是却限制了一个机器上不可能有的一个文件修改日期。这样，robocopy就只会拷贝走目录结构，因无文件符合其修改时间限制，因而不会有文件被复制。</p>
<p><strong>不复制隐藏文件</strong></p>
<p>个别情况下文件夹中存在隐私内容，在复制的同时又希望被ignore，因为robocopy支持属性操作，所以只需调用相关参数即可。见下例：</p>
<p>robocopy D:\Photo H:\Photo /e /xa:h</p>
<p>参数”/xa:h”表示将具有隐藏属性的排除出欲复制的范围，与之相对应的是参数”/ia”，表示只复制包括指定属性的文件。</p>
<p>可用的属性有；R只读、A存档、S系统、H隐藏等。</p>
<p>robocopy C:\windows F:\WindowsSysFile /ia:rs</p>
<p>此命令只会将具有只读属性的系统文件复制，而不会操作其他文件。</p>
<p>上文说道，robocopy具有对属性操作的能力，因此，在复制的同时也可以指定文件属性。</p>
<p>使用参数”/A+”与”/A-”，功能分别是将给定的属性添加到复制文件，以及，从复制文件中删除给定的属性。</p>
<p>例如：</p>
<p>robocopy C:\windows F:\WindowsSysFile /e /A-:rsh</p>
<p>这样，不仅将所有文件进行了复制，也删除了诸如只读、系统、隐藏等属性，方便了我们在复制之后对文件进行操作和编辑等。</p>
<p>&nbsp;</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://lendy.9846.com/blog/2011/11/05/copy-tool-robocopy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux 更换新硬盘</title>
		<link>http://lendy.9846.com/blog/2011/03/18/linux-new-disk/</link>
		<comments>http://lendy.9846.com/blog/2011/03/18/linux-new-disk/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 07:00:29 +0000</pubDate>
		<dc:creator>Lendy</dc:creator>
				<category><![CDATA[Linux&Unix]]></category>
		<category><![CDATA[df]]></category>
		<category><![CDATA[e2label]]></category>
		<category><![CDATA[fdisk]]></category>
		<category><![CDATA[g4l]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://lendy.9846.com/blog/2011/03/18/linux-%e6%9b%b4%e6%8d%a2%e6%96%b0%e7%a1%ac%e7%9b%98/</guid>
		<description><![CDATA[&#160;&#160;&#160; 有一台CentOS 5.5的下载机，鉴于目前硬盘不够大，需要更换新的硬盘。重新安装系统不太现实。用norton ghost软件，对ext3不支持。网上找到个过g4l(Ghost fot Linux)软件。 1、光驱启动，对2硬盘做盘对盘的复制。用新硬盘启动，都很正常。但分区还是老样。用PQMagic查看，多余的空间没有使用，PQMagic无法Resize，重新删除最末盘，合并创建新盘。并用e2label设置label。 2、用g4l的分区方式复制，结果还是一样，回到老的方式。最后只能用cp -p 方式。 中间用到的命令。df、fdisk、e2label。 &#160;&#160;&#160; 其中发现一个比较奇怪的现象，df 和 fdisk显示的容量不一样。估计这个是g4l还不够强吧，无法针对不同容量的硬盘做ghost。]]></description>
			<content:encoded><![CDATA[<p>&#160;&#160;&#160; 有一台CentOS 5.5的下载机，鉴于目前硬盘不够大，需要更换新的硬盘。重新安装系统不太现实。用norton ghost软件，对ext3不支持。网上找到个过g4l(Ghost fot Linux)软件。</p>
<p>1、光驱启动，对2硬盘做盘对盘的复制。用新硬盘启动，都很正常。但分区还是老样。用PQMagic查看，多余的空间没有使用，PQMagic无法Resize，重新删除最末盘，合并创建新盘。并用e2label设置label。</p>
<p>2、用g4l的分区方式复制，结果还是一样，回到老的方式。最后只能用cp -p 方式。</p>
<p>中间用到的命令。df、fdisk、e2label。</p>
<p>&#160;&#160;&#160; 其中发现一个比较奇怪的现象，df 和 fdisk显示的容量不一样。估计这个是g4l还不够强吧，无法针对不同容量的硬盘做ghost。</p>
]]></content:encoded>
			<wfw:commentRss>http://lendy.9846.com/blog/2011/03/18/linux-new-disk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Win2003系统自动登录及关闭关机提示</title>
		<link>http://lendy.9846.com/blog/2011/01/14/win2003-autologin-shutdown/</link>
		<comments>http://lendy.9846.com/blog/2011/01/14/win2003-autologin-shutdown/#comments</comments>
		<pubDate>Fri, 14 Jan 2011 09:55:43 +0000</pubDate>
		<dc:creator>Lendy</dc:creator>
				<category><![CDATA[微软产品]]></category>
		<category><![CDATA[Win2003]]></category>
		<category><![CDATA[关机提示]]></category>
		<category><![CDATA[自动登录]]></category>

		<guid isPermaLink="false">http://lendy.9846.com/blog/?p=236</guid>
		<description><![CDATA[系统自动登录： 单击“开始　运行”，并在输入框中键入“control userpasswords2”，这样就可以在“用户账户”管理窗口中清除“要使用本机，用户必须输入密码”复选项的选中状态，然后按下键盘的“Ctrl+Shift+A”，将会得到一个“自动登录”的设置对话框,您可以按自己的需要设置系统在电脑启动时自动登录使用的用户账户和密码。 首先单击“开始　运行”，在输入框中键入“regedit”打开注册表编辑器，然后在注册表编辑器左方控制台中依次单击展开“HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/Current Version/Winlogon”，再选择“编辑　添加　字符串值”，在数值名称中键入“AutoAdminLogon”，然后在窗口中的空白位置上点一下，再双击刚新建的字符串“AutoAdminLogon”，在弹出的“编辑字符串”对话框中输入“1”设置系统允许自动登录。再重复以上的操作，创建一个名为“DefaultUserName”的字符串值，编辑字符串为您准备用于自动登录的账户名称。再新创建一个名为“Defaultpassword”的字符串值，并编辑字符串为您准备用于自动登录的用户账户密码，编辑完并检查无误后，关闭注册表编辑器并重新启动电脑即可自动登录。注意，如果已有“DefaultUserName”，可以不必重新创建，直接更改原有字符串值。如果您的系统工作在局域网环境下，并且在登录到系统上时需要登录域服务器，那么您还需要再添加一个“DefaultDomainName”并编辑字符串为您登录的域名称。 关闭关机提示： 点桌面任务栏的“开始&#8211;运行”在弹出的窗口中输入gpedit.msc，点击确定即打开了组策略编辑器。在组策略编辑器的左框内依次序展开（点前面的“+”号）&#8211;计算机配置&#8211;管理模板，这时在“管理模板”下面可见到有“系统”（如果“管理模板”下面只有“网络”和“打印机”没有“系统”项目，请右键点击“管理模板”在弹出的菜单中点击“添加/删除模板”打开添加/删除模板窗口，再点击“添加”在弹出的对话框中选中“system.adm”后点“打开”，关闭添加/删除模板窗口，这时在“管理模板”下面可见到有“系统”），点击“系统”，在右侧的框内找到《显示“关机事件跟踪程序”》项目；右键点击《显示“关机事件跟踪程序”》，在弹出的菜单中点“属性”，在属性选项卡中点击“已禁用”前的圆圈以选取它。再点击确定，这样以后关闭计算机就不会再出现关机事件跟踪对话框。]]></description>
			<content:encoded><![CDATA[<p>系统自动登录：<br />
单击“开始　运行”，并在输入框中键入“control userpasswords2”，这样就可以在“用户账户”管理窗口中清除“要使用本机，用户必须输入密码”复选项的选中状态，然后按下键盘的“Ctrl+Shift+A”，将会得到一个“自动登录”的设置对话框,您可以按自己的需要设置系统在电脑启动时自动登录使用的用户账户和密码。</p>
<p>首先单击“开始　运行”，在输入框中键入“regedit”打开注册表编辑器，然后在注册表编辑器左方控制台中依次单击展开“HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/Current Version/Winlogon”，再选择“编辑　添加　字符串值”，在数值名称中键入“AutoAdminLogon”，然后在窗口中的空白位置上点一下，再双击刚新建的字符串“AutoAdminLogon”，在弹出的“编辑字符串”对话框中输入“1”设置系统允许自动登录。再重复以上的操作，创建一个名为“DefaultUserName”的字符串值，编辑字符串为您准备用于自动登录的账户名称。再新创建一个名为“Defaultpassword”的字符串值，并编辑字符串为您准备用于自动登录的用户账户密码，编辑完并检查无误后，关闭注册表编辑器并重新启动电脑即可自动登录。注意，如果已有“DefaultUserName”，可以不必重新创建，直接更改原有字符串值。如果您的系统工作在局域网环境下，并且在登录到系统上时需要登录域服务器，那么您还需要再添加一个“DefaultDomainName”并编辑字符串为您登录的域名称。</p>
<p>关闭关机提示：<br />
点桌面任务栏的“开始&#8211;运行”在弹出的窗口中输入gpedit.msc，点击确定即打开了组策略编辑器。在组策略编辑器的左框内依次序展开（点前面的“+”号）&#8211;计算机配置&#8211;管理模板，这时在“管理模板”下面可见到有“系统”（如果“管理模板”下面只有“网络”和“打印机”没有“系统”项目，请右键点击“管理模板”在弹出的菜单中点击“添加/删除模板”打开添加/删除模板窗口，再点击“添加”在弹出的对话框中选中“system.adm”后点“打开”，关闭添加/删除模板窗口，这时在“管理模板”下面可见到有“系统”），点击“系统”，在右侧的框内找到《显示“关机事件跟踪程序”》项目；右键点击《显示“关机事件跟踪程序”》，在弹出的菜单中点“属性”，在属性选项卡中点击“已禁用”前的圆圈以选取它。再点击确定，这样以后关闭计算机就不会再出现关机事件跟踪对话框。</p>
]]></content:encoded>
			<wfw:commentRss>http://lendy.9846.com/blog/2011/01/14/win2003-autologin-shutdown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>泪海</title>
		<link>http://lendy.9846.com/blog/2010/12/17/sea-of-tears/</link>
		<comments>http://lendy.9846.com/blog/2010/12/17/sea-of-tears/#comments</comments>
		<pubDate>Fri, 17 Dec 2010 03:45:07 +0000</pubDate>
		<dc:creator>Lendy</dc:creator>
				<category><![CDATA[生活娱乐]]></category>

		<guid isPermaLink="false">http://lendy.9846.com/blog/?p=245</guid>
		<description><![CDATA[许茹芸 &#8211; 泪海 爱已不能动 还有什么值得我心痛 想你的天空 下起雨来 没人心疼的黑夜 脸颊两行硷硷的泪水 是你 哦 是你 让我望穿泪水 肝肠寸断 你怎么舍得让我的泪流向海 付出的感情永远 找不回来 你怎么舍得让我的爱流向海 伤心的往事一幕幕 就像潮水 将我掩埋 爱已不能动 还有什么值得我心痛 想你的天空 下起雨来 没人心疼的黑夜 脸颊两行硷硷的泪水 是你 哦 是你 让我望穿泪水 肝肠寸断 你怎么舍得让我的泪流向海 付出的感情永远 找不回来 你怎么舍得让我的爱流向海 伤心的往事一幕幕 就像潮水 将我掩埋 闭上了双眼 还看见和你的缠绵 眼角的泪水 喜不去心中 一遍一遍的誓言 你怎么舍得让我的泪流向海 付出的感情永远 找不回来 你怎么舍得让我的爱流向海 伤心的往事一幕幕 就像潮水 将我掩埋]]></description>
			<content:encoded><![CDATA[<p><a class="wpaudio" href="http://lendy.9846.com/blog/wp-content/uploads/2010/12/xry-lh.mp3">许茹芸 &#8211; 泪海</a></p>
<p>爱已不能动<br />
还有什么值得我心痛<br />
想你的天空 下起雨来<br />
没人心疼的黑夜<br />
脸颊两行硷硷的泪水<br />
是你 哦 是你<br />
让我望穿泪水 肝肠寸断<br />
你怎么舍得让我的泪流向海<br />
付出的感情永远 找不回来<br />
你怎么舍得让我的爱流向海<br />
伤心的往事一幕幕<br />
就像潮水 将我掩埋<br />
爱已不能动<br />
还有什么值得我心痛<br />
想你的天空 下起雨来<br />
没人心疼的黑夜<br />
脸颊两行硷硷的泪水<br />
是你 哦 是你<br />
让我望穿泪水 肝肠寸断<br />
你怎么舍得让我的泪流向海<br />
付出的感情永远 找不回来<br />
你怎么舍得让我的爱流向海<br />
伤心的往事一幕幕<br />
就像潮水 将我掩埋<br />
闭上了双眼 还看见和你的缠绵<br />
眼角的泪水 喜不去心中<br />
一遍一遍的誓言<br />
你怎么舍得让我的泪流向海<br />
付出的感情永远 找不回来<br />
你怎么舍得让我的爱流向海<br />
伤心的往事一幕幕<br />
就像潮水 将我掩埋</p>
]]></content:encoded>
			<wfw:commentRss>http://lendy.9846.com/blog/2010/12/17/sea-of-tears/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://lendy.9846.com/blog/wp-content/uploads/2010/12/xry-lh.mp3" length="0" type="audio/mpeg" />
		</item>
		<item>
		<title>独角戏</title>
		<link>http://lendy.9846.com/blog/2010/12/17/one-act-play/</link>
		<comments>http://lendy.9846.com/blog/2010/12/17/one-act-play/#comments</comments>
		<pubDate>Fri, 17 Dec 2010 03:40:36 +0000</pubDate>
		<dc:creator>Lendy</dc:creator>
				<category><![CDATA[生活娱乐]]></category>
		<category><![CDATA[独角戏]]></category>
		<category><![CDATA[许茹芸]]></category>

		<guid isPermaLink="false">http://lendy.9846.com/blog/?p=243</guid>
		<description><![CDATA[许茹芸 &#8211; 独角戏 是谁导演这场戏 在这孤单角色里 对白总是自言自语 对手都是回忆 看不出什么结局 自始至终全是你 让我投入太彻底 故事如果注定悲剧 何苦给我美丽 演出相聚和别离 没有星星的夜里 我用泪光吸引你 既然爱你不能言语 只能微笑哭泣 让我从此忘了你 没有星星的夜里 我把往事留给你 如果一切只是演戏 要你好好看戏 心碎只是我自己 是谁导演这场戏 在这孤单角色里 对白总是自言自语 对手都是回忆 看不出什么结局 自始至终全是你 让我投入太彻底 故事如果注定悲剧 何苦给我美丽 演出相聚和别离 没有星星的夜里 我用泪光吸引你 既然爱你不能言语 只能微笑哭泣 让我从此忘了你 没有星星的夜里 我把往事留给你 如果一切只是演戏 要你好好看戏 心碎只是我自己 没有星星的夜里 我用泪光吸引你 既然爱你不能言语 只能微笑哭泣 让我从此忘了你 没有星星的夜里 我把往事留给你 如果一切只是演戏 要你好好看戏 心碎只是我自己]]></description>
			<content:encoded><![CDATA[<p><a class="wpaudio" href="http://lendy.9846.com/blog/wp-content/uploads/2010/12/xry-djx.mp3">许茹芸 &#8211; 独角戏</a></p>
<p>是谁导演这场戏<br />
在这孤单角色里<br />
对白总是自言自语<br />
对手都是回忆<br />
看不出什么结局<br />
自始至终全是你<br />
让我投入太彻底<br />
故事如果注定悲剧<br />
何苦给我美丽<br />
演出相聚和别离<br />
没有星星的夜里<br />
我用泪光吸引你<br />
既然爱你不能言语<br />
只能微笑哭泣<br />
让我从此忘了你<br />
没有星星的夜里<br />
我把往事留给你<br />
如果一切只是演戏<br />
要你好好看戏<br />
心碎只是我自己</p>
<p>是谁导演这场戏<br />
在这孤单角色里<br />
对白总是自言自语<br />
对手都是回忆<br />
看不出什么结局<br />
自始至终全是你<br />
让我投入太彻底<br />
故事如果注定悲剧<br />
何苦给我美丽<br />
演出相聚和别离<br />
没有星星的夜里<br />
我用泪光吸引你<br />
既然爱你不能言语<br />
只能微笑哭泣<br />
让我从此忘了你<br />
没有星星的夜里<br />
我把往事留给你<br />
如果一切只是演戏<br />
要你好好看戏<br />
心碎只是我自己</p>
<p>没有星星的夜里<br />
我用泪光吸引你<br />
既然爱你不能言语<br />
只能微笑哭泣<br />
让我从此忘了你<br />
没有星星的夜里<br />
我把往事留给你<br />
如果一切只是演戏<br />
要你好好看戏<br />
心碎只是我自己</p>
]]></content:encoded>
			<wfw:commentRss>http://lendy.9846.com/blog/2010/12/17/one-act-play/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://lendy.9846.com/blog/wp-content/uploads/2010/12/xry-djx.mp3" length="2146688" type="audio/mpeg" />
		</item>
	</channel>
</rss>

