<?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>Mcadu_Blog&#039;S</title>
	<atom:link href="http://www.mcadu.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.mcadu.com</link>
	<description>初次做博客希望大家喜欢</description>
	<lastBuildDate>Wed, 31 Mar 2010 01:32:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SQL,代理XP”组件已作为此服务器安全配置&#8230;..</title>
		<link>http://www.mcadu.com/?p=70</link>
		<comments>http://www.mcadu.com/?p=70#comments</comments>
		<pubDate>Wed, 31 Mar 2010 01:32:28 +0000</pubDate>
		<dc:creator>mcadu</dc:creator>
				<category><![CDATA[window学习]]></category>

		<guid isPermaLink="false">http://www.mcadu.com/?p=70</guid>
		<description><![CDATA[  在Management Studio中新建维护计划时，提示以下错误信息：           “代理XP”组件已作为此服务器安全配置的一部分被关闭。系统管理员可以使用sp_configure来启用“代理XP”。有关启用“... </p>]]></description>
			<content:encoded><![CDATA[<p>  在Management Studio中新建<a id="vad_0" onmouseover="this.style.borderBottom='2px #FF3366 solid';var fxEvent=arguments[0];kwmouseover(this,0,fxEvent);" onmouseout="this.style.borderBottom='1px #FF3366 dotted';kwmouseout(this,0)" name="0" href="http://action.vogate.com/c/c.php?r=&amp;aid=5620&amp;sid=6235007045053733&amp;click=1&amp;url=http%3A//unionafa.allyes.com/main/adfclick%3Fdb%3Dunionafa%26bid%3D479%2C127%2C23%26cid%3D6601%2C309%2C1%26sid%3D329%26show%3Dignore%26url%3Dhttp%3A//buycar.chezhu.com.cn/promotion_1.html%3Fcid%3D16&amp;v=0&amp;k=%u7EF4%u62A4&amp;s=http%3A//w.xue163.com/html/20091228/3493689.html&amp;rn=689060" target="_blank">维护</a>计划时，提示以下错误信息：   <span style="font-family: Arial; font-size: small;">        “代理XP”组件已作为此服务器安全配置的一部分被关闭。系统管理员<a id="vad_7" onmouseover="this.style.borderBottom='2px #FF3366 solid';var fxEvent=arguments[0];kwmouseover(this,7,fxEvent);" onmouseout="this.style.borderBottom='1px #FF3366 dotted';kwmouseout(this,7)" name="7" href="http://action.vogate.com/c/c.php?r=&amp;aid=11560&amp;sid=6235007045053733&amp;click=1&amp;url=http%3A//www.lux51.com&amp;v=0&amp;k=%u53EF%u4EE5&amp;s=http%3A//w.xue163.com/html/20091228/3493689.html&amp;rn=893360" target="_blank">可以</a>使用sp_configure来启用“代理XP”。有关启用“代理XP”的详细信息，请参阅SQL Server联机丛书中的“外围应用配置器”。（ObjectExplorer）</span>   <span style="font-family: Arial; font-size: small;">二、解决方法</span>   <span style="font-family: Arial; font-size: small;">        打开SQL Server Configuration Manager，启用SQL Server Agent（实例名）。</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mcadu.com/?feed=rss2&amp;p=70</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>也许</title>
		<link>http://www.mcadu.com/?p=69</link>
		<comments>http://www.mcadu.com/?p=69#comments</comments>
		<pubDate>Tue, 23 Mar 2010 03:23:21 +0000</pubDate>
		<dc:creator>mcadu</dc:creator>
				<category><![CDATA[莫名]]></category>

		<guid isPermaLink="false">http://www.mcadu.com/?p=69</guid>
		<description><![CDATA[
也许
也许毕业后才发现自己需要多读书，
却没有问过自己大学里都做了什么。
也许很努力的学一样东西，
却没有问自己目前有用没。
也许总在问身边的人这个问题怎么做，
却没有问过自己... </p>]]></description>
			<content:encoded><![CDATA[<div id="blogDetailDiv">
<p style="text-align: center;"><strong><span style="font-family: 黑体;">也许<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 />
也许&#8230;&#8230;.</span></strong><strong><span style="font-family: 黑体;">也许&#8230;&#8230;..</span></strong></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.mcadu.com/?feed=rss2&amp;p=69</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>单臂路由的完整配置</title>
		<link>http://www.mcadu.com/?p=62</link>
		<comments>http://www.mcadu.com/?p=62#comments</comments>
		<pubDate>Mon, 15 Mar 2010 06:37:12 +0000</pubDate>
		<dc:creator>mcadu</dc:creator>
				<category><![CDATA[Netwroking]]></category>

		<guid isPermaLink="false">http://www.mcadu.com/?p=62</guid>
		<description><![CDATA[1、设置虚拟PC的IP
 ip 192.168.10.1 192.168.10.254
设置网管是为了跨区域通讯。
查看IP地址sh
2、进设备
配置基本的
Router#configure terminal   #进入到配置模式下
Enter configuration commands, one per line.  End with... </p>]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">1、设置虚拟PC的IP<br />
 ip 192.168.10.1 192.168.10.254<br />
设置网管是为了跨区域通讯。<br />
查看IP地址sh</p>
<p style="text-align: left;">2、进设备<br />
配置基本的<br />
Router#configure terminal   #进入到配置模式下<br />
Enter configuration commands, one per line.  End with CNTL/Z.<br />
Router(config)#hostname SW1  #更改交换机的名称<br />
SW1(config)#no ip domain lookup   #关闭查询功能<br />
SW1(config)#line console 0<br />
SW1(config-line)#logging synchronous   #同步日志<br />
SW1(config-line)#exec-timeout 0 0     #配置为永远不超时 exec-</p>
<p style="text-align: left;">timeout 0 10  表示登录后无操作10秒后超时登出，这时候就要重新输入密</p>
<p style="text-align: left;">码登陆设备。<br />
SW1(config-line)#end<br />
以上的命令路由器和交换机上都要做</p>
<p style="text-align: left;">3、关闭每台交换机的路由功能<br />
SW1(config)#no ip routing</p>
<p style="text-align: left;">4、做两天交换机之间的trunk和以太接口</p>
<p style="text-align: left;">SW1(config)#interface range fastEthernet0/14 &#8211; 15 #进入交换机1的14</p>
<p style="text-align: left;">和15端口<br />
SW1(config-if-range)#channel-group 1 mode on   #绑定为以太口<br />
SW1(config)#int port-channel 1  #进入以太口<br />
SW1(config-if)#switchport trunk encapsulation dot1q  #做trunk并做</p>
<p style="text-align: left;">dot1q的封装。<br />
SW1(config-if)#switchport mode trunk #设置为trunk模式<br />
SW1(config-if)#no sh #激活端口</p>
<p style="text-align: left;">上面的几步在sw2上也要做验证trunk的命令如下<br />
SW1#show interfaces trunk<br />
Port      Mode         Encapsulation  Status        Native vlan<br />
Fa0/0     on           802.1q         trunking      1<br />
Po1       on           802.1q         trunking      1</p>
<p style="text-align: left;">Port      Vlans allowed on trunk<br />
Fa0/0     1-1005<br />
Po1       1-1005</p>
<p style="text-align: left;">Port      Vlans allowed and active in management domain<br />
Fa0/0     1,10,20<br />
Po1       1,10,20</p>
<p style="text-align: left;">Port      Vlans in spanning tree forwarding state and not pruned<br />
Fa0/0     1,10,20<br />
Po1       1,10,20<br />
5、创建vlan和做vtp<br />
SW1#vlan database    #通过数据库模式创建vlan<br />
SW1(vlan)#vlan 10 name fin    #创建vlan 10 并命名<br />
VLAN 10 added:<br />
    Name: fin<br />
SW1(vlan)#vlan 20 name mar<br />
VLAN 20 added:<br />
    Name: mar<br />
SW1(vlan)#vtp ?   #设置vtp，查看vtp命令<br />
  client       Set the device to client mode.<br />
  domain       Set the name of the VTP administrative domain.<br />
  password     Set the password for the VTP administrative domain.<br />
  pruning      Set the administrative domain to permit pruning.<br />
  server       Set the device to server mode.<br />
  transparent  Set the device to transparent mode.<br />
  v2-mode      Set the administrative domain to V2 mode.</p>
<p style="text-align: left;">SW1(vlan)#vtp server   #设置vtp模式<br />
Device mode already VTP SERVER. </p>
<p style="text-align: left;">SW1(vlan)#vtp domain cisco    #设置vtp域名<br />
Changing VTP domain name from NULL to cisco</p>
<p style="text-align: left;">SW1(vlan)#vtp pruning  #开启裁剪模式<br />
Pruning switched ON</p>
<p style="text-align: left;">SW1(vlan)#vtp password 123  #设置vtp密码<br />
Setting device VLAN database password to 123.<br />
SW1(vlan)#exit</p>
<p style="text-align: left;">在SW1上做完vtp后，在进入到SW2中做vtp，在SW2上做了vtp后SW2就可以把</p>
<p style="text-align: left;">SW1上的vlan学习到了。</p>
<p style="text-align: left;">6、通过vtp效验<br />
SW1#sh vtp status<br />
VTP Version                     : 2<br />
Configuration Revision          : 1<br />
Maximum VLANs supported locally : 256<br />
Number of existing VLANs        : 7<br />
VTP Operating Mode              : Server<br />
VTP Domain Name                 : cisco<br />
VTP Pruning Mode                : Enabled<br />
VTP V2 Mode                     : Disabled<br />
VTP Traps Generation            : Disabled<br />
MD5 digest                      : 0&#215;81 0xE9 0&#215;5C 0&#215;99 0xDA 0&#215;01</p>
<p style="text-align: left;">0xCE 0&#215;3A<br />
Configuration last modified by 0.0.0.0 at 3-1-02 00:14:30<br />
Local updater ID is 0.0.0.0 (no valid interface found)<br />
比较两台交换机上的MD5值，如果一样则证明vtp是通的</p>
<p style="text-align: left;">7、将端口加入到vlan中<br />
SW1(config)#int fa0/1<br />
SW1(config-if)#switchport mode access </p>
<p style="text-align: left;">SW1(config-if)#switchport access vlan 10 <br />
SW1(config-if)#no sh</p>
<p style="text-align: left;">8、做sw1与R1的trunk<br />
SW1(config-if)#int fa0/0    <br />
SW1(config-if)#switchport tr<br />
SW1(config-if)#switchport trunk en do<br />
SW1(config-if)#switchport mode trunk<br />
SW1(config-if)#no sh</p>
<p style="text-align: left;">9、配置路由<br />
R1#conf t<br />
Enter configuration commands, one per line.  End with CNTL/Z.<br />
R1(config)#int fa0/0<br />
R1(config-if)#no ip address <br />
R1(config-if)#no sh</p>
<p style="text-align: left;">01:00:53: %LINEPROTO-5-UPDOWN: Line protocol on Interface</p>
<p style="text-align: left;">FastEthernet0/0, changed state to up<br />
R1(config-if)#<br />
R1(config)#interface fastEthernet0/0.1  #进入子端口<br />
R1(config-subif)#encapsulation dot1Q 10  #封装到vlan 10</p>
<p style="text-align: left;">R1(config-subif)#ip add 192.168.10.254 255.255.255.0 #对子端口进行</p>
<p style="text-align: left;">ip配置<br />
R1(config-subif)#no sh<br />
R1(config-subif)#int fa0/0.2<br />
R1(config-subif)#encapsulation dot1Q 20<br />
R1(config-subif)#ip address 192.168.20.254 255.255.255.0<br />
R1(config-subif)#no sh<br />
R1(config-subif)#int fa0/0.1</p>
<p style="text-align: left;">10、验证正确性，在虚拟pc1上ping虚拟pc2的网关。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mcadu.com/?feed=rss2&amp;p=62</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>私有地址</title>
		<link>http://www.mcadu.com/?p=59</link>
		<comments>http://www.mcadu.com/?p=59#comments</comments>
		<pubDate>Thu, 11 Mar 2010 03:04:30 +0000</pubDate>
		<dc:creator>mcadu</dc:creator>
				<category><![CDATA[Netwroking]]></category>

		<guid isPermaLink="false">http://www.mcadu.com/?p=59</guid>
		<description><![CDATA[私有地址（Private address）属于非注册地址，专门为组织机构内部使用。
　　以下表列出留用的内部寻址地址
　　A类 10.0.0.0 &#8211;10.255.255.255
　　B类 172.16.0.0&#8211;172.31.255.255
　　C类 192.168.0.0&#82... </p>]]></description>
			<content:encoded><![CDATA[<p>私有地址（Private address）属于非注册地址，专门为组织机构内部使用。<br />
　　以下表列出留用的内部寻址地址<br />
　　A类 10.0.0.0 &#8211;10.255.255.255<br />
　　B类 172.16.0.0&#8211;172.31.255.255<br />
　　C类 192.168.0.0&#8211;192.168.255.255<br />
　　1. <a href="/view/1449714.htm" target="_blank">A类地址</a><br />
　　⑴ A类地址第1字节为网络地址，其它3个字节为主机地址。另外第1个字节的最高位固定为0。<br />
　　⑵ A类地址范围：1.0.0.1到126.255.255.254。<br />
　　⑶ A类地址中的私有地址和保留地址：<br />
　　①10.0.0.0到10.255.255.255是私有地址（所谓的私有地址就是在互联网上不使用，而被用在局域网络中的地址）。<br />
　　② 127.0.0.0到127.255.255.255是保留地址，用做循环测试用的。<br />
　　2. <a href="/view/1449716.htm" target="_blank">B类地址</a><br />
　　⑴ B类地址第1字节和第2字节为网络地址，其它2个字节为主机地址。另外第1个字节的前两位固定为10。<br />
　　⑵ B类地址范围：128.0.0.1到191.255.255.254。<br />
　　⑶ B类地址的私有地址和保留地址<br />
　　① 172.16.0.0到172.31.255.255是私有地址<br />
　　②169.254.0.0到169.254.255.255是保留地址。如果你的<a href="/view/3930.htm" target="_blank">IP地址</a>是自动获取IP地址，而你在网络上又没有找到可用的DHCP服务器，这时你将会从169.254.0.0到169.254.255.255中临得获得一个IP地址。<br />
　　3. <a href="/view/1449719.htm" target="_blank">C类地址</a><br />
　　⑴C类地址第1字节、第2字节和第3个字节为网络地址，第4个个字节为主机地址。另外第1个字节的前三位固定为110。<br />
　　⑵ C类地址范围：192.0.0.1到223.255.255.254。<br />
　　⑶ C类地址中的私有地址：192.168.0.0到192.168.255.255是私有地址。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mcadu.com/?feed=rss2&amp;p=59</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trunk配置</title>
		<link>http://www.mcadu.com/?p=54</link>
		<comments>http://www.mcadu.com/?p=54#comments</comments>
		<pubDate>Tue, 09 Mar 2010 13:59:22 +0000</pubDate>
		<dc:creator>mcadu</dc:creator>
				<category><![CDATA[Netwroking]]></category>

		<guid isPermaLink="false">http://www.mcadu.com/?p=54</guid>
		<description><![CDATA[ 

一、交换机SW1配置：
Switch1(config)#vlan 20
Switch1(config)#vlan 30
Switch1(config)#interface fastEthernet 0/1
Switch1(config-if)#switchport mode access
Switch1(config-if)#switchport access vlan 20
Switch1(config)#interface fastEthernet 0/2
S... </p>]]></description>
			<content:encoded><![CDATA[<p> </p>
<p><a href="http://www.mcadu.com/wp-content/uploads/2010/03/4fed109fx709d44dc7261.jpg"><img class="aligncenter size-full wp-image-55" title="trunk链接拓扑图" src="http://www.mcadu.com/wp-content/uploads/2010/03/4fed109fx709d44dc7261.jpg" alt="" width="400" height="343" /></a></p>
<p>一、交换机SW1配置：</p>
<p>Switch1(config)#vlan 20<br />
Switch1(config)#vlan 30</p>
<p>Switch1(config)#interface fastEthernet 0/1<br />
Switch1(config-if)#switchport mode access<br />
Switch1(config-if)#switchport access vlan 20</p>
<p>Switch1(config)#interface fastEthernet 0/2<br />
Switch1(config-if)#switchport mode access<br />
Switch1(config-if)#switchport access vlan 30</p>
<p>Switch1#show vlan</p>
<p>VLAN Name                             Status    Ports<br />
&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
1    default                          active    Fa0/3, Fa0/4, Fa0/5, Fa0/6<br />
                                                Fa0/7, Fa0/8, Fa0/9, Fa0/10<br />
                                                Fa0/11, Fa0/12, Fa0/13, Fa0/14<br />
                                                Fa0/15, Fa0/16, Fa0/17, Fa0/18<br />
                                                Fa0/19, Fa0/20, Fa0/21, Fa0/22<br />
                                                Fa0/23, Fa0/24<br />
20   VLAN0020                         active    Fa0/1<br />
30   VLAN0030                         active    Fa0/2<br />
1002 fddi-default                     active  <br />
1003 token-ring-default               active  <br />
1004 fddinet-default                  active  <br />
1005 trnet-default                    active  </p>
<p>VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2<br />
&#8212;- &#8212;&#8211; &#8212;&#8212;&#8212;- &#8212;&#8211; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212;&#8211; &#8212;- &#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8212;<br />
1    enet  100001     1500  -      -      -        -    -        0      0<br />
20   enet  100020     1500  -      -      -        -    -        0      0<br />
30   enet  100030     1500  -      -      -        -    -        0      0<br />
1002 enet  101002     1500  -      -      -        -    -        0      0<br />
1003 enet  101003     1500  -      -      -        -    -        0      0<br />
1004 enet  101004     1500  -      -      -        -    -        0      0<br />
1005 enet  101005     1500  -      -      -        -    -        0      0</p>
<p>Switch1(config)#interface fastEthernet 0/24<br />
Switch1(config-if)#switchport mode trunk     //2950交换机只能封装dot1q ,所以无须键入switchport trunk encanpsulation dotiq<br />
Switch1#show vlan</p>
<p>VLAN Name                             Status    Ports<br />
&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
1    default                          active    Fa0/3, Fa0/4, Fa0/5, Fa0/6<br />
                                                Fa0/7, Fa0/8, Fa0/9, Fa0/10<br />
                                                Fa0/11, Fa0/12, Fa0/13, Fa0/14<br />
                                                Fa0/15, Fa0/16, Fa0/17, Fa0/18<br />
                                                Fa0/19, Fa0/20, Fa0/21, Fa0/22<br />
                                                Fa0/23<br />
20   VLAN0020                         active    Fa0/1<br />
30   VLAN0030                         active    Fa0/2<br />
1002 fddi-default                     active  <br />
1003 token-ring-default               active  <br />
1004 fddinet-default                  active  <br />
1005 trnet-default                    active  </p>
<p>VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2<br />
&#8212;- &#8212;&#8211; &#8212;&#8212;&#8212;- &#8212;&#8211; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212;&#8211; &#8212;- &#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8212;<br />
1    enet  100001     1500  -      -      -        -    -        0      0<br />
20   enet  100020     1500  -      -      -        -    -        0      0<br />
30   enet  100030     1500  -      -      -        -    -        0      0<br />
1002 enet  101002     1500  -      -      -        -    -        0      0<br />
1003 enet  101003     1500  -      -      -        -    -        0      0<br />
1004 enet  101004     1500  -      -      -        -    -        0      0<br />
1005 enet  101005     1500  -      -      -        -    -        0      0</p>
<p>Switch1#show interfaces trunk<br />
Port        Mode         Encapsulation  Status        Native vlan<br />
Fa0/24      on           802.1q         trunking      1</p>
<p>Port        Vlans allowed on trunk<br />
Fa0/24      1-1005</p>
<p>Port        Vlans allowed and active in management domain<br />
Fa0/24      1,20,30,1002,1003,1004,1005</p>
<p>Port        Vlans in spanning tree forwarding state and not pruned<br />
Fa0/24      1,20,30,1002,1003,1004,1005<br />
Switch1(config)#interface fastEthernet 0/24<br />
Switch1(config-if)#switchport native vlan 20<br />
Switch1#show interfaces trunk<br />
Port        Mode         Encapsulation  Status        Native vlan<br />
Fa0/24      on           802.1q         trunking      20</p>
<p>Port        Vlans allowed on trunk<br />
Fa0/24      1-1005</p>
<p>Port        Vlans allowed and active in management domain<br />
Fa0/24      1,20,30,1002,1003,1004,1005</p>
<p>Port        Vlans in spanning tree forwarding state and not pruned<br />
Fa0/24      1,20,30,1002,1003,1004,1005</p>
<p> 二、交换机SW2配置：</p>
<p>Switch2(config)#interface fastEthernet 0/24<br />
Switch2(config-if)#switchport mode trunk</p>
<p>三、DTP</p>
<p>Cisco交换机之间的链路是否形成Trunk是可以自动协商的，这个协议称为DTP（Dynamic Trunk Protocol),DTP还可以协商Trunk链路的封装类型。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mcadu.com/?feed=rss2&amp;p=54</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>虚拟机扩盘</title>
		<link>http://www.mcadu.com/?p=51</link>
		<comments>http://www.mcadu.com/?p=51#comments</comments>
		<pubDate>Fri, 05 Mar 2010 03:07:20 +0000</pubDate>
		<dc:creator>mcadu</dc:creator>
				<category><![CDATA[Linux讨论]]></category>

		<guid isPermaLink="false">http://www.mcadu.com/?p=51</guid>
		<description><![CDATA[前段时间碰到虚拟机磁盘空间不够用的问题在网上找了很久还是很有解决，有一哥们说VM虚拟自带了扩展磁盘的工具，下面就是操作步骤。
1、首先找到VMware的安装路径，从vm的快捷方式的属性... </p>]]></description>
			<content:encoded><![CDATA[<p>前段时间碰到虚拟机磁盘空间不够用的问题在网上找了很久还是很有解决，有一哥们说VM虚拟自带了扩展磁盘的工具，下面就是操作步骤。</p>
<p>1、首先找到VMware的安装路径，从vm的快捷方式的属性去寻找安装路径（如：C:\Program Files\VMware\VMware Workstation&gt;）找到vmware-vdiskmanager这个程序，它就是用来扩展磁盘用的。</p>
<p>2、找到虚拟机系统的存放路径如：E:\My Documents\My Virtual Machines\Ubuntu_Svn\Ubuntu_Svn.vmdk</p>
<p>3、用命令进入到虚拟机安装路径在执行如下命令<em>vmware-vdiskmanager -x 15Gb &#8220;E:\My Documents\My Virtual Machines\Ubuntu_Svn\Ubuntu_Svn.vmdk&#8221;</em></p>
<p><em>C:\Program Files\VMware\VMware Workstation&gt;vmware-vdiskmanager -x 15Gb &#8220;E:\My Documents\My Virtual Machines\Ubuntu_Svn\Ubuntu_Svn.vmdk&#8221;</em></p>
<p>上面的命令中的15Gb是只扩展到15Gb而不是扩展了15Gb。然后等待几分钟就可以了。<br />
注意：此时启动虚拟机是扩展的硬盘空间还不能用，还需要下面的设置。</p>
<p>如果是win的系统，进入系统后直接在磁盘管理里增加磁盘即可。</p>
<p>linux的需要用到gparted-live-0.5.1-1.iso这个工具，用光驱驱动。进入后选择第一个入然后安找提示做既可以。</p>
<p>gparted-live-0.5.1-1.iso这个工具很好用的，也可以用在win下</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mcadu.com/?feed=rss2&amp;p=51</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux DB2备份恢复</title>
		<link>http://www.mcadu.com/?p=38</link>
		<comments>http://www.mcadu.com/?p=38#comments</comments>
		<pubDate>Mon, 08 Feb 2010 03:08:55 +0000</pubDate>
		<dc:creator>mcadu</dc:creator>
				<category><![CDATA[DB2]]></category>

		<guid isPermaLink="false">http://www.mcadu.com/?p=38</guid>
		<description><![CDATA[    通过如下备份脚本备份的数据库进行恢复
 备份脚本：
. /home/db2admin/sqllib/db2profile
db2 backup db datedb online to /dbbackup/date include logs
cd /dbbackup/datetoday=`date +&#8221;%Y%m%d&#8221;`
file1=&#8221;*$today*&#8221... </p>]]></description>
			<content:encoded><![CDATA[<p>    通过如下备份脚本备份的数据库进行恢复</p>
<p> 备份脚本：</p>
<p>. /home/db2admin/sqllib/db2profile<br />
db2 backup db datedb online to /dbbackup/date include logs<br />
cd /dbbackup/datetoday=`date +&#8221;%Y%m%d&#8221;`<br />
file1=&#8221;*$today*&#8221;<br />
ftpfile=`ls $file1`<br />
echo $ftpfile<br />
lftp -c &#8220;open ftp地址;user 用户名密码<a>@\$0;put</a> $ftpfile&#8221;<br />
find /dbbackup/date -ctime +15 -exec rm {} \;</p>
<p>恢复命令：</p>
<p>通过root命令登录到服务器上后切换到数据库用户名下用su &#8211; db2admin命令。</p>
<p>进入到备份文件存放目录</p>
<p>执行如下命令<br />
[db2admin@localhost db2back]$ <strong>db2 restore db  datedb  from  /hom</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mcadu.com/?feed=rss2&amp;p=38</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu安装桌面环境的命令</title>
		<link>http://www.mcadu.com/?p=30</link>
		<comments>http://www.mcadu.com/?p=30#comments</comments>
		<pubDate>Wed, 27 Jan 2010 05:45:37 +0000</pubDate>
		<dc:creator>mcadu</dc:creator>
				<category><![CDATA[Linux讨论]]></category>

		<guid isPermaLink="false">http://www.mcadu.com/?p=30</guid>
		<description><![CDATA[　用做服务器的话，实际上不需要配置 GUI，不过因为初装，对 Ubuntu 和 Linux 都不熟悉，所以还是装了个 gnome协助管理。
　　　　服务器版配置 gnome 也很方便：
　　　　a) 安装:
　　　　　　#a... </p>]]></description>
			<content:encoded><![CDATA[<p>　用做服务器的话，实际上不需要配置 GUI，不过因为初装，对 Ubuntu 和 Linux 都不熟悉，所以还是装了个 gnome协助管理。</p>
<p>　　　　服务器版配置 gnome 也很方便：</p>
<p>　　　　a) 安装:</p>
<p>　　　　　　#apt-get aptitude install Ubuntu-desktop</p>
<p>　　　　　　安装成功后便会自动登录到桌面了。</p>
<p>　　　　　　GUI 里确实可以更方便地进行很多操作，尤其是文件、目录、文本编辑的操作，这些在终端下都是</p>
<p>　　　　　　繁杂的工作。不过很多系统操作，还是要在终端下更方便进行，跟 Windows 不同，GUI 在</p>
<p>　　　　　　Server 上很多时候只起个辅助作用。</p>
<p>　　　　b) 取消 GUI 自动启动：</p>
<p>　　　　　　#update-rc.d -f gdm remove</p>
<p>　　　　　　重启后便不会自动进入桌面，此时可用 startx 启动桌面。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mcadu.com/?feed=rss2&amp;p=30</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DB2注册</title>
		<link>http://www.mcadu.com/?p=28</link>
		<comments>http://www.mcadu.com/?p=28#comments</comments>
		<pubDate>Tue, 26 Jan 2010 09:25:43 +0000</pubDate>
		<dc:creator>mcadu</dc:creator>
				<category><![CDATA[DB2]]></category>

		<guid isPermaLink="false">http://www.mcadu.com/?p=28</guid>
		<description><![CDATA[      现在大多装好的DB2都为非注册的。需要怎么注册
注册命令db2licm -a 文件名,通过cmd命令找到注册文件的路径。执行注册命令。重启DB2数据库。... </p>]]></description>
			<content:encoded><![CDATA[<p>      现在大多装好的DB2都为非注册的。需要怎么注册</p>
<p>注册命令db2licm -a 文件名,通过cmd命令找到注册文件的路径。执行注册命令。重启DB2数据库。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mcadu.com/?feed=rss2&amp;p=28</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DB2常用命令简介</title>
		<link>http://www.mcadu.com/?p=25</link>
		<comments>http://www.mcadu.com/?p=25#comments</comments>
		<pubDate>Tue, 26 Jan 2010 02:47:27 +0000</pubDate>
		<dc:creator>mcadu</dc:creator>
				<category><![CDATA[DB2]]></category>

		<guid isPermaLink="false">http://www.mcadu.com/?p=25</guid>
		<description><![CDATA[1．启动数据库
      db2start
2．停止数据库
      db2stop
3．连接数据库
      db2 connect to o_yd user db2 using pwd
4．读数据库管理程序配置
      db2 get dbm cfg
5．写数据库管理程序配置
    ... </p>]]></description>
			<content:encoded><![CDATA[<blockquote dir="ltr"><p>1．启动数据库<br />
      db2start<br />
2．停止数据库<br />
      db2stop<br />
3．连接数据库<br />
      db2 connect to o_yd user db2 using pwd<br />
4．读数据库管理程序配置<br />
      db2 get dbm cfg<br />
5．写数据库管理程序配置<br />
      db2 update dbm cfg using 参数名 参数值<br />
6．读数据库的配置<br />
      db2 connect to o_yd user db2 using pwd<br />
      db2 get db cfg for o_yd<br />
7．写数据库的配置<br />
      db2 connect to o_yd user db2 using pwd<br />
      db2 update db cfg for o_yd using 参数名 参数值<br />
8．关闭所有应用连接<br />
      db2 force application all<br />
      db2 force application ID1,ID2,,,Idn MODE ASYNC<br />
      (db2 list application for db o_yd show detail)<br />
9．备份数据库<br />
      db2 force application all<br />
      db2 backup db o_yd to d:<br />
     (db2 initialize tape on \\.\tape0)<br />
     (db2 rewind tape on \\.\tape0)<br />
     db2 backup db o_yd to \\.\tape0<br />
10．恢复数据库<br />
     db2 restore db o_yd from d: to d:<br />
     db2 restore db o_yd from \\.\tape0 to d:<br />
11．绑定存储过程<br />
    db2 connect to o_yd user db2 using pwd<br />
    db2 bind c:\dfplus.bnd<br />
   拷贝存储过程到服务器上的C:\sqllib\function目录中<br />
12．整理表<br />
     db2 connect to o_yd user db2 using pwd<br />
     db2 reorg table ydd<br />
     db2 runstats on table ydd with distribution and indexes all</p>
<p>13．导出表数据<br />
      db2 export to c:\dftz.txt of del select * from dftz<br />
      db2 export to c:\dftz.ixf of ixf select * from dftz<br />
14．导入表数据<br />
import from c:\123.txt of del   insert into ylbx.czyxx<br />
db2 import to c:\dftz.txt of del commitcount 5000 messages   c:\dftz.msg insert into dftz<br />
db2 import to c:\dftz.ixf of ixf commitcount 5000 messages c:\dftz.msg insert into dftz<br />
db2 import to c:\dftz.ixf of ixf commitcount 5000 insert into dftz<br />
db2 import to c:\dftz.ixf of ixf commitcount 5000 insert_update into dftz<br />
db2 import to c:\dftz.ixf of ixf commitcount 5000 replace into dftz<br />
db2 import to c:\dftz.ixf of ixf commitcount 5000 create into dftz    (仅IXF)<br />
db2 import to c:\dftz.ixf of ixf commitcount 5000 replace_create into dftz   (仅IXF)</p>
<p>15．执行一个批处理文件<br />
        db2 -tf 批处理文件名<br />
       （文件中每一条命令用 ；结束）<br />
16．自动生成批处理文件<br />
      建文本文件：temp.sql<br />
    select &#8216;runstats on table DB2.&#8217; || tabname || &#8216;</p>
<p>    with distribution and   detailed indexes all;&#8217;</p>
<p>    from syscat.tables where tabschema=&#8217;DB2&#8242; and type=&#8217;T';<br />
db2 -tf temp.sql&gt;runstats.sql<br />
17．自动生成建表（视图）语句<br />
在服务器上：C:\sqllib\misc目录中<br />
db2 connect to o_yd user db2 using pwd<br />
db2look -d o_yd -u db2 -e -p -c c:\o_yd.txt<br />
18．其他命令<br />
grant dbadm on database to user bb</p>
<p>19select * from czyxx fetch first 1 rows only<br />
20db2look -d ylbx -u db2admin -w -asd -a -e -o a.txt21. 显示当前用户所有表</p>
<p>　　list tables<br />
22.列出所有的系统表</p>
<p>　　list tables for system<br />
23.查看表结构<br />
　　db2 describe select * from user.tables</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.mcadu.com/?feed=rss2&amp;p=25</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<script type="text/javascript" src="http://js.tongji.linezing.com/1511729/tongji.js"></script><noscript><a href="http://www.linezing.com"><img src="http://img.tongji.linezing.com/1511729/tongji.gif"/></a></noscript>Դ