tag:blogger.com,1999:blog-24707038720480663842024-03-14T13:13:22.587+08:00Shrek Wang の Utopia創造充滿自由軟體的世界!Shrek Wanghttp://www.blogger.com/profile/01295455960922959288noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-2470703872048066384.post-2654462001107904842010-11-13T10:00:00.006+08:002010-11-13T23:39:45.760+08:00CISCO 網路協議總結<div style="margin-bottom: 0cm;"><span style="font-family: Times New Roman,serif; font-size: small;"><b><span style="color: red;">1</span></b></span><span style="font-size: small;"><b><span style="color: red;">、思科網路路由協定網路</span></b></span><span style="font-family: Times New Roman,serif; font-size: small;"><b><span style="color: red;">/</span></b></span><span style="font-size: small;"><b><span style="color: red;">路由(</span></b></span><span style="font-family: Times New Roman,serif; font-size: small;"><b><span style="color: red;">Network/Routing</span></b></span><span style="font-size: small;"><b><span style="color: red;">)</span></b></span><span style="font-size: small;"> </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
<span style="color: blue;">CGMP</span></span><span style="color: blue; font-size: small;">:思科組管理協議(</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">CGMP</span></span><span style="color: blue; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">Cisco Group Management Protocol</span></span><span style="color: blue; font-size: small;">) </span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;"><br />
EIGRP</span></span><span style="color: blue; font-size: small;">:增強的內部閘道路由選擇協議(</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">EIGRP</span></span><span style="color: blue; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">Enhanced Interior Gateway Routing Protocol</span></span><span style="color: blue; font-size: small;">)</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;"><br />
IGRP</span></span><span style="color: blue; font-size: small;">:內部閘道路由協議(</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">IGRP</span></span><span style="color: blue; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">Interior Gateway Routing Protocol</span></span><span style="color: blue; font-size: small;">) </span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;"><br />
HSRP</span></span><span style="color: blue; font-size: small;">:熱備份路由器協議(</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">HSRP</span></span><span style="color: blue; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">Hot Standby Routing Protocol</span></span><span style="color: blue; font-size: small;">) </span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;"><br />
RGMP</span></span><span style="color: blue; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">Cisco Router Port Group Management Protocol </span><br />
<span style="color: darkorange;">CGMP</span></span><span style="color: darkorange; font-size: small;">:思科組管理協議 </span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: darkorange;">CGMP</span></span><span style="color: darkorange; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: darkorange;">Cisco Group Management Protocol </span></span><span style="color: black; font-size: small;">思科組管理協議 </span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: black;">CGMP: </span></span><span style="color: black; font-size: small;">主</span><span style="font-size: small;">要用來限定只向與 </span><span style="font-family: Times New Roman,serif; font-size: small;">IP </span><span style="font-size: small;">組播客戶機相連的埠轉發 </span><span style="font-family: Times New Roman,serif; font-size: small;">IP </span><span style="font-size: small;">組播資料包。這些客戶機自動加入和離開接收 </span><span style="font-family: Times New Roman,serif; font-size: small;">IP </span><span style="font-size: small;">組播流量的組,交換機根據請求動態改變其轉發行為。</span><span style="font-family: Times New Roman,serif; font-size: small;">CGMP </span><span style="font-size: small;">主要提供以下服務: 允許 </span><span style="font-family: Times New Roman,serif; font-size: small;">IP </span><span style="font-size: small;">組播資料包被交換到具有 </span><span style="font-family: Times New Roman,serif; font-size: small;">IP </span><span style="font-size: small;">組播客戶機的那些埠。 將網路帶寬保存在用戶欄位,不致於轉播不必要的</span><span style="font-family: Times New Roman,serif; font-size: small;">IP</span><span style="font-size: small;">組播流量。 不需要改變終端主機系統。 在為交換網路中的每個組播組創建獨立 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLAN </span><span style="font-size: small;">時不會產生額外開銷。 一旦 </span><span style="font-family: Times New Roman,serif; font-size: small;">CGMP </span><span style="font-size: small;">被啟動使用,它能自動識別與 </span><span style="font-family: Times New Roman,serif; font-size: small;">CGMP-Capable </span><span style="font-size: small;">路由器連接的埠。</span><span style="font-family: Times New Roman,serif; font-size: small;">CGMP </span><span style="font-size: small;">通過缺省方式被啟動,它支援最大為</span><span style="font-family: Times New Roman,serif; font-size: small;">64</span><span style="font-size: small;">的 </span><span style="font-family: Times New Roman,serif; font-size: small;">IP </span><span style="font-size: small;">組播組註冊。支持 </span><span style="font-family: Times New Roman,serif; font-size: small;">CGMP </span><span style="font-size: small;">的組播路由器週期性地相發送 </span><span style="font-family: Times New Roman,serif; font-size: small;">CGMP </span><span style="font-size: small;">加入資訊(</span><span style="font-family: Times New Roman,serif; font-size: small;">Join Messages</span><span style="font-size: small;">),用來通告自己執行網路交換行為。接收交換機保存資訊,並設置一個類似于路由器保持時間(</span><span style="font-family: Times New Roman,serif; font-size: small;">Holdtime</span><span style="font-size: small;">)的計時器(</span><span style="font-family: Times New Roman,serif; font-size: small;">Timer</span><span style="font-size: small;">)。 交換機每接收一個 </span><span style="font-family: Times New Roman,serif; font-size: small;">CGMP </span><span style="font-size: small;">加入資訊,計時器也隨其不斷更新。當路由器保持時間終止時,交換機負責將所有知道的組播組移出 </span><span style="font-family: Times New Roman,serif; font-size: small;">CGMP</span><span style="font-size: small;">。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
CGMP </span><span style="font-size: small;">結合 </span><span style="font-family: Times New Roman,serif; font-size: small;">IGMP </span><span style="font-size: small;">資訊共同實現動態分配 </span><span style="font-family: Times New Roman,serif; font-size: small;">Cisco Catalyst </span><span style="font-size: small;">交換機埠過程,從而 </span><span style="font-family: Times New Roman,serif; font-size: small;">IP </span><span style="font-size: small;">組播流量只被轉發給與 </span><span style="font-family: Times New Roman,serif; font-size: small;">IP </span><span style="font-size: small;">組播客戶機相連的那些埠。由於 </span><span style="font-family: Times New Roman,serif; font-size: small;">CGMP-Capable IP </span><span style="font-size: small;">組播路由器看到所有 </span><span style="font-family: Times New Roman,serif; font-size: small;">IGMP </span><span style="font-size: small;">資料包,因此它可以通知交換機特定主機什麼時候加入或離開 </span><span style="font-family: Times New Roman,serif; font-size: small;">IP </span><span style="font-size: small;">組播組。當 </span><span style="font-family: Times New Roman,serif; font-size: small;">CGMP-Capable </span><span style="font-size: small;">路由器接收一個 </span><span style="font-family: Times New Roman,serif; font-size: small;">IGMP </span><span style="font-size: small;">控制資料包時,它會創建一個包含請求類型(加入或離開)、組播組位址和主機有效 </span><span style="font-family: Times New Roman,serif; font-size: small;">MAC </span><span style="font-size: small;">位址等的 </span><span style="font-family: Times New Roman,serif; font-size: small;">CGMP </span><span style="font-size: small;">資料包。然後路由器將 </span><span style="font-family: Times New Roman,serif; font-size: small;">CGMP </span><span style="font-size: small;">資料包發送到所有 </span><span style="font-family: Times New Roman,serif; font-size: small;">Catalyst </span><span style="font-size: small;">交換機都知道的位址上。當交換機接收 </span><span style="font-family: Times New Roman,serif; font-size: small;">CGMP </span><span style="font-size: small;">資料包時,交換機負責轉換資料包同時更改組播組的轉發行為。至此,該組播流量只被發送到與適當 </span><span style="font-family: Times New Roman,serif; font-size: small;">IP </span><span style="font-size: small;">組播客戶機相連的那些埠。該過程是自動實現的,無需用戶參與。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
<span style="color: darkorange;">EIGRP</span></span><span style="color: darkorange; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: darkorange;">Enhanced Interior Gateway Routing Protocol, </span></span><span style="color: darkorange; font-size: small;">增強的內部閘道路由</span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
</span><span style="font-size: small;">選擇協議增強的內部閘道路由選擇協議 </span><span style="font-family: Times New Roman,serif; font-size: small;">EIGRP </span><span style="font-size: small;">是增強版的 </span><span style="font-family: Times New Roman,serif; font-size: small;">IGRP </span><span style="font-size: small;">協議。</span><span style="font-family: Times New Roman,serif; font-size: small;">IGRP </span><span style="font-size: small;">是思科提供的一種用於 </span><span style="font-family: Times New Roman,serif; font-size: small;">TCP/IP </span><span style="font-size: small;">和 </span><span style="font-family: Times New Roman,serif; font-size: small;">OSI </span><span style="font-size: small;">英特網服務的內部閘道路由選擇協定。它被視為是一種內部閘道協議,而作為域內路由選擇的一種外部閘道協議,它還沒有得到普遍應用。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
Enhanced IGRP </span><span style="font-size: small;">與其他路由選擇協議之間主要區別包括:收斂寬速(</span><span style="font-family: Times New Roman,serif; font-size: small;">Fast Convergence</span><span style="font-size: small;">)、支援變長子網掩模(</span><span style="font-family: Times New Roman,serif; font-size: small;">Subnet Mask</span><span style="font-size: small;">)、局部更新和多網路層協定。執行 </span><span style="font-family: Times New Roman,serif; font-size: small;">Enhanced IGRP </span><span style="font-size: small;">的路由器存儲了所有其相鄰路由表,以便於它能快速利用各種選擇路徑(</span><span style="font-family: Times New Roman,serif; font-size: small;">Alternate Routes</span><span style="font-size: small;">)。如果沒有合適路徑,</span><span style="font-family: Times New Roman,serif; font-size: small;">Enhanced IGRP </span><span style="font-size: small;">查詢其鄰居以獲取所需路徑。直到找到合適路徑,</span><span style="font-family: Times New Roman,serif; font-size: small;">Enhanced IGRP </span><span style="font-size: small;">查詢才會終止,否則一直持續下去。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
EIGRP </span><span style="font-size: small;">協議對所有的 </span><span style="font-family: Times New Roman,serif; font-size: small;">EIGRP </span><span style="font-size: small;">路由進行任意遮罩長度的路由聚合,從而減少路由資訊傳輸,節省帶寬。另外 </span><span style="font-family: Times New Roman,serif; font-size: small;">EIGRP </span><span style="font-size: small;">協定可以通過配置,在任意介面的位元邊界路由器上支援路由聚合。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
Enhanced IGRP </span><span style="font-size: small;">不作週期性更新。取而代之,當路徑度量標準改變時,</span><span style="font-family: Times New Roman,serif; font-size: small;">Enhanced IGRP </span><span style="font-size: small;">只發送局部更新(</span><span style="font-family: Times New Roman,serif; font-size: small;">Partial Updates</span><span style="font-size: small;">)資訊。局部更新資訊的傳輸自動受到限制,從而使得只有那些需要資訊的路由器才會更新。基於以上這兩種性能,因此 </span><span style="font-family: Times New Roman,serif; font-size: small;">Enhanced IGRP </span><span style="font-size: small;">損耗的帶寬比 </span><span style="font-family: Times New Roman,serif; font-size: small;">IGRP </span><span style="font-size: small;">少得多。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
<span style="color: darkorange;">IGRP</span></span><span style="color: darkorange; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: darkorange;">Interior Gateway Routing Protocol , </span></span><span style="color: darkorange; font-size: small;">內部閘道路由協議</span><span style="font-size: small;"> </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
</span><span style="font-size: small;">內部閘道路由協議(</span><span style="font-family: Times New Roman,serif; font-size: small;">IGRP</span><span style="font-size: small;">)是一種在自治系統(</span><span style="font-family: Times New Roman,serif; font-size: small;">AS</span><span style="font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;">autonomous system</span><span style="font-size: small;">)中提供路由選擇功能的路由協定。在上世紀</span><span style="font-family: Times New Roman,serif; font-size: small;">80</span><span style="font-size: small;">年代中期,最常用的內部路由協是路由資訊協定(</span><span style="font-family: Times New Roman,serif; font-size: small;">RIP</span><span style="font-size: small;">)。儘管 </span><span style="font-family: Times New Roman,serif; font-size: small;">RIP </span><span style="font-size: small;">對於實現小型或中型同機種互聯網路的路由選擇是非常有用的,但是隨著網路的不斷發展,其受到的限制也越加明顯。思科路由器的實用性和 </span><span style="font-family: Times New Roman,serif; font-size: small;">IGRP </span><span style="font-size: small;">的強大功能性,使得眾多小型互聯網路組織採用 </span><span style="font-family: Times New Roman,serif; font-size: small;">IGRP </span><span style="font-size: small;">取代了 </span><span style="font-family: Times New Roman,serif; font-size: small;">RIP</span><span style="font-size: small;">。早在上世紀</span><span style="font-family: Times New Roman,serif; font-size: small;">90</span><span style="font-size: small;">年代,思科就推出了增強的 </span><span style="font-family: Times New Roman,serif; font-size: small;">IGRP</span><span style="font-size: small;">,進一步提高了 </span><span style="font-family: Times New Roman,serif; font-size: small;">IGRP </span><span style="font-size: small;">的操作效率。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
IGRP </span><span style="font-size: small;">是一種距離向量(</span><span style="font-family: Times New Roman,serif; font-size: small;">Distance Vector</span><span style="font-size: small;">)內部閘道協議(</span><span style="font-family: Times New Roman,serif; font-size: small;">IGP</span><span style="font-size: small;">)。距離向量路由選擇協定採用數學上的距離標準計算路徑大小,該標準就是距離向量。距離向量路由選擇協定通常與鏈路狀 態路由選擇協定(</span><span style="font-family: Times New Roman,serif; font-size: small;">Link-State Routing Protocols</span><span style="font-size: small;">)相對,這主要在於:距離向量路由選擇協議是對互聯網中的所有節點發送本地連接資訊。 為具有更大的靈活性,</span><span style="font-family: Times New Roman,serif; font-size: small;">IGRP </span><span style="font-size: small;">支援多路徑路由選擇服務。在迴圈(</span><span style="font-family: Times New Roman,serif; font-size: small;">Round Robin</span><span style="font-size: small;">)方式下,兩條同等帶寬線路能運行單通信流,如果其中一根線路傳輸失敗,系統會自動切換到另一根線路上。多路徑可以是具有不同標準但仍然奏效的 多路徑線路。例如,一條線路比另一條線路優先</span><span style="font-family: Times New Roman,serif; font-size: small;">3</span><span style="font-size: small;">倍(即標準低</span><span style="font-family: Times New Roman,serif; font-size: small;">3</span><span style="font-size: small;">級),那麼意味著這條路徑可以使用</span><span style="font-family: Times New Roman,serif; font-size: small;">3</span><span style="font-size: small;">次。只有符合某特定最佳路徑範圍或在差量範圍之內的路徑 才可以用作多路徑。差量(</span><span style="font-family: Times New Roman,serif; font-size: small;">Variance</span><span style="font-size: small;">)是網路管理員可以設定的另一個值。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
<span style="color: darkorange;">HSRP</span></span><span style="color: darkorange; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: darkorange;">Hot Standby Router Protocol, </span></span><span style="color: darkorange; font-size: small;">熱備份路由器協議</span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
</span><span style="font-size: small;">熱備份路由器協定(</span><span style="font-family: Times New Roman,serif; font-size: small;">HSRP</span><span style="font-size: small;">)的設計目標是支援特定情況下 </span><span style="font-family: Times New Roman,serif; font-size: small;">IP </span><span style="font-size: small;">流量失敗轉移不會引起混亂、並允許主機使用單路由器,以及即使在實際第一跳路由器使用失敗的情形下仍能維護路由器間的連通性。換句話說,當源主機不能動態 知道第一跳路由器的 </span><span style="font-family: Times New Roman,serif; font-size: small;">IP </span><span style="font-size: small;">位址時,</span><span style="font-family: Times New Roman,serif; font-size: small;">HSRP </span><span style="font-size: small;">協議能夠保護第一跳路由器不出故障。該協議中含有多種路由器,對應一個虛擬路由器。</span><span style="font-family: Times New Roman,serif; font-size: small;">HSRP </span><span style="font-size: small;">協議只支援一個路由器代表虛擬路由器實現資料包轉發過程。終端主機將它們各自的資料包轉發到該虛擬路由器上。 負責轉發資料包的路由器稱之為主動路由器(</span><span style="font-family: Times New Roman,serif; font-size: small;">Active Router</span><span style="font-size: small;">)。一旦主動路由器出現故障,</span><span style="font-family: Times New Roman,serif; font-size: small;">HSRP </span><span style="font-size: small;">將啟動備份路由器(</span><span style="font-family: Times New Roman,serif; font-size: small;">Standby Routers</span><span style="font-size: small;">)取代主動路由器。</span><span style="font-family: Times New Roman,serif; font-size: small;">HSRP </span><span style="font-size: small;">協議提供了一種決定使用主動路由器還是備份路由器的機制,並指定一個虛擬的 </span><span style="font-family: Times New Roman,serif; font-size: small;">IP </span><span style="font-size: small;">位址作為網路系統的缺省閘道位址。如果主動路由器出現故障,備份路由器(</span><span style="font-family: Times New Roman,serif; font-size: small;">Standby Routers</span><span style="font-size: small;">)承接主動路由器的所有任務,並且不會導致主機連通中斷現象。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
HSRP </span><span style="font-size: small;">運行在 </span><span style="font-family: Times New Roman,serif; font-size: small;">UDP </span><span style="font-size: small;">上,採用埠號</span><span style="font-family: Times New Roman,serif; font-size: small;">1985</span><span style="font-size: small;">。路由器轉發協定資料包的源位址使用的是實際 </span><span style="font-family: Times New Roman,serif; font-size: small;">IP </span><span style="font-size: small;">位址,而並非虛擬位址,正是基於這一點,</span><span style="font-family: Times New Roman,serif; font-size: small;">HSRP </span><span style="font-size: small;">路由器間能相互識別。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
<span style="color: darkorange;">RGMP</span></span><span style="color: darkorange; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: darkorange;">Cisco Router Port Group Management Protocol , </span></span><span style="color: darkorange; font-size: small;">思科路由器埠組管理協議</span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
</span><span style="font-size: small;">思科路由器埠組管理協議(</span><span style="font-family: Times New Roman,serif; font-size: small;">RGMP</span><span style="font-size: small;">)彌補了 </span><span style="font-family: Times New Roman,serif; font-size: small;">Internet </span><span style="font-size: small;">組管理協議(</span><span style="font-family: Times New Roman,serif; font-size: small;">IGMP</span><span style="font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;">Internet Group Management Protocol</span><span style="font-size: small;">)在 </span><span style="font-family: Times New Roman,serif; font-size: small;">Snooping </span><span style="font-size: small;">技術機制上所存在的不足。</span><span style="font-family: Times New Roman,serif; font-size: small;">RGMP </span><span style="font-size: small;">協議作用于組播路由器和交換機之間。通過 </span><span style="font-family: Times New Roman,serif; font-size: small;">RGMP</span><span style="font-size: small;">,可以將交換機中轉發的組播資料包固定在所需要的路由器中。</span><span style="font-family: Times New Roman,serif; font-size: small;">RGMP </span><span style="font-size: small;">的設計目標是應用于具有多種路由器相連的骨幹交換網(</span><span style="font-family: Times New Roman,serif; font-size: small;">Backbone Switched Networks</span><span style="font-size: small;">)。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
IGMP Snooping </span><span style="font-size: small;">技術的局限性主要體現在:該技術只能將組播流量固定在接收機間經過其他交換機直接或間接相連的交換埠,在 </span><span style="font-family: Times New Roman,serif; font-size: small;">IGMP Snooping </span><span style="font-size: small;">技術下,組播流量不能固定在至少與一台組播路由器相連的埠處,從而引起這些埠的組播流量擴散。</span><span style="font-family: Times New Roman,serif; font-size: small;">IGMP Snooping </span><span style="font-size: small;">是機制固有的局限性。基於此,路由器無法報告流量狀態,所以交換機只能知道主機請求的組播流量類型,而不知道路由器埠接收的流量類型。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
RGMP </span><span style="font-size: small;">協定支援將組播流量固定在路由器埠。為高效實現流量固定,要求網路交換機和路由器都必須支持 </span><span style="font-family: Times New Roman,serif; font-size: small;">RGMP </span><span style="font-size: small;">。通過 </span><span style="font-family: Times New Roman,serif; font-size: small;">RGMP</span><span style="font-size: small;">,骨幹交換機可以知道每個埠需要的組類型,然後組播路由器將該資訊傳送給交換機。但是路由器只發送 </span><span style="font-family: Times New Roman,serif; font-size: small;">RGMP </span><span style="font-size: small;">資訊,而忽視了所接收的 </span><span style="font-family: Times New Roman,serif; font-size: small;">RGMP </span><span style="font-size: small;">資訊。當組不再需要接收通信流量時,路由器會發送一個 </span><span style="font-family: Times New Roman,serif; font-size: small;">RGMP </span><span style="font-size: small;">離開資訊(</span><span style="font-family: Times New Roman,serif; font-size: small;">Leave Message</span><span style="font-size: small;">)。</span><span style="font-family: Times New Roman,serif; font-size: small;">RGMP </span><span style="font-size: small;">協定中網路交換機需要消耗網路埠達到 </span><span style="font-family: Times New Roman,serif; font-size: small;">RGMP </span><span style="font-size: small;">資訊並對其進行處理操作。此外,</span><span style="font-family: Times New Roman,serif; font-size: small;">RGMP </span><span style="font-size: small;">中的交換機不允許將接收到的 </span><span style="font-family: Times New Roman,serif; font-size: small;">RGMP </span><span style="font-size: small;">資訊轉發</span><span style="font-family: Times New Roman,serif; font-size: small;">/</span><span style="font-size: small;">擴散到其他網路埠。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
RGMP </span><span style="font-size: small;">的設計目標是與支援分配樹 </span><span style="font-family: Times New Roman,serif; font-size: small;">Join/Prune </span><span style="font-size: small;">的組播路由選擇協定相結合使用。其典型協議為 </span><span style="font-family: Times New Roman,serif; font-size: small;">PIM-SM</span><span style="font-size: small;">。</span><span style="font-family: Times New Roman,serif; font-size: small;">RGMP </span><span style="font-size: small;">協議只規定了 </span><span style="font-family: Times New Roman,serif; font-size: small;">IP v4 </span><span style="font-size: small;">組播路由選擇操作,而不包括 </span><span style="font-family: Times New Roman,serif; font-size: small;">IP v6</span><span style="font-size: small;">。</span><span style="font-family: Times New Roman,serif; font-size: small;"></span><br />
<span style="font-family: Times New Roman,serif; font-size: small;"><br />
<b><span style="color: red;">2</span></b></span><span style="font-size: small;"><b><span style="color: red;">、思科資料連結協議資料連結(</span></b></span><span style="font-family: Times New Roman,serif; font-size: small;"><b><span style="color: red;">Data Link</span></b></span><span style="font-size: small;"><b><span style="color: red;">)</span></b></span><span style="font-size: small;"> </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
<span style="color: blue;">CDP</span></span><span style="color: blue; font-size: small;">:思科發現協議(</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">CDP</span></span><span style="color: blue; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">Cisco Discovery Protocol</span></span><span style="color: blue; font-size: small;">) </span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;"><br />
DTP</span></span><span style="color: blue; font-size: small;">:思科動態中繼協定(</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">DTP</span></span><span style="color: blue; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">Dynamic Trunk Protocol</span></span><span style="color: blue; font-size: small;">) </span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;"><br />
ISL & DISL</span></span><span style="color: blue; font-size: small;">:思科交換鏈路內協定和動態 </span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">ISL </span></span><span style="color: blue; font-size: small;">協定(</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">ISL</span></span><span style="color: blue; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">Inter-Switch Link Protocol</span></span><span style="color: blue; font-size: small;">) </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
<span style="color: blue;">VTP</span></span><span style="color: blue; font-size: small;">:思科</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">VLAN</span></span><span style="color: blue; font-size: small;">中繼協議(</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">VTP</span></span><span style="color: blue; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">VLAN Trunking Protocol</span></span><span style="color: blue; font-size: small;">) </span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;"><br />
</span><span style="color: darkorange;">CDP</span></span><span style="color: darkorange; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: darkorange;">Cisco Discovery Protocol , </span></span><span style="color: darkorange; font-size: small;">思科發現協議 </span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: darkorange;">CDP</span><br />
CDP</span><span style="font-size: small;">基本上是用來獲取相鄰設備的協定位址以及發現這些設備的平臺。</span><span style="font-family: Times New Roman,serif; font-size: small;">CDP </span><span style="font-size: small;">也可為路由器的使用提供相關介面資訊。</span><span style="font-family: Times New Roman,serif; font-size: small;">CDP </span><span style="font-size: small;">是一種獨立媒體協議,運行在所有思科本身製造的設備上,包括路由器、網橋、接入伺服器和交換機。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
SNMP </span><span style="font-size: small;">中結合使用 </span><span style="font-family: Times New Roman,serif; font-size: small;">CDP </span><span style="font-size: small;">管理資訊基礎 </span><span style="font-family: Times New Roman,serif; font-size: small;">MIB</span><span style="font-size: small;">,能使網路管理應用獲知設備類型和相鄰設備的 </span><span style="font-family: Times New Roman,serif; font-size: small;">SNMP </span><span style="font-size: small;">代理位址,並向這些設備發送 </span><span style="font-family: Times New Roman,serif; font-size: small;">SNMP </span><span style="font-size: small;">查詢請求。</span><span style="font-family: Times New Roman,serif; font-size: small;">Cisco </span><span style="font-size: small;">發現協定支援 </span><span style="font-family: Times New Roman,serif; font-size: small;">CISCO-CDP-MIB</span><span style="font-size: small;">。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
CDP </span><span style="font-size: small;">運行在所有的媒體上,從而支援子網訪問協定 </span><span style="font-family: Times New Roman,serif; font-size: small;">SNAP</span><span style="font-size: small;">,包括局域網、幀中繼和非同步傳輸模式 </span><span style="font-family: Times New Roman,serif; font-size: small;">ATM </span><span style="font-size: small;">物理媒體。</span><span style="font-family: Times New Roman,serif; font-size: small;">CDP </span><span style="font-size: small;">只運行於資料連結層,因此,支援不同網路層協定的兩個系統彼此相互瞭解。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
CDP </span><span style="font-size: small;">配置的每台設備發送週期性資訊,如我們所知的廣告到組播地址。每台設備至少廣告一個位址,在該位址下,它可以接收 </span><span style="font-family: Times New Roman,serif; font-size: small;">SNMP </span><span style="font-size: small;">資訊。廣告包括生存期,或保持時間等資訊,這些資訊指出了在取消之前接收設備應該保持 </span><span style="font-family: Times New Roman,serif; font-size: small;">CDP </span><span style="font-size: small;">資訊的時間長短。此外每台設備還要注意其他設備發出的週期性 </span><span style="font-family: Times New Roman,serif; font-size: small;">CDP </span><span style="font-size: small;">資訊,從中瞭解相鄰設備資訊並決定那些設備的媒體介面什麼時候增長或降低。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
CDP </span><span style="font-size: small;">版本</span><span style="font-family: Times New Roman,serif; font-size: small;">2</span><span style="font-size: small;">,是目前該協議使用最普遍的版本,它具有更高的智慧設備跟蹤等性能。支援該性能的報告機制,提供快速差錯跟蹤功能,有利於縮短停機時間 (</span><span style="font-family: Times New Roman,serif; font-size: small;">Downtime</span><span style="font-size: small;">)。報告差錯資訊可以發送到控制臺或日誌伺服器(</span><span style="font-family: Times New Roman,serif; font-size: small;">Logging Server</span><span style="font-size: small;">),這些差錯資訊包括連接埠上不匹配(</span><span style="font-family: Times New Roman,serif; font-size: small;">Unmatching</span><span style="font-size: small;">)的本地</span><span style="font-family: Times New Roman,serif; font-size: small;">??VLAN IDs</span><span style="font-size: small;">(</span><span style="font-family: Times New Roman,serif; font-size: small;">IEEE 802.1Q</span><span style="font-size: small;">)以及連接設備間不匹配的埠雙向狀態。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
<span style="color: darkorange;">DTP</span></span><span style="color: darkorange; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: darkorange;">Cisco Dynamic Trunking Protocol, </span></span><span style="color: darkorange; font-size: small;">思科動態中繼協定</span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
</span><span style="font-size: small;">思科動態中繼協定 </span><span style="font-family: Times New Roman,serif; font-size: small;">DTP</span><span style="font-size: small;">,是 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLAN </span><span style="font-size: small;">組中思科所有協議,主要用於協商兩台設備間鏈路上的中繼過程以及中繼封裝 </span><span style="font-family: Times New Roman,serif; font-size: small;">802.1Q </span><span style="font-size: small;">類型。 中繼協定有很多不同類型。如果埠被設置為 </span><span style="font-family: Times New Roman,serif; font-size: small;">Trunk </span><span style="font-size: small;">埠,那麼該埠便具有自動中繼功能,在某些情況下,甚至具有協商埠中繼類型的功能。這種與其他設備之間進行的協商中繼方法的過程被稱之為動態中繼技術。 首先關注的是,中繼電纜(</span><span style="font-family: Times New Roman,serif; font-size: small;">Trunk Cable</span><span style="font-size: small;">)終端最好對它們正在中繼或它們將中繼幀視為正常幀問題達成一致。在資訊幀頭另外添加標籤資訊容易導致終端站的混亂,這是因為終端站的驅動棧無 法識別該標籤資訊,從而導致終端系統上鎖或失敗。為解決這個問題,思科創建了交換協定以實現通信目的。推出的第一版本是 </span><span style="font-family: Times New Roman,serif; font-size: small;">VTP</span><span style="font-size: small;">,即 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLAN </span><span style="font-size: small;">中繼協議,它與 </span><span style="font-family: Times New Roman,serif; font-size: small;">ISL </span><span style="font-size: small;">共同作用。最新推出的版本,即動態中繼協定 </span><span style="font-family: Times New Roman,serif; font-size: small;">DTP </span><span style="font-size: small;">與 </span><span style="font-family: Times New Roman,serif; font-size: small;">802.1Q </span><span style="font-size: small;">共同作用。 其次是創建 </span><span style="font-family: Times New Roman,serif; font-size: small;">LANs</span><span style="font-size: small;">。交換機要想實現獨立配置 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLANs </span><span style="font-size: small;">交換,需要做很多工作並且容易引起較多矛盾,這是因為 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLAN 100 </span><span style="font-size: small;">運行在一台交換機上,計費卻在另一臺上。這很容易破壞機器的 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLAN </span><span style="font-size: small;">安全模式,而故障恢復機制正是為此而設立的。此外也可通過 </span><span style="font-family: Times New Roman,serif; font-size: small;">VTP/DTP </span><span style="font-size: small;">解決該問題。同一管理控制臺可以在某台交換機上創建或刪除一個 </span><span style="font-family: Times New Roman,serif; font-size: small;">VTP</span><span style="font-size: small;">,並使資訊自動傳播到交換機組上,這種交換機組可能是一個 </span><span style="font-family: Times New Roman,serif; font-size: small;">VTP </span><span style="font-size: small;">域。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
<span style="color: darkorange;">ISL & DISL</span></span><span style="color: darkorange; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: darkorange;">Cisco Inter-Switch Link Protocol and Dynamic ISL Protocol , </span></span><span style="color: darkorange; font-size: small;">思科交換鏈路內協定和動態 </span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: darkorange;">ISL </span></span><span style="color: darkorange; font-size: small;">協定</span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
</span><span style="font-size: small;">交換鏈路內協議(</span><span style="font-family: Times New Roman,serif; font-size: small;">ISL</span><span style="font-size: small;">),是思科私有協議,主要用於維護交換機和路由器間的通信流量等 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLAN </span><span style="font-size: small;">資訊。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
ISL </span><span style="font-size: small;">標籤(</span><span style="font-family: Times New Roman,serif; font-size: small;">Tagging</span><span style="font-size: small;">)能與 </span><span style="font-family: Times New Roman,serif; font-size: small;">802.1Q </span><span style="font-size: small;">幹線執行相同任務,只是所採用的幀格式不同。</span><span style="font-family: Times New Roman,serif; font-size: small;">ISL </span><span style="font-size: small;">幹線(</span><span style="font-family: Times New Roman,serif; font-size: small;">Trunks</span><span style="font-size: small;">)是 </span><span style="font-family: Times New Roman,serif; font-size: small;">Cisco </span><span style="font-size: small;">私有,即指兩設備間(如交換機)的一條點對點連接線路。在“交換鏈路內協議”名稱中即包含了這層含義。</span><span style="font-family: Times New Roman,serif; font-size: small;">ISL </span><span style="font-size: small;">幀標籤採用一種低延遲(</span><span style="font-family: Times New Roman,serif; font-size: small;">Low-Latency</span><span style="font-size: small;">)機制為單個物理路徑上的多 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLANs </span><span style="font-size: small;">流量提供複用技術。</span><span style="font-family: Times New Roman,serif; font-size: small;">ISL </span><span style="font-size: small;">主要用於實現交換機、路由器以及各節點(如伺服器所使用的網路介面卡)之間的連接操作。為支援 </span><span style="font-family: Times New Roman,serif; font-size: small;">ISL </span><span style="font-size: small;">功能特徵,每台連接設備都必須採用 </span><span style="font-family: Times New Roman,serif; font-size: small;">ISL </span><span style="font-size: small;">配置。</span><span style="font-family: Times New Roman,serif; font-size: small;">ISL </span><span style="font-size: small;">所配置的路由器支援 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLAN </span><span style="font-size: small;">內通信服務。非 </span><span style="font-family: Times New Roman,serif; font-size: small;">ISL </span><span style="font-size: small;">配置的設備,則用於接收由 </span><span style="font-family: Times New Roman,serif; font-size: small;">ISL </span><span style="font-size: small;">封裝的乙太幀(</span><span style="font-family: Times New Roman,serif; font-size: small;">Ethernet Frames</span><span style="font-size: small;">),通常情況下,非 </span><span style="font-family: Times New Roman,serif; font-size: small;">ISL </span><span style="font-size: small;">配置的設備將這些接收的幀及其大小歸因於協議差錯。 和 </span><span style="font-family: Times New Roman,serif; font-size: small;">802.1Q </span><span style="font-size: small;">一樣,</span><span style="font-family: Times New Roman,serif; font-size: small;">ISL </span><span style="font-size: small;">作用於 </span><span style="font-family: Times New Roman,serif; font-size: small;">OSI </span><span style="font-size: small;">模型第</span><span style="font-family: Times New Roman,serif; font-size: small;">2</span><span style="font-size: small;">層。所不同的是,</span><span style="font-family: Times New Roman,serif; font-size: small;">ISL </span><span style="font-size: small;">協定頭和協定尾封裝了整個第</span><span style="font-family: Times New Roman,serif; font-size: small;">2</span><span style="font-size: small;">層的乙太幀。正因為此,</span><span style="font-family: Times New Roman,serif; font-size: small;">ISL </span><span style="font-size: small;">被認為是一種能在交換機間傳送第</span><span style="font-family: Times New Roman,serif; font-size: small;">2</span><span style="font-size: small;">層任何類型的幀或上層協定的獨立協定。</span><span style="font-family: Times New Roman,serif; font-size: small;">ISL </span><span style="font-size: small;">所封裝的幀可以是權杖環(</span><span style="font-family: Times New Roman,serif; font-size: small;">Token Ring</span><span style="font-size: small;">)或快速乙太網(</span><span style="font-family: Times New Roman,serif; font-size: small;">Fast Ethernet</span><span style="font-size: small;">),它們在發送端和接收端之間維持不變地實現傳送。</span><span style="font-family: Times New Roman,serif; font-size: small;">ISL </span><span style="font-size: small;">具有以下特徵: 由專用積體電路執行(</span><span style="font-family: Times New Roman,serif; font-size: small;">ASIC</span><span style="font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;">application-specific integrated circuits</span><span style="font-size: small;">) 不干涉客戶機站;客戶機不會看到 </span><span style="font-family: Times New Roman,serif; font-size: small;">ISL </span><span style="font-size: small;">協議頭 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
ISL NICs </span><span style="font-size: small;">為交換機與交換機、路由器與交換機、交換機與伺服器等之間的運行提供高效性能。 動態交換鏈路內協定(</span><span style="font-family: Times New Roman,serif; font-size: small;">DISL</span><span style="font-size: small;">),也屬於思科協議。它簡化了兩台相互連接的快速乙太網設備上 </span><span style="font-family: Times New Roman,serif; font-size: small;">ISL </span><span style="font-size: small;">幹線的創建過程。快速乙太通道技術為高性能中樞連接提供了兩個全雙工快速乙太網鏈路是集中性。由於 </span><span style="font-family: Times New Roman,serif; font-size: small;">DISL </span><span style="font-size: small;">中只允許將一個鏈路終端配置為幹線,所以 </span><span style="font-family: Times New Roman,serif; font-size: small;">DISL </span><span style="font-size: small;">實現了最小化 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLAN </span><span style="font-size: small;">幹線。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
<span style="color: darkorange;">VTP</span></span><span style="color: darkorange; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: darkorange;">Cisco VLAN Trunking Protocol, </span></span><span style="color: darkorange; font-size: small;">思科</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: darkorange;">VLAN</span></span><span style="color: darkorange; font-size: small;">中繼協議</span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
VLAN </span><span style="font-size: small;">中繼協議(</span><span style="font-family: Times New Roman,serif; font-size: small;">VTP</span><span style="font-size: small;">)是思科第</span><span style="font-family: Times New Roman,serif; font-size: small;">2</span><span style="font-size: small;">層資訊傳送協定,主要控制網路範圍內 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLANs </span><span style="font-size: small;">的添加、刪除和重命名。</span><span style="font-family: Times New Roman,serif; font-size: small;">VTP </span><span style="font-size: small;">減少了交換網路中的管理事務。當用戶要為 </span><span style="font-family: Times New Roman,serif; font-size: small;">VTP </span><span style="font-size: small;">伺服器配置新 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLAN </span><span style="font-size: small;">時,可以通過域內所有交換機分配 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLAN</span><span style="font-size: small;">,這樣可以避免到處配置相同的 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLAN</span><span style="font-size: small;">。</span><span style="font-family: Times New Roman,serif; font-size: small;">VTP </span><span style="font-size: small;">是思科私有協定,它支援大多數的 </span><span style="font-family: Times New Roman,serif; font-size: small;">Cisco Catalyst </span><span style="font-size: small;">系列產品。 通過 </span><span style="font-family: Times New Roman,serif; font-size: small;">VTP</span><span style="font-size: small;">,其域內的所有交換機都清楚所有的 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLANs </span><span style="font-size: small;">情況,但當 </span><span style="font-family: Times New Roman,serif; font-size: small;">VTP </span><span style="font-size: small;">可以建立多餘流量時情況例外。這時,所有未知的單播(</span><span style="font-family: Times New Roman,serif; font-size: small;">Unicasts</span><span style="font-size: small;">)和廣播在整個 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLAN </span><span style="font-size: small;">內進行擴散,使得網路中的所有交換機接收到所有廣播,即使 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLAN </span><span style="font-size: small;">中沒有連接用戶,情況也不例外。而 </span><span style="font-family: Times New Roman,serif; font-size: small;">VTP Pruning </span><span style="font-size: small;">技術正可以消除該多餘流量。 缺省方式下,所有</span><span style="font-family: Times New Roman,serif; font-size: small;">Cisco Catalyst</span><span style="font-size: small;">交換機都被配置為 </span><span style="font-family: Times New Roman,serif; font-size: small;">VTP </span><span style="font-size: small;">伺服器。這種情形適用於 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLAN </span><span style="font-size: small;">信息量小且易存儲於任意交換機(</span><span style="font-family: Times New Roman,serif; font-size: small;">NVRAM</span><span style="font-size: small;">)上的小型網路。對於大型網路,由於每台交換機都會進行 </span><span style="font-family: Times New Roman,serif; font-size: small;">NVRAM </span><span style="font-size: small;">存儲操作,但該操作對於某些點是多餘的,所以在這些點必須設置一個“判決呼叫”(</span><span style="font-family: Times New Roman,serif; font-size: small;">Judgment Call</span><span style="font-size: small;">)。基於此,網路管理員所使用的 </span><span style="font-family: Times New Roman,serif; font-size: small;">VTP </span><span style="font-size: small;">伺服器應該採用配置較好的交換機,其他交換機則作為客戶機使用。此外需要有某些 </span><span style="font-family: Times New Roman,serif; font-size: small;">VTP </span><span style="font-size: small;">伺服器能提供網路所需的一定量的冗餘。 到目前為止,</span><span style="font-family: Times New Roman,serif; font-size: small;">VTP </span><span style="font-size: small;">具有三種版本。其中 </span><span style="font-family: Times New Roman,serif; font-size: small;">VTP v2 </span><span style="font-size: small;">與 </span><span style="font-family: Times New Roman,serif; font-size: small;">VTP v1 </span><span style="font-size: small;">區別不大,主要不同在於:</span><span style="font-family: Times New Roman,serif; font-size: small;">VTP v2 </span><span style="font-size: small;">支援權杖環 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLANs</span><span style="font-size: small;">,而 </span><span style="font-family: Times New Roman,serif; font-size: small;">VTP v1 </span><span style="font-size: small;">不支援。通常只有在使用 </span><span style="font-family: Times New Roman,serif; font-size: small;">Token Ring VLANs </span><span style="font-size: small;">時,才會使用到 </span><span style="font-family: Times New Roman,serif; font-size: small;">VTP v2</span><span style="font-size: small;">,否則一般情況下並不使用 </span><span style="font-family: Times New Roman,serif; font-size: small;">VTP v2</span><span style="font-size: small;">。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
VTPv3 </span><span style="font-size: small;">不能直接處理 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLANs </span><span style="font-size: small;">事務,它只負責管理域(</span><span style="font-family: Times New Roman,serif; font-size: small;">Administrative Domain</span><span style="font-size: small;">)內不透明資料庫的分配任務。與前兩版相比,</span><span style="font-family: Times New Roman,serif; font-size: small;">VTP v3 </span><span style="font-size: small;">具有以下改進: 支持擴展 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLANs</span><span style="font-size: small;">。 支援專用 </span><span style="font-family: Times New Roman,serif; font-size: small;">VLANs </span><span style="font-size: small;">的創建和廣告。 提供伺服器認證性能。 避免“錯誤”資料庫進入 </span><span style="font-family: Times New Roman,serif; font-size: small;">VTP </span><span style="font-size: small;">域。 與 </span><span style="font-family: Times New Roman,serif; font-size: small;">VTP v1 </span><span style="font-size: small;">和 </span><span style="font-family: Times New Roman,serif; font-size: small;">VTP v2 </span><span style="font-size: small;">交互作用。 支援每埠(</span><span style="font-family: Times New Roman,serif; font-size: small;">On a Per-Port Basis</span><span style="font-size: small;">)配置。 支援傳播</span><span style="font-family: Times New Roman,serif; font-size: small;">VLAN</span><span style="font-size: small;">資料庫和其他資料庫類型。</span><span style="font-family: Times New Roman,serif; font-size: small;"></span><br />
<span style="font-family: Times New Roman,serif; font-size: small;"><br />
<b><span style="color: red;">3</span></b></span><span style="font-size: small;"><b><span style="color: red;">、思科網路安全技術協定網路安全技術(</span></b></span><span style="font-family: Times New Roman,serif; font-size: small;"><b><span style="color: red;">Security/VPN</span></b></span><span style="font-size: small;"><b><span style="color: red;">)</span></b></span><span style="font-size: small;"> </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
<span style="color: blue;">L2F</span></span><span style="color: blue; font-size: small;">:第二層轉發協議(</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">Layer 2 Forwarding Protocol</span></span><span style="color: blue; font-size: small;">) </span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;"><br />
TACACS</span></span><span style="color: blue; font-size: small;">:終端訪問控制器訪問控制系統(</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">TACACS</span></span><span style="color: blue; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: blue;">Terminal Access Controller Access Control System</span></span><span style="color: blue; font-size: small;">)</span><span style="font-size: small;"> </span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: darkorange;"> </span></span><br />
<span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: darkorange;">L2F: Level 2 Forwarding protocol , </span></span><span style="color: darkorange; font-size: small;">第二層轉發協議</span><span style="font-size: small;"> </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
</span><span style="font-size: small;">第二層轉發協定(</span><span style="font-family: Times New Roman,serif; font-size: small;">L2F</span><span style="font-size: small;">)是一種用來建立跨越公用結構組織(如網際網路)的安全隧道,為企業家庭通路連接一個 </span><span style="font-family: Times New Roman,serif; font-size: small;">ISP POP </span><span style="font-size: small;">的協議。這個隧道建立了一個用戶與企業客戶網路間的虛擬點對點連接。 第二層轉發協議(</span><span style="font-family: Times New Roman,serif; font-size: small;">L2F</span><span style="font-size: small;">)允許鏈路層協議隧道技術。使用這樣的隧道,使得分離原始撥號伺服器位置即撥號協定連接終止的位置與提供的網路訪問的位置成為可 能。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
L2F </span><span style="font-size: small;">允許在 </span><span style="font-family: Times New Roman,serif; font-size: small;">L2F </span><span style="font-size: small;">中封裝 </span><span style="font-family: Times New Roman,serif; font-size: small;">PPP/SLIP </span><span style="font-size: small;">包。</span><span style="font-family: Times New Roman,serif; font-size: small;">ISP NAS </span><span style="font-size: small;">與家庭通路都需要請求一種常規封裝協議,所以可以成功地傳輸或接收 </span><span style="font-family: Times New Roman,serif; font-size: small;">SLIP/PPP </span><span style="font-size: small;">包。 相關鏈結 </span><span style="font-family: Times New Roman,serif; font-size: small;">GRE</span><span style="font-size: small;">、</span><span style="font-family: Times New Roman,serif; font-size: small;">PPP</span><span style="font-size: small;">、</span><span style="font-family: Times New Roman,serif; font-size: small;">L2TP</span><span style="font-size: small;">、</span><span style="font-family: Times New Roman,serif; font-size: small;">PPTP</span><span style="font-size: small;">、</span><span style="font-family: Times New Roman,serif; font-size: small;">SLIP </span><span style="font-size: small;">組織來源 </span><span style="font-family: Times New Roman,serif; font-size: small;">L2F </span><span style="font-size: small;">由 </span><span style="font-family: Times New Roman,serif; font-size: small;">Cisco </span><span style="font-size: small;">定義。 相關鏈結</span><span style="font-family: Times New Roman,serif; font-size: small;"><a href="http://www.javvin.com/protocol/rfc2341.pdf" target="_blank"><span style="color: blue;">http://www.javvin.com/protocol/rfc2341.pdf</span></a></span><span style="font-size: small;">: </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
Cisco Layer Two Forwarding </span><span style="font-size: small;">(</span><span style="font-family: Times New Roman,serif; font-size: small;">Protocol</span><span style="font-size: small;">) — “</span><span style="font-family: Times New Roman,serif; font-size: small;">L2F” <span style="color: darkorange;">TACACS & TACACS+</span></span><span style="color: darkorange; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: darkorange;">Terminal Access Controller Access Control System , </span></span><span style="color: darkorange; font-size: small;">終端訪問控制器訪問控制系統</span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
</span><span style="font-size: small;">終端訪問控制器訪問控制系統(</span><span style="font-family: Times New Roman,serif; font-size: small;">TACACS</span><span style="font-size: small;">)通過一個或多個中心伺服器為路由器、網路訪問控制器以及其他網路處理設備提供了訪問控制服務。</span><span style="font-family: Times New Roman,serif; font-size: small;">TACACS </span><span style="font-size: small;">支持獨立的認證(</span><span style="font-family: Times New Roman,serif; font-size: small;">Authentication</span><span style="font-size: small;">)、授權(</span><span style="font-family: Times New Roman,serif; font-size: small;">Authorization</span><span style="font-size: small;">)和計費(</span><span style="font-family: Times New Roman,serif; font-size: small;">Accounting</span><span style="font-size: small;">)功能。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
TACACS </span><span style="font-size: small;">允許客戶機擁有自己的用戶名和口令,並發送查詢指令到 </span><span style="font-family: Times New Roman,serif; font-size: small;">TACACS </span><span style="font-size: small;">認證伺服器(又稱之為</span><span style="font-family: Times New Roman,serif; font-size: small;">TACACS Daemon </span><span style="font-size: small;">或 </span><span style="font-family: Times New Roman,serif; font-size: small;">TACACSD</span><span style="font-size: small;">)。通常情況下,該伺服器運行在主機程式上。主機返回一個關於接收</span><span style="font-family: Times New Roman,serif; font-size: small;">/</span><span style="font-size: small;">拒絕請求的回應,然後根據回應類型,判斷 </span><span style="font-family: Times New Roman,serif; font-size: small;">TIP </span><span style="font-size: small;">是否允許訪問。在上述過程中,判斷處理採取“公開化(</span><span style="font-family: Times New Roman,serif; font-size: small;">Opened Up</span><span style="font-size: small;">)”並且對應的演算法和資料取決於 </span><span style="font-family: Times New Roman,serif; font-size: small;">TACACS Daemon </span><span style="font-size: small;">運行的物件。此外 </span><span style="font-family: Times New Roman,serif; font-size: small;">TACACS </span><span style="font-size: small;">擴展協定支援更多類型的認證請求和回應代碼。 當前 </span><span style="font-family: Times New Roman,serif; font-size: small;">TACACS </span><span style="font-size: small;">具有三種版本,其中第三版 </span><span style="font-family: Times New Roman,serif; font-size: small;">TACACS+ </span><span style="font-size: small;">與前兩版不相容。</span><span style="font-family: Times New Roman,serif; font-size: small;"></span><br />
<span style="font-family: Times New Roman,serif; font-size: small;"><br />
<b><span style="color: red;">4 </span></b></span><span style="font-size: small;"><b><span style="color: red;">思科其他協議</span></b></span><span style="font-size: small;"> </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
<span style="color: darkorange;">SCCP</span></span><span style="color: darkorange; font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;"><span style="color: darkorange;">Skinny Client Control Protocol, </span></span><span style="color: darkorange; font-size: small;">信令連接控制協定信令連接控制協議</span><span style="font-size: small;"> </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
SCCP </span><span style="font-size: small;">是用於思科呼叫管理及其 </span><span style="font-family: Times New Roman,serif; font-size: small;">VOIP </span><span style="font-size: small;">電話之間的思科專有協議。其他供應商也支援該協定。 為解決 </span><span style="font-family: Times New Roman,serif; font-size: small;">VOIP </span><span style="font-size: small;">問題,要求 </span><span style="font-family: Times New Roman,serif; font-size: small;">LAN </span><span style="font-size: small;">或者基於 </span><span style="font-family: Times New Roman,serif; font-size: small;">IP </span><span style="font-size: small;">的 </span><span style="font-family: Times New Roman,serif; font-size: small;">PBX </span><span style="font-size: small;">的終點站操作簡單,常見且相對便宜。相對於 </span><span style="font-family: Times New Roman,serif; font-size: small;">H.323 </span><span style="font-size: small;">推薦的相當昂貴的系統而言,</span><span style="font-family: Times New Roman,serif; font-size: small;">SCCP </span><span style="font-size: small;">定義了一個簡單且易於使用的結構。通過 </span><span style="font-family: Times New Roman,serif; font-size: small;">SCCP</span><span style="font-size: small;">,</span><span style="font-family: Times New Roman,serif; font-size: small;">H.323 </span><span style="font-size: small;">代理可以與 </span><span style="font-family: Times New Roman,serif; font-size: small;">Skinny </span><span style="font-size: small;">客戶機進行通信。在這樣的情況下,電話充當了 </span><span style="font-family: Times New Roman,serif; font-size: small;">IP </span><span style="font-size: small;">上的 </span><span style="font-family: Times New Roman,serif; font-size: small;">Skinny </span><span style="font-size: small;">客戶機。而代理服務主要用於 </span><span style="font-family: Times New Roman,serif; font-size: small;">H.225 </span><span style="font-size: small;">和 </span><span style="font-family: Times New Roman,serif; font-size: small;">H.245 </span><span style="font-size: small;">信令。 關於 </span><span style="font-family: Times New Roman,serif; font-size: small;">SCCP </span><span style="font-size: small;">結構,作為 </span><span style="font-family: Times New Roman,serif; font-size: small;">Cisco </span><span style="font-size: small;">呼叫管理的 </span><span style="font-family: Times New Roman,serif; font-size: small;">H.323 </span><span style="font-size: small;">代理伺服器中存在大量的 </span><span style="font-family: Times New Roman,serif; font-size: small;">H.323 </span><span style="font-size: small;">處理源。終點站(電話)運行的客戶機,該客戶機只需消耗少量處理開銷,客戶機通過面向連接(基於 </span><span style="font-family: Times New Roman,serif; font-size: small;">TCP/IP</span><span style="font-size: small;">)的通信方式實現呼叫管理間的通信過程,從而與另一個適應的 </span><span style="font-family: Times New Roman,serif; font-size: small;">H.323 </span><span style="font-size: small;">終點站建立一個呼叫連接。一旦這樣的呼叫連接建立起來,那麼兩個 </span><span style="font-family: Times New Roman,serif; font-size: small;">H.323 </span><span style="font-size: small;">終點站就可以通過無連接(基於 </span><span style="font-family: Times New Roman,serif; font-size: small;">UDP/IP</span><span style="font-size: small;">)通信方式實現音頻傳輸。這樣,通過限制建立呼叫管理的 </span><span style="font-family: Times New Roman,serif; font-size: small;">H.323 </span><span style="font-size: small;">呼叫裝備的複雜性、以及為實際音頻通信出入終點站提供 </span><span style="font-family: Times New Roman,serif; font-size: small;">Skinny </span><span style="font-size: small;">協議來降低整個過程的費用和開銷。 </span><span style="font-family: Times New Roman,serif; font-size: small;"><br />
<span style="color: darkorange;">XOT</span></span><span style="font-size: small;">:基於 </span><span style="font-family: Times New Roman,serif; font-size: small;">TCP </span><span style="font-size: small;">協議的 </span><span style="font-family: Times New Roman,serif; font-size: small;">Cisco X.25</span><span style="font-size: small;">(</span><span style="font-family: Times New Roman,serif; font-size: small;">XOT</span><span style="font-size: small;">:</span><span style="font-family: Times New Roman,serif; font-size: small;">X.25 over TCP Protocol by Cisco</span><span style="font-size: small;">) 基於 </span><span style="font-family: Times New Roman,serif; font-size: small;">TCP </span><span style="font-size: small;">協議的 </span><span style="font-family: Times New Roman,serif; font-size: small;">Cisco X.25</span><span style="font-size: small;">(</span><span style="font-family: Times New Roman,serif; font-size: small;">XOT</span><span style="font-size: small;">)是由思科開發的一種用於在 </span><span style="font-family: Times New Roman,serif; font-size: small;">IP </span><span style="font-size: small;">英特網上實現 </span><span style="font-family: Times New Roman,serif; font-size: small;">X.25 </span><span style="font-size: small;">傳輸的協議。</span><span style="font-family: Times New Roman,serif; font-size: small;">X.25 </span><span style="font-size: small;">資料包層通常採用 </span><span style="font-family: Times New Roman,serif; font-size: small;">LAPB</span><span style="font-size: small;">,並且要求在其本身下面包含一個可靠的鏈路層。</span><span style="font-family: Times New Roman,serif; font-size: small;">XOT </span><span style="font-size: small;">提供了一種在 </span><span style="font-family: Times New Roman,serif; font-size: small;">IP </span><span style="font-size: small;">英特網上發送 </span><span style="font-family: Times New Roman,serif; font-size: small;">X.25 </span><span style="font-size: small;">資料包的方法,即將 </span><span style="font-family: Times New Roman,serif; font-size: small;">X.25 </span><span style="font-size: small;">資料包層封裝在 </span><span style="font-family: Times New Roman,serif; font-size: small;">TCP </span><span style="font-size: small;">數據包中。</span><span style="font-family: Times New Roman,serif; font-size: small;">TCP </span><span style="font-size: small;">具有一個可靠位元組流。</span><span style="font-family: Times New Roman,serif; font-size: small;">X.25 </span><span style="font-size: small;">中要求其下面的層,特別是資料包間的邊界包含資訊語義。為了達到這個目標,要求 </span><span style="font-family: Times New Roman,serif; font-size: small;">TCP </span><span style="font-size: small;">和 </span><span style="font-family: Times New Roman,serif; font-size: small;">X.25 </span><span style="font-size: small;">間的 </span><span style="font-family: Times New Roman,serif; font-size: small;">XOT </span><span style="font-size: small;">協議頭較小(大約</span><span style="font-family: Times New Roman,serif; font-size: small;">4</span><span style="font-size: small;">位元組)。</span><span style="font-family: Times New Roman,serif; font-size: small;">XOT </span><span style="font-size: small;">協議頭包含一個長欄位,用以分隔 </span><span style="font-family: Times New Roman,serif; font-size: small;">TCP </span><span style="font-size: small;">流中的 </span><span style="font-family: Times New Roman,serif; font-size: small;">X.25 </span><span style="font-size: small;">數據包。標準 </span><span style="font-family: Times New Roman,serif; font-size: small;">X.25 </span><span style="font-size: small;">協定資料包格式和狀態轉換規則通常應用於 </span><span style="font-family: Times New Roman,serif; font-size: small;">XOT </span><span style="font-size: small;">中的 </span><span style="font-family: Times New Roman,serif; font-size: small;">X.25 </span><span style="font-size: small;">層。應注意例外情形</span><span style="font-size: small;"><span lang="zh-TW">。</span></span></div>Shrek Wanghttp://www.blogger.com/profile/01295455960922959288noreply@blogger.com0tag:blogger.com,1999:blog-2470703872048066384.post-81722264392780876612010-10-11T11:41:00.009+08:002010-11-13T10:37:46.281+08:00組合語言 AT&T Syntax 與 Intel/Microsoft Syntax 差別<div style="font-family: Arial,Helvetica,sans-serif;"><span style="font-size: large;"><b>order(來源與目標暫存器順序不同)</b></span></div>source在前面destination在後面<br />
<br />
<br />
<blockquote><pre class="SCREEN">Intex Syntax AT&T Syntax
instr dest,source instr source,dest
mov eax,[ecx] movl (%ecx),%eax</pre></blockquote><pre class="SCREEN"></pre><pre class="SCREEN" style="font-family: Arial,Helvetica,sans-serif;"><span style="font-size: large;"><b> </b></span></pre><pre class="SCREEN" style="font-family: Arial,Helvetica,sans-serif;"><span style="font-size: large;"><b> </b></span></pre><pre class="SCREEN" style="font-family: Arial,Helvetica,sans-serif;"><span style="font-size: large;"><b>register naming(暫存器命名)</b></span></pre><pre class="SCREEN">AT&T前面要加個%</pre><pre class="SCREEN"></pre><blockquote><pre class="SCREEN">Intel Syntax AT&T Syntax
mov eax,1 movl $1,%eax
mov ebx,0ffh movl $0xff,%ebx
int 80h int $0x80</pre></blockquote><pre class="SCREEN"></pre><dl><dt style="font-family: Arial,Helvetica,sans-serif;"><span style="font-size: large;"><b> </b></span></dt>
<dt style="font-family: Arial,Helvetica,sans-serif;"><span style="font-size: large;"><b> </b></span></dt>
<dt style="font-family: Arial,Helvetica,sans-serif;"><span style="font-size: large;"><b>imme operand(立即定址命名)</b></span></dt>
<dt>AT&T前面要加個$</dt>
<dt><span style="font-size: small;"> </span></dt>
</dl><blockquote><pre class="SCREEN">Intel Syntax AT&T Syntax
mov eax,1 movl $1,%eax
mov ebx,0ffh movl $0xff,%ebx
int 80h int $0x80
<span style="font-size: small;"></span></pre></blockquote><dl><dt><span style="font-size: large;"><b> </b></span></dt>
<dt><span style="font-size: large;"><b> </b></span></dt>
<dt><span style="font-size: large;"><b>memory reference(間接定址)</b></span></dt>
</dl><pre class="SCREEN">AT&T用小括號"()" </pre><pre class="SCREEN"> </pre><blockquote><pre class="SCREEN">Intel Syntax AT&T Syntax
mov eax,[ebx+20h] movl 0x20(%ebx),%eax
add eax,[ebx+ecx*2h] addl (%ebx,%ecx,0x2),%eax
lea eax,[ebx+ecx] leal (%ebx,%ecx),%eax</pre></blockquote><pre class="SCREEN"></pre><pre class="SCREEN" style="font-family: Arial,Helvetica,sans-serif;"><span style="font-size: large;"><b> </b></span></pre><pre class="SCREEN" style="font-family: Arial,Helvetica,sans-serif;"><span style="font-size: large;"><b> </b></span></pre><pre class="SCREEN" style="font-family: Arial,Helvetica,sans-serif;"><span style="font-size: large;"><b>opcode naming(指令命名)</b></span></pre><pre class="SCREEN">必需指定長度,根據系統而不一樣,word有的是32 bits有的是16 bits</pre><pre class="SCREEN"></pre><pre class="SCREEN"></pre><blockquote><pre class="SCREEN">b : byte
w : word
l : long
Intel Syntax AT&T Syntax
mov al,bl movb %bl,%al
mov ax,bx movw %bx,%ax
mov eax,ebx movl %ebx,%eax</pre><pre class="SCREEN">mov eax, dword ptr [ebx] movl (%ebx),%eax</pre></blockquote><pre class="SCREEN"> </pre><pre class="SCREEN">type casting(型別轉換)</pre><pre class="SCREEN"></pre><pre class="SCREEN"></pre><blockquote><pre class="SCREEN">s (signed)
z (zero)
bl (from byte to long)
bw (from byte to word)
wl (from word to long)</pre><pre class="SCREEN"> </pre><pre class="SCREEN">movsbl %al, %edx</pre></blockquote><pre class="SCREEN"> </pre><pre class="SCREEN">long jump,call與ret</pre><pre class="SCREEN"> </pre><blockquote><pre class="SCREEN">Intel Syntax AT&T Syntax
jmp far seg:offsetljmp seg, offset
jmp far INITSEG:GO ljmp $INITSEG, $GO
call far INITSEG:GO lcall $INITSEG, $GO
ret far STACK_ADJUS lret $STACK_ADJUST
</pre></blockquote><pre class="SCREEN"></pre><br />
註:GAS 亦可接受 Intel/Microsoft syntax 組合語言,只要指令後面寫「.intel_syntax noprefix」即可。<br />
<br />
轉自 <a href="http://www.study-area.org/">Study-Area</a><br />
<pre class="SCREEN"></pre><dl><dt> </dt>
</dl>Shrek Wanghttp://www.blogger.com/profile/01295455960922959288noreply@blogger.com0tag:blogger.com,1999:blog-2470703872048066384.post-70229587629432929782010-08-10T17:57:00.005+08:002010-08-10T21:13:41.477+08:00如何讓 Android ( X10 ) 直接掃描鈴聲Sony Ericsson X10 有一項缺點就是設定鈴聲比較不方便,一般人不知道的話大概會傻傻的放進 Mediascape 然後設定為鈴聲,而且 Mediascape 不能設定鬧鈴和訊息通知鈴聲,設定最方便的方法就是打開SD卡,把要的鈴聲放在 Audio 底下的資料夾:<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVpPaKowC8O0m7ahquTve9T6aQcGj1ISHFsN5PJ9fXNJqrFa6XPyvcoaythxm6M-HLF5bo0matvx75IzqJwEb6ZFnqT2VjXWJ1gkjBTdDJMcmRKQuOyLhvXtswctlZdUGChrTx8QN2KOY/s1600/%E6%89%8B%E6%A9%9F%E9%88%B4%E8%81%B2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="167" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVpPaKowC8O0m7ahquTve9T6aQcGj1ISHFsN5PJ9fXNJqrFa6XPyvcoaythxm6M-HLF5bo0matvx75IzqJwEb6ZFnqT2VjXWJ1gkjBTdDJMcmRKQuOyLhvXtswctlZdUGChrTx8QN2KOY/s200/%E6%89%8B%E6%A9%9F%E9%88%B4%E8%81%B2.png" width="200" /></a></div><br />
一般 Media、Audio 和 notifications 都有預設好,其他沒有的要自己設資料夾,Media 和 Audio 有可能是小寫,Audio 底下的資料的功能分別為:<br />
<br />
alarms:放鬧鈴音樂。<br />
notifications:放訊息通知音樂(簡訊、E-mail……等等)。<br />
ringtones:放手機鈴聲。<br />
<br />
把音樂放進去,卸載 USB 後,鈴聲選單內就有自己的音樂可以選擇了。Shrek Wanghttp://www.blogger.com/profile/01295455960922959288noreply@blogger.com1tag:blogger.com,1999:blog-2470703872048066384.post-37944551465788867252010-07-18T19:25:00.003+08:002010-07-29T22:39:53.817+08:00C語言control statement的for和while誰比較快?C語言程式新手最常問的問題就是control statement的for和while誰比較快?<br />
<br />
寫以下兩個無限迴圈程式:<br />
<br />
<blockquote>main() {<br />
for(;;);<br />
} // main()</blockquote><br />
和<br />
<br />
<blockquote>main() {<br />
while(1);<br />
} // main()</blockquote><br />
存檔後,兩個程式透過GCC<span style="font-size: xx-small;">(註1)</span>翻譯成Assembly Language<span style="font-size: xx-small;">(註2)</span>後的結果都是下面的結果:<br />
<br />
<blockquote> .file "infinite.c"<br />
.text<br />
.globl main<br />
.type main, @function<br />
main:<br />
leal 4(%esp), %ecx<br />
andl $-16, %esp<br />
pushl -4(%ecx)<br />
pushl %ebp<br />
movl %esp, %ebp<br />
pushl %ecx<br />
.L2:<br />
jmp .L2<br />
.size main, .-main<br />
.ident "GCC: (GNU) 4.2.4 (Ubuntu 4.2.4-1ubuntu4)"<br />
.section .note.GNU-stack,"",@progbits</blockquote><br />
故兩種control statement都一樣快。<br />
<br />
<span style="font-size: x-small;">註1:不同的compiler轉譯出來的結果可能會不同。 </span><br />
<br />
<span style="font-size: x-small;">註2:翻譯出來的組合語言是遵守AT&T syntax,跟Intex和Microsoft不太一樣!</span>Shrek Wanghttp://www.blogger.com/profile/01295455960922959288noreply@blogger.com0tag:blogger.com,1999:blog-2470703872048066384.post-63164426418364730772010-07-13T13:05:00.003+08:002010-07-13T13:22:08.002+08:00宿舍網路問題排除基本步驟1.先檢查硬體設備是否沒問題<br />
<ul><li>網路線插了但是網路卡燈號沒亮</li>
</ul> → 網路卡或網路線有問題,換別的試試<br />
→ 或者不是拿網路線(8 pin),而是拿錯拿成電話線(6 pin)去接<br />
<ul><li>區域連線是否啟用</li>
</ul> → 如果使用 Windows 7 你可以在控制台 → 網路和網際網路 → 網路和共用中心 → 變更介面卡設定 <br />
→ 如果使用 Windows 2000/XP 你可以在「網路上的芳鄰」按右鍵 → 內容<br />
,看看區域連線是否有啟用,若沒有請啟用它,如果已經啟用網路卡,而沒顯示連線 <br />
<br />
→ 壁孔損壞,請至傳達室填維修單<br />
<br />
2.telnet下列校內BBS<br />
電機心站 140.135.12.1<br />
中原資工神祕之旅 140.135.11.30<br />
如果不能上<br />
→ 請檢查IP是否設成手動取得,請換成DHCP自動取得;<br />
如果你是用 Windows 2000/XP 你可以在「網路上的芳鄰」按右鍵 → 內容,開啟區域連線 → 內容 → 按兩下Internet Protocol(TCP/IP),請選擇「自動取得IP位址」以及「自動取得 DNS 伺服器位址」<br />
<br />
3.連學校首頁 http://www.cycu.edu.tw,如果連不上<br />
→ 請設定DNS<br />
如果使用 Windows 7 你可以在控制台 → 網路和網際網路 → 網路和共用中心 → 變更介面卡設定 → 區域連線 → 內容 → 按兩下Internet Protocol(TCP/IP)<br />
如果你是用 Windows 2000/XP 你可以在「網路上的芳鄰」按右鍵 → 內容,開啟區域連線 → 內容 → 按兩下Internet Protocol(TCP/IP)<br />
,請選擇「手動取得 DNS 伺服器位址」<br />
慣用DNS伺服器:140.135.7.1<br />
其他DNS伺服器:140.135.7.2<br />
<br />
4.連其他的BBS或網頁,如果不能上<br />
<ul><li>IE 8設定proxy</li>
</ul> 開啟IE → 工具 → 網際網路選項 → 連線(標籤) → 區域網路設定 → Proxy伺服器請打勾「在您的區域網路使用 Proxy 伺服器」以及「進端網址不使用 Proxy」<br />
網址:proxy.cycu.edu.tw 連接埠:3128<br />
進入「進階」,請打勾「所有通訊協定使用相同的 Proxy」,會留下 HTTP 一欄<br />
Proxy位址:proxy.cycu.edu.tw 連接埠:3128<br />
「例外」欄,下面有「含有下列起始文字的位址不使用 Proxy 伺服器」<br />
請填入 *.cycu.edu.tw;140.135.*<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOeQf9EU6bdgWZpZCF2z3yaBQ6SqfsDcAkU_UvOfsxAoYuraU05YsA8hjmReOWlsBALJUSsN1kAC8xfIj5oAIf5k0MDEFr7FkYWKSwpFdnVYMfwePJOttgMcmRVxNH6IL17geIVJ7zzjc/s1600/%E5%AE%BF%E8%88%8D%E7%B6%B2%E8%B7%AF%E5%95%8F%E9%A1%8C%E6%8E%92%E9%99%A4%E5%9F%BA%E6%9C%AC%E6%AD%A5%E9%A9%9F(02).png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="163" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOeQf9EU6bdgWZpZCF2z3yaBQ6SqfsDcAkU_UvOfsxAoYuraU05YsA8hjmReOWlsBALJUSsN1kAC8xfIj5oAIf5k0MDEFr7FkYWKSwpFdnVYMfwePJOttgMcmRVxNH6IL17geIVJ7zzjc/s200/%E5%AE%BF%E8%88%8D%E7%B6%B2%E8%B7%AF%E5%95%8F%E9%A1%8C%E6%8E%92%E9%99%A4%E5%9F%BA%E6%9C%AC%E6%AD%A5%E9%A9%9F(02).png" width="200" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuVDH_nzVVY87uhyphenhyphen4HY7oB5kqQ3XITIqFkEu3mNlbpMZdvAXgnak4QUkFQNIwjXVtzOVNTpABbMSECL-jWTbJ8VqFA7KmoI8K_mfb_cdZv-NY0zzrHsRaKar_mdD_N1SfOjSAUlqUYdHg/s1600/%E5%AE%BF%E8%88%8D%E7%B6%B2%E8%B7%AF%E5%95%8F%E9%A1%8C%E6%8E%92%E9%99%A4%E5%9F%BA%E6%9C%AC%E6%AD%A5%E9%A9%9F(01).png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuVDH_nzVVY87uhyphenhyphen4HY7oB5kqQ3XITIqFkEu3mNlbpMZdvAXgnak4QUkFQNIwjXVtzOVNTpABbMSECL-jWTbJ8VqFA7KmoI8K_mfb_cdZv-NY0zzrHsRaKar_mdD_N1SfOjSAUlqUYdHg/s200/%E5%AE%BF%E8%88%8D%E7%B6%B2%E8%B7%AF%E5%95%8F%E9%A1%8C%E6%8E%92%E9%99%A4%E5%9F%BA%E6%9C%AC%E6%AD%A5%E9%A9%9F(01).png" width="168" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7AnViBbFh-QoJCUFW-GGAiEF9ucqPcDJsiUaAXpJYa9LBIk-dsmwFVbKqAjURySUhUa6ze_ql_9LYfj04OW9ibUiOFTtISB9bJDckVCxe7Pqb5y4Uf9DHHk8b2jKuuwUjA-cRWcpBUuM/s1600/%E5%AE%BF%E8%88%8D%E7%B6%B2%E8%B7%AF%E5%95%8F%E9%A1%8C%E6%8E%92%E9%99%A4%E5%9F%BA%E6%9C%AC%E6%AD%A5%E9%A9%9F(03).png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7AnViBbFh-QoJCUFW-GGAiEF9ucqPcDJsiUaAXpJYa9LBIk-dsmwFVbKqAjURySUhUa6ze_ql_9LYfj04OW9ibUiOFTtISB9bJDckVCxe7Pqb5y4Uf9DHHk8b2jKuuwUjA-cRWcpBUuM/s200/%E5%AE%BF%E8%88%8D%E7%B6%B2%E8%B7%AF%E5%95%8F%E9%A1%8C%E6%8E%92%E9%99%A4%E5%9F%BA%E6%9C%AC%E6%AD%A5%E9%A9%9F(03).png" width="200" /></a></div><br />
各種瀏覽器設定Proxy方法以後會詳細介紹!<br />
<ul><li>檢查使用IP跟分配IP是否相同</li>
</ul> → 請到 http://ccdna.cycu.edu.tw,檢查你的使用IP是否和系統<br />
分配的IP相同<br />
網頁查詢出來的IP Address是系統分配IP<br />
如果你是使用 Windows 7 請按 開始 → 搜尋列輸入cmd → 點選cmd<br />
如果你是使用 Windows 2000/XP 請按 開始 → 執行 → cmd<br />
如果你是使用 Windows 95/98/ME 請按 開始 → 執行 → command<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzsj7VZfZc3001XsnGH3-FzKZy61E9cxQWarYlE9wghpqefEvK32jar8xmCnm07viQTY7D1vZrAIay6MuMK4iByCLuj4McAvbnXL9yX7maB0BjGzj_tuKyrFNb1cXC2w17OLU3QB8iv-0/s1600/%E5%AE%BF%E8%88%8D%E7%B6%B2%E8%B7%AF%E5%95%8F%E9%A1%8C%E6%8E%92%E9%99%A4%E5%9F%BA%E6%9C%AC%E6%AD%A5%E9%A9%9F(05).png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzsj7VZfZc3001XsnGH3-FzKZy61E9cxQWarYlE9wghpqefEvK32jar8xmCnm07viQTY7D1vZrAIay6MuMK4iByCLuj4McAvbnXL9yX7maB0BjGzj_tuKyrFNb1cXC2w17OLU3QB8iv-0/s320/%E5%AE%BF%E8%88%8D%E7%B6%B2%E8%B7%AF%E5%95%8F%E9%A1%8C%E6%8E%92%E9%99%A4%E5%9F%BA%E6%9C%AC%E6%AD%A5%E9%A9%9F(05).png" /></a></div> 進入 MS-DOS 模式<br />
請輸入「ipconfig」,其中的「IP Address」便是你使用中的IP看看是否一樣<br />
<ul><li>檢查MAC是否正確</li>
</ul> →請到 http://ccdna.cycu.edu.tw,檢查你的網路卡 MAC 是否正確,網頁查詢出來會有「已登錄網路卡 MAC」跟「目前連線網路卡 MAC」 請看看是否一樣,如果不一樣請修改, 必須等待10分鐘左右的處理時間,等待table更新,10分鐘後才能連線。<br />
<ul><li>改成手動取得IP</li>
</ul> → 設定成手動取得IP<br />
<br />
Winodws 7:<br />
控制台 → 網路和網際網路 → 網路和共用中心 → 變更介面卡設定 → 區域連線<br />
→ 內容 → 雙擊Internet Protocol(TCP/IP)<br />
<br />
Windows 2000/XP:<br />
控制台 → 網路連線 → 區域連線 → 內容 → 雙擊Internet Protocol(TCP/IP)<br />
<br />
請打勾「使用下列IP位址」<br />
IP位址:系統分配IP (140.135.xxx.xxx)<br />
子網路遮罩:255.255.255.0(力行) <br />
255.255.254.0(恩慈、良善)<br />
預設閘道:140.135.24.254 (力行一東)<br />
140.135.25.254 (力行二東)<br />
140.135.26.254 (力行三東)<br />
140.135.27.254 (力行四東)<br />
140.135.28.254 (力行一西)<br />
140.135.29.254 (力行二西)<br />
140.135.30.254 (力行三西)<br />
140.135.31.254 (力行四西)<br />
140.135.151.254(恩慈前棟)<br />
140.135.153.254(恩慈後棟)<br />
140.135.155.254(良善123樓)<br />
140.135.157.254(良善456樓)<br />
140.135.159.254(良善789樓)<br />
慣用DNS伺服器:140.135.7.1<br />
其他DNS伺服器:140.135.7.2<br />
<br />
系統分配IP請至 <a href="http://ccdna.cycu.edu.tw/">http://ccdna.cycu.edu.tw</a> 查詢<br />
<ul><li>是否被阻斷</li>
</ul> → 請至 <a href="http://ccdna.cycu.edu.tw/virus_st/index.html">http://ccdna.cycu.edu.tw/virus_st/index.html</a><br />
按 Ctrl+F 輸入自己的系統分配IP查詢是否在清單內 <br />
→ 如果阻斷原因是超過流量上限,則管理系統會自動在08:00刪除<br />
<br />
如果阻斷原因是流量異常,請先看流量異常原因進行調整或解毒<br />
<br />
要清除阻斷,請至 <a href="http://ccdna.cycu.edu.tw/">http://ccdna.cycu.edu.tw</a> 自行解除,一天限一次!<br />
<br />
以下情況是我們經常遇到的狀況:<br />
<br />
開啟不明軟體後,發現到MSN和瀏覽器不能開啟網頁的狀況,防毒軟體也不能更新,請開啟cmd輸入ping + 室友的正常電腦的IP,也嘗試看看從室友的電腦那裡ping回來自己的IP,然後自己的電腦cmd輸入「ping tw.yahoo.com(或者其他網頁地址或IP)」,如果ping出來的結果如圖下顯示的一樣,表示其他網路服務雖然不能使用,但是電腦實際上還是能ping出去(ping只是測試學校網路有沒有問題),代表你的電腦已經徹底中毒,請網管來也沒用,電腦抱回去重灌比較快!<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifyYQVDCaGCno6GaJE3-avz0B6IH3jpMC_aA5E0cIFavlsQM4rVJGCpxEu8T8IpIS5lIRQHFh0HvmIUBHkzrM0t3kGWZUmeYZfcOS3qNSGC393cH2j_SnjQwL8vYNtGFjwLPvURlB1WdA/s1600/%E5%AE%BF%E8%88%8D%E7%B6%B2%E8%B7%AF%E5%95%8F%E9%A1%8C%E6%8E%92%E9%99%A4%E5%9F%BA%E6%9C%AC%E6%AD%A5%E9%A9%9F(04).png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifyYQVDCaGCno6GaJE3-avz0B6IH3jpMC_aA5E0cIFavlsQM4rVJGCpxEu8T8IpIS5lIRQHFh0HvmIUBHkzrM0t3kGWZUmeYZfcOS3qNSGC393cH2j_SnjQwL8vYNtGFjwLPvURlB1WdA/s320/%E5%AE%BF%E8%88%8D%E7%B6%B2%E8%B7%AF%E5%95%8F%E9%A1%8C%E6%8E%92%E9%99%A4%E5%9F%BA%E6%9C%AC%E6%AD%A5%E9%A9%9F(04).png" /></a></div>Shrek Wanghttp://www.blogger.com/profile/01295455960922959288noreply@blogger.com0tag:blogger.com,1999:blog-2470703872048066384.post-5946925398799651142010-07-12T22:24:00.008+08:002010-07-20T23:34:13.783+08:00良好的網路使用習慣在任何環境下,電腦最常發生的事是中毒。電腦中毒後,病毒會不停複製自己,造成CPU(中央處理器)和記憶體超出負荷,讓電腦運作異常,使之變得不穩定、變慢、當機、自動重開機,甚至直接死機(不能開機),病毒嘗試感染其他電腦,也使自己的網路流量增加、速度變慢、甚至不能上網,因此建立良好的網路使用習慣是非常重要的事情。<br />
<br />
良好的網路使用習慣大致如下:<br />
<ul><li><span style="font-size: large;">不開啟和安裝來路不明的軟體</span></li>
</ul>這個習慣最多人會犯,尤其是遊戲的外掛!最常遇到的就是一開來路不明的外掛後,電腦可以ping出去,也可以ping進來,就是所有網路服務都不能開,這種情況「重灌」是最快的辦法。另外一種狀況就是安裝軟體時有時候會自動附上惡意Toolbar,綁架瀏覽器首頁,就算是良好的Toolbar,也會使瀏覽器效能降低,所以安裝任何軟體,記得照子要放亮,只要一出現安裝Toolbar選項,不管是好是壞,馬上取消就對了,「寧可錯殺一百,不願漏掉萬一。」<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYal1mKAfEV5S2unghAv54hqx7FEK0I2qxbridaeoc4g1_TcUz_lJL_D6ZuMHdKt8WFMW2NinrwjnB3bljC6x8mxcO37BM9-mpzd96MFdePylF-9qkxKxWfD-hQ7k5LZbxhc_Li0J_v2o/s1600/%E7%B6%B2%E8%B7%AF%E5%AE%89%E5%85%A8(02).png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="153" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYal1mKAfEV5S2unghAv54hqx7FEK0I2qxbridaeoc4g1_TcUz_lJL_D6ZuMHdKt8WFMW2NinrwjnB3bljC6x8mxcO37BM9-mpzd96MFdePylF-9qkxKxWfD-hQ7k5LZbxhc_Li0J_v2o/s200/%E7%B6%B2%E8%B7%AF%E5%AE%89%E5%85%A8(02).png" width="200" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKQJ8TMinFwsthJ5B18MsQQo2wFfFtHaJIGegi1wp6_fAwMeT9gpD4x2OArGlGPRZw5I-wp3k0h7WyBFmGPR50LBe5BBQoiO9FkIZtG1VWsCMHjg6FAS9cDw4TxhF8O2yCk4L7UVBSiU4/s1600/%E7%B6%B2%E8%B7%AF%E5%AE%89%E5%85%A8(03).png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="145" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKQJ8TMinFwsthJ5B18MsQQo2wFfFtHaJIGegi1wp6_fAwMeT9gpD4x2OArGlGPRZw5I-wp3k0h7WyBFmGPR50LBe5BBQoiO9FkIZtG1VWsCMHjg6FAS9cDw4TxhF8O2yCk4L7UVBSiU4/s200/%E7%B6%B2%E8%B7%AF%E5%AE%89%E5%85%A8(03).png" width="200" /></a></div>注意一下某些軟體會附上「PANDORA.TV」的「Ask」搜尋ToolBar,這種ToolBar裝下去後,除了瀏覽器上會多一個ToolBar以外,也會私自把搜尋預設改成Ask,安裝的時候注意一下!<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSt1GRNhVfZjyOudhyphenhyphenXHcCXJcM0D67l4zYFvaPIEwCSH2bdzxHIc8QRQpt4TsDRu6DvnqXPTKQm2TEjs2DBkiUXVYphhw-dxnKS8WK5ugLSzMYi5Labr8cdCIFomkaBYZ21H_aHy__XOg/s1600/%E7%B6%B2%E8%B7%AF%E5%AE%89%E5%85%A8(04).PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSt1GRNhVfZjyOudhyphenhyphenXHcCXJcM0D67l4zYFvaPIEwCSH2bdzxHIc8QRQpt4TsDRu6DvnqXPTKQm2TEjs2DBkiUXVYphhw-dxnKS8WK5ugLSzMYi5Labr8cdCIFomkaBYZ21H_aHy__XOg/s320/%E7%B6%B2%E8%B7%AF%E5%AE%89%E5%85%A8(04).PNG" /></a></div><br />
<ul><li><span style="font-size: large;">不開啟來路不明網頁連結和郵件</span></li>
</ul>MSN或即時通上的好友突然間沒事傳一個連結給你,千萬別點下去!點下去後自己也會中木馬程式,除了個人資料被盜取之外,怪客(cracker)<span class="Apple-style-span" style="font-size: x-small;">(註1)</span>還會利用你的帳號繼續發佈給其他人!電子郵件也是使用同樣的手法感染其他電腦。一般網頁和電子郵件也很常遇到,例如在論壇和信件上常常看到的援交、X片販賣、網路遊戲私服廣告等等,也不要亂點。也有用相似的文字來引人上當,例如yahoo改成yah00、大寫「I」、小寫的「L」和數字「1」,很容易混淆。某些重要資料登入,例如網購和網路銀行,記得認明是「https」(例如:https://login.yahoo.com/*)才能登入。<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijdCZTZeG3E1k_FSeJ9VCpuadJx5DCq9u7zXFr4mgick7NzYP2WtqNRcRvCx3OdiJ95cyJF5Qx3-99q0ePb0cD6V_aFs29D0LVBERsM2v-U-j-kZjCQGPCb7RsRdwXyo9hqSqxbiTcL40/s1600/%E7%B6%B2%E8%B7%AF%E5%AE%89%E5%85%A8(05).png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijdCZTZeG3E1k_FSeJ9VCpuadJx5DCq9u7zXFr4mgick7NzYP2WtqNRcRvCx3OdiJ95cyJF5Qx3-99q0ePb0cD6V_aFs29D0LVBERsM2v-U-j-kZjCQGPCb7RsRdwXyo9hqSqxbiTcL40/s320/%E7%B6%B2%E8%B7%AF%E5%AE%89%E5%85%A8(05).png" /></a></div><br />
<ul><li><span style="font-size: large;">Proxy注意!</span></li>
</ul>有心人士會架設假的Proxy伺服器,擷取網路封包過慮個人資料。通常學校的Proxy伺服器沒有這個風險存在。 <br />
<ul><li><span style="font-size: large;">小心別人的USB隨身碟或硬碟!</span></li>
</ul>目前最夯的病毒就是USB病毒,專門透過Win XP的自動開啟功能感染其他電腦,所以自動開啟功能一定要關閉!使用前一定要先掃毒!自己的隨身碟插在別人的電腦上後回來也要徹底掃毒一遍! <br />
<ul><li><span style="font-size: large;">設定難以猜測的密碼與更改密碼</span></li>
</ul>加密網路相簿最常遇到的就是密碼設的太簡單,很容易猜出來,例如生日、手機號碼......等等,這類密碼非常容易被怪客猜出來,設定難以猜測的密碼極為重要,最怕的就是遇到字典破解,就是用字典的辭彙硬把密碼猜出來,防堵暴力破解的方法,最快的辦法是設定非英文密碼,改設其他歐洲語言的密碼也不錯。有的病毒或木馬會測錄鍵盤紀錄密碼,當發現到中毒時,檔案刪掉並馬上修改密碼,算是亡羊補牢的方法。時常更改密碼更能大幅降低個資盜取的風險。<br />
<br />
「<a href="http://howsecureismypassword.net/">How Secure Is My Password?</a>」,這個網站能測試你的密碼需要多少時間才能破解,可以參考參考。 <br />
<ul><li><span style="font-size: large;">不亂留個人資料與隱私管理</span></li>
</ul>這是第二個徹底解決的方法,尤其是在社交網站(Facebook和Twitter),個人資料留的愈多愈危險。如果要留,就要好好保護自己的隱私。<br />
<ul><li><span style="font-size: large;">系統更新</span> </li>
</ul>怪客攻擊通常從系統漏洞下手,因此系統修補也是防堵攻擊的不二法門,更新設定成自動就好(雖然Windows修補漏洞的速度非常慢)。<br />
<ul><li><span style="font-size: large;">關閉不必要的服務</span></li>
</ul>利用系統服務入侵電腦的狀況也十分常見,停止不需要的服務可以大大降低被入侵的機率,服務越多所造成被入侵的機率越高,像是 <b>Microsoft IIS (網頁伺服器)、FTP、SQL</b> 等都是十分常見的管道,若不需要則將服務停止或移除,以免安裝的服務沒有實際用途卻形成系統的一個弱點而遭到入侵。<br />
<ul><li><span style="font-size: large;">瀏覽器</span></li>
</ul>選對的瀏覽器也是一門非常重要的課題,目前漏洞最多的瀏覽器還是IE......這是世界公認的!請改用Firefox、Chrome或Opera,安全性也比IE高很多。有的怪客會利用Flash漏洞透過瀏覽器攻擊系統,Firefox有一個插件叫「Stop Autoplay」,會強制讓Flash停止自動播放,要播放自己點開即可,歡迎到右邊的抓火狐貼紙下載Firefox並安裝Stop Autoplay。 <br />
<ul><li><span style="font-size: large;">Cookie別留下來!</span></li>
</ul><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhg1nzNTkSdVb9yAXIMrnSZGUl5pkUluflShR0Zh6VGK-YKxuYZWu5ewzR6pqZOEFTyAn2H2zR2u79vsK5kIGHfUhMDW1UotoQqm-M7Io28L4Bwd5UoVXzx0gAAv5DCE84VeQLrEGk6rtM/s1600/%E7%B6%B2%E8%B7%AF%E5%AE%89%E5%85%A8(01).png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhg1nzNTkSdVb9yAXIMrnSZGUl5pkUluflShR0Zh6VGK-YKxuYZWu5ewzR6pqZOEFTyAn2H2zR2u79vsK5kIGHfUhMDW1UotoQqm-M7Io28L4Bwd5UoVXzx0gAAv5DCE84VeQLrEGk6rtM/s320/%E7%B6%B2%E8%B7%AF%E5%AE%89%E5%85%A8(01).png" /></a></div>某些需要帳號,甚至是有自動登入的網站和論壇,通常會把帳號紀錄在Cookie裡,甚至是自動登入的網站連密碼也紀錄在裡面,電腦放木馬很容易被盜取,所以瀏覽器設成不存取Cookie也是防止個資盜取的一個好方法,除非有把握不會中木馬(例如使用Linux作業系統)。<br />
<ul><li><span style="font-size: large;">防毒軟體</span></li>
</ul><b>防毒軟體提供即時監測目前系統活動</b>,判斷是否有類似病毒的活動及檔案,如有發現病毒會依軟體的使用者設定設定來執行相關動作,會嘗試清除病毒、刪除檔案等,會在當我們有所疏忽時,協助防止病毒入新,因此安裝是當的防毒軟體也是一種的良好習慣。市面上也有免費、功能又強大的防毒軟體(例:AVG.Ariva.Avast!)可以裝來用一用<span class="Apple-style-span" style="font-size: x-small;">(註2)</span>。<br />
<br />
<span style="font-size: x-small;">王某史瑞克的風涼話:就算防毒軟體猛到百毒不侵,使用習慣不好,中毒也能搞到連防毒軟體都不能更新,無用武之地。</span><br />
<ul><li><span style="font-size: large;">最徹底解決的辦法:不使用「暈到死」!!!</span></li>
</ul>就是使用非M$的作業系統,例如Linux和Mac OS X,因為世界上99%病毒和木馬都是針對「暈到死」的漏洞而設計的,因此「暈到死」跑的程式不能在其他作業系統上啟動,好比說淡水魚不能在海裡存活的意思一樣,安全性也比「暈到死」好上太多,尤其是Linux,它是開放原始碼的自由軟體,程式碼攤在陽光底下,漏洞比較快找到也很快修補。<br />
<br />
<span style="font-size: x-small;">註1:利用系統漏洞的人坊間通常都稱為「駭客」,但是在資安界和自由軟體界裡會細分駭客,專門寫開源自由軟體供大眾使用和幫助搜尋並修補系統漏洞的人稱為「駭客」;反之除了搜尋漏洞之外,還利用漏洞攻擊系統的人,就稱為「怪客」。因為自己身處於自由軟體界,只好用「怪客」一詞。 </span><br />
<br />
<span style="font-size: x-small;">註2:某些防毒軟體標榜雲端計算或服務,如果網路有限制流量,請不要使用,因為背景掃毒時,軟體會把資料丟到遠端伺服器,會造成流量增加。</span><br />
<ul></ul>Shrek Wanghttp://www.blogger.com/profile/01295455960922959288noreply@blogger.com0tag:blogger.com,1999:blog-2470703872048066384.post-83106854029499945982010-07-11T22:06:00.002+08:002010-07-29T22:38:14.342+08:00論Linux Desktop系統硬碟規劃本文章只適用於一般Linux desktop使用。<br />
<br />
一般使用者剛學Linux的時候通常都是把整個硬碟規劃成「/」(root),初學時不小心把系統搞掛倒是司空見慣,但是重灌時「/home」裡面的檔案全部見......心會淌血是一定的。<br />
<br />
對於一般desktop用途的使用者,「/」只要割 10GB就夠了,對!就是這麼小!不放心割20GB也絕對夠,不過久了會發現到其實會浪費很多空間,除非有需求,否則平常不用割這麼大。給Swap留一部份空間(或完全不用割,詳細會在後面說明),剩下給「/home」就好了。<br />
<br />
「/」和「/home」分割的好處就是使用者的軟體設定檔和桌面的檔案重灌後都不會消失!因為軟體設定檔和桌面的檔案都放在「/home」目錄裡,重灌時「/」格式化也不會影響到「/home」,把原本使用的軟體裝回來也不用重新設定軟體,連compiz也不用重新裝就能跑特效。<br />
<br />
坊間的書有的會說「/boot」要割出來,其實是以前開機管理程式用LILO(Linux Loader)的年代,LILO無法辨別1024磁柱以後的空間,才要把「/boot」割出來,新增GRUB(GRand Unified Bootloader)以後就不用特別割出來了。<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJGSgpoWqR0bVHEtsHh6YQV63wKe2GJsPiBr_Vske49umw9E3hwlojia1sE25J4PeBRcFfZ0I9fYusxz97F6BneKogmI6nodOslGarY-BEOJ5MBnJb4TicNXKIKkq7lTO6z0ACjrmpupA/s1600/Virtual+memory.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJGSgpoWqR0bVHEtsHh6YQV63wKe2GJsPiBr_Vske49umw9E3hwlojia1sE25J4PeBRcFfZ0I9fYusxz97F6BneKogmI6nodOslGarY-BEOJ5MBnJb4TicNXKIKkq7lTO6z0ACjrmpupA/s320/Virtual+memory.png" /></a>另外Swap(虛擬記憶體,在Linux上稱為「靜置轉換空間」)的規劃又是一大學問,Swap空間就是從硬碟上分出一部份空間,模擬出記憶體讓電腦使用,以前的記憶體比較昂貴,才會出現硬碟當作記憶體使用這個方法;但是現在電腦實體記憶體動輒1GB以上,給desktop用絕對夠,所以沒必要給Linux這麼多Swap。另外系統使用Swap次數愈多,硬碟的壽命相對減少,因為Swap就是把記憶體的資料暫存在硬碟裡,讀寫次數過多對硬碟也是一種消耗,所以Swap能不用就不用。<br />
<br />
保守規劃,如果實體記憶體有512MB(我想應該會跑超慢......) ,Swap就割1024MB到2048MB就夠用;1G的實體記憶體就割512MB到1024MB;2G以上實體記憶體就完全不用割(連我自己都沒塞暴過......)就絕對足夠。小筆電的實體記憶體比較小(最少遇過256MB),直接用Ubuntu NetBook Remix版本割512MB以上會比較好用。Shrek Wanghttp://www.blogger.com/profile/01295455960922959288noreply@blogger.com0tag:blogger.com,1999:blog-2470703872048066384.post-56907824651356720622010-06-25T22:19:00.006+08:002010-09-27T17:45:23.314+08:00Windows 7 佈景主題:Win 7娘<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_qPGBo40a1ri0Q6a9GsTimyfwIWfd-vCMjNo56I06o1NcY9lpncCUTLim8WSzTRAqFFVhNGgoU5Yx6fMkXGIpp6PvmFLnCbWzqepXIm70PSZJTImSAZdTMNPKJUkrF5iVSklBCEQ2C34/s1600/Win+7%E5%A8%98%E4%BD%88%E6%99%AF%E4%B8%BB%E9%A1%8C%2801%29.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="112" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_qPGBo40a1ri0Q6a9GsTimyfwIWfd-vCMjNo56I06o1NcY9lpncCUTLim8WSzTRAqFFVhNGgoU5Yx6fMkXGIpp6PvmFLnCbWzqepXIm70PSZJTImSAZdTMNPKJUkrF5iVSklBCEQ2C34/s200/Win+7%E5%A8%98%E4%BD%88%E6%99%AF%E4%B8%BB%E9%A1%8C%2801%29.png" width="200" /></a></div>蠻多人開始問我這個動畫人物是誰,嚴格講不算是動畫人物,這個虛擬人物除了廣告以外沒有任何動畫出現過,這是日本微軟為了宣傳Windows 7刻意創造出來的虛擬人物-<a href="http://goo.gl/EqlH">窓辺ななみ</a>。<br />
<object height="306" width="500"><param name="movie" value="http://www.youtube.com/v/Uq4veDwKK0w?fs=1&hl=zh_TW&color1=0x3a3a3a&color2=0x999999"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Uq4veDwKK0w?fs=1&hl=zh_TW&color1=0x3a3a3a&color2=0x999999" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="306"></embed></object><br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIVBrQAI6dZ53yPwkaLg6cISPRA8GZSNh3vqknmW_UaQcH8ipju9JE0w3i6svYOlqZ23gYwbQoZs5Kt0zlIZmCb4a08BtCn7ReOCL3aRltxfXUGdyl1D1cBgq483O5tFU4B-bLOsPj5NU/s1600/NanamiWallpaper2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="112" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIVBrQAI6dZ53yPwkaLg6cISPRA8GZSNh3vqknmW_UaQcH8ipju9JE0w3i6svYOlqZ23gYwbQoZs5Kt0zlIZmCb4a08BtCn7ReOCL3aRltxfXUGdyl1D1cBgq483O5tFU4B-bLOsPj5NU/s200/NanamiWallpaper2.jpg" width="200" /></a> <a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdlTpap2580d_CqMVjNkLCxWbU7S7RlMH-XfqpLWOKc2lCt-WdEzVCgNGLWbWgRKzdsj3xxyP1oL3RMaAs76krNaldMokKHiXBNKWYL71qn7RZriDVENqOnWw0UF_e0Z5B5n4E-vDC8n4/s1600/NanamiWallpaper3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="112" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdlTpap2580d_CqMVjNkLCxWbU7S7RlMH-XfqpLWOKc2lCt-WdEzVCgNGLWbWgRKzdsj3xxyP1oL3RMaAs76krNaldMokKHiXBNKWYL71qn7RZriDVENqOnWw0UF_e0Z5B5n4E-vDC8n4/s200/NanamiWallpaper3.jpg" width="200" /></a></div><div class="separator" style="clear: both; text-align: left;">Windows 7在日本上市時,為了配合日本當地文化,創造虛擬人物出來,還請到知名聲優-<a href="http://goo.gl/JgMU">水樹奈奈</a>來配音。「窓辺ななみ(まどべ ななみ,Madobe Nanami)」的中文剛好就是「Windows 7妹」,另外「水樹奈奈(みずき なな<span lang="ja" style="font-family: Verdana,sans-serif;" xml:lang="ja">,Mizuki Nana</span>)」的「奈奈」和「7」同音。除此之外,日本微軟還特別製作DSP版Windows 7 Ultimate,內容上只是多了Win 7娘的佈景主題,僅限在日本販賣,台灣買不到滴。</div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigYdBX39YiYRqfxbN9JX7KutxoMy_RTN_hFzOE7LiBFOc4hMsqmasp3o41nhZnjyX-cXRLbYrM_eDILGBdJJMUFnDNJRfTNKgjCrEwsNQaabC0r6XTcWzBQSN5Q1_Od3yodMITpMf7uUE/s1600/NanamiWallpaper1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="112" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigYdBX39YiYRqfxbN9JX7KutxoMy_RTN_hFzOE7LiBFOc4hMsqmasp3o41nhZnjyX-cXRLbYrM_eDILGBdJJMUFnDNJRfTNKgjCrEwsNQaabC0r6XTcWzBQSN5Q1_Od3yodMITpMf7uUE/s200/NanamiWallpaper1.jpg" width="200" /></a></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWRcWV7okNFzQ0HFnC9kMIVV88RxYV0tVfzzxU40ZOHgAOqcQaWlYKbFWjFYkTF96S_5G_2VFd1ySukhGG8hp9z6JPT4Z3OPGYBQ9h3GRigOahLGxqb2eEBJbIwttubfEY5iDiStsppQ8/" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="137" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWRcWV7okNFzQ0HFnC9kMIVV88RxYV0tVfzzxU40ZOHgAOqcQaWlYKbFWjFYkTF96S_5G_2VFd1ySukhGG8hp9z6JPT4Z3OPGYBQ9h3GRigOahLGxqb2eEBJbIwttubfEY5iDiStsppQ8/" width="200" /></a></div>台灣雖然沒有賣DSP版的Windows 7,但是有佈景主題在網路上流傳,點此<a href="http://cid-58119e20261a5506.office.live.com/self.aspx/.Public/%5E_windows%5E_7%5E_ultimate%5E_diy%5E_%e4%ba%88%e7%b4%84%e9%99%90%e5%ae%9a%e3%83%97%e3%83%ac%e3%83%9f%e3%82%a2%e3%83%a0%e3%82%bb.zip">下載佈景主題</a>壓縮檔,解壓縮後應該會看到如上圖所示這四個檔案,其中「MadobeNanami」就是佈景主題安裝檔,不過現在打開,大概系統不太想鳥你,必須要把「非 Unicode 程式的語言」改成日文才會甩你。「非 Unicode 程式的語言」修改方式:<br />
<blockquote>1.打開控制台 → 時鐘、語言和區域 <br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicWbDD8_6rGNbyUabWbTbRG6cA8JiIufIhy2w9JjaHLH88PalXo6X4EyUcuYUw15fvrUxuXx4YfG1BWGjVjdKBAm0PpmPrTNu6v7FiQsUu4sASxZZy8J4qUsM8EsCVyaMXBSj5DCtQkrI/s1600/Win+7%E5%A8%98%E4%BD%88%E6%99%AF%E4%B8%BB%E9%A1%8C%2802%29.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicWbDD8_6rGNbyUabWbTbRG6cA8JiIufIhy2w9JjaHLH88PalXo6X4EyUcuYUw15fvrUxuXx4YfG1BWGjVjdKBAm0PpmPrTNu6v7FiQsUu4sASxZZy8J4qUsM8EsCVyaMXBSj5DCtQkrI/s320/Win+7%E5%A8%98%E4%BD%88%E6%99%AF%E4%B8%BB%E9%A1%8C%2802%29.png" /></a></div>2.地區及語言 → 變更日期、時間或數字格式<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUlxD9juHfnmnlnsJR3uMrBTPk_6FBWB6KoJTrGLuxCRDP2vO7SCVwkmZ7ZCAuJGk66V8mfJibt2NQypMe1uTs5y-pOmgXKYEg_IN4K_BWbSWb4j9aqqCt_mgsc7WrbKtlvWebYjxLKmQ/s1600/Win+7%E5%A8%98%E4%BD%88%E6%99%AF%E4%B8%BB%E9%A1%8C%2803%29.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUlxD9juHfnmnlnsJR3uMrBTPk_6FBWB6KoJTrGLuxCRDP2vO7SCVwkmZ7ZCAuJGk66V8mfJibt2NQypMe1uTs5y-pOmgXKYEg_IN4K_BWbSWb4j9aqqCt_mgsc7WrbKtlvWebYjxLKmQ/s320/Win+7%E5%A8%98%E4%BD%88%E6%99%AF%E4%B8%BB%E9%A1%8C%2803%29.png" /></a></div>3.變更系統地區設定 → 改成日文<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8ifVa0EkTa_41obkTy1OfYnr5Hyr8J3G2D1elBEa3JlFVKH1SnNTlPPhuEQFgBx91Xr6xTLkKejJfgiAt74mQBXX3Vurr3SloDa-HIJFTxOoQ-LgwXdzbZn3ajr9xDvUWrv1XNoawq2E/s1600/Win+7%E5%A8%98%E4%BD%88%E6%99%AF%E4%B8%BB%E9%A1%8C%2804%29.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8ifVa0EkTa_41obkTy1OfYnr5Hyr8J3G2D1elBEa3JlFVKH1SnNTlPPhuEQFgBx91Xr6xTLkKejJfgiAt74mQBXX3Vurr3SloDa-HIJFTxOoQ-LgwXdzbZn3ajr9xDvUWrv1XNoawq2E/s320/Win+7%E5%A8%98%E4%BD%88%E6%99%AF%E4%B8%BB%E9%A1%8C%2804%29.png" /></a></div>4.點選確定後系統會要求重開機,重開後點選「MadobeNanami」就會自動安裝。</blockquote> 之後Windows 7就出現「窓辺ななみ」這個佈景主題囉。安裝完後請記得「非 Unicode 程式的語言」要改回繁體中文,以免造成更多麻煩,別說我沒提醒。喔,對了,想要影片右下角的窓辺ななみ請在此<a href="http://goo.gl/CmkI">下載檔案</a>,解壓縮後打開「SoraTan」就會出現,滑鼠點兩下會講話。<object height="385" width="480"><param name="movie" value="http://www.youtube.com/v/_PDpjGX8lts?fs=1&hl=zh_TW&color1=0x3a3a3a&color2=0x999999"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/_PDpjGX8lts?fs=1&hl=zh_TW&color1=0x3a3a3a&color2=0x999999" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object><br />
部份資料轉自<a href="http://goo.gl/DO3L">T客幫</a>Shrek Wanghttp://www.blogger.com/profile/01295455960922959288noreply@blogger.com3tag:blogger.com,1999:blog-2470703872048066384.post-36913592991527508832010-06-20T14:17:00.000+08:002010-07-11T22:08:17.465+08:00為了Vim,我不要終端機有奇怪的底色!<div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSxN_9bNSMsSivtVU5RvrvPN5VfDQUZUwq-kIwfx1753w6ZR7ZKumGoJFx17udPcFIMuOXewoWG9OtYxVpYz8R0SaVGYFk0i54TLJ1604z4hlULd_CA62H96jZ6Zg-oRjNaE0kIR3P7E0/s1600/%E7%82%BA%E4%BA%86Vim%EF%BC%8C%E6%88%91%E4%B8%8D%E8%A6%81%E7%B5%82%E7%AB%AF%E6%A9%9F%E6%9C%89%E5%A5%87%E6%80%AA%E7%9A%84%E5%BA%95%E8%89%B2%EF%BC%81(01).png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="131" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSxN_9bNSMsSivtVU5RvrvPN5VfDQUZUwq-kIwfx1753w6ZR7ZKumGoJFx17udPcFIMuOXewoWG9OtYxVpYz8R0SaVGYFk0i54TLJ1604z4hlULd_CA62H96jZ6Zg-oRjNaE0kIR3P7E0/s200/%E7%82%BA%E4%BA%86Vim%EF%BC%8C%E6%88%91%E4%B8%8D%E8%A6%81%E7%B5%82%E7%AB%AF%E6%A9%9F%E6%9C%89%E5%A5%87%E6%80%AA%E7%9A%84%E5%BA%95%E8%89%B2%EF%BC%81(01).png" width="200" /></a></div>Ubuntu 10.04 LTS Lucid Lynx發佈後,有些改變很有心意,其中一個就是終端機(Terminal)的背景顏色預設成跟Ubuntu的風格一樣,而且半透明化,但是這個設定對於重度Vim使用者來說非常的不方便,Vim有syntax功能,syntax會在程式語言的資料型別(data type)、引數(argument)、數字(number)、字串(string)、字元(character)、脫序(escape sequence)、指述(statements)、註解(comment)標上顏色,對於寫程式和除錯(debug)非常方便(請想像一下當程式碼成千上萬行,要除錯的時候面對文字顏色都是白色或黑色是什麼感覺?),syntax會把控制流程指述(control statement)標上咖啡色,跟終端機預設的底色幾乎雷同,造成閱讀上的困難。<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRUUF7QBLki3viRvfXYAOpMY-fvXXCx22RdaddQFCmJ28VTVtPSjW0yd5wRCe-96cuSnhZLm1r8naEaIdDuyHR3hTru0l0czoXRj0HM6YNTrHM1ocF_gaxSF-s5QTVH8SWZqiv7Tik9SA/s1600/Vim%E8%90%AC%E6%AD%B2%EF%BC%81.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRUUF7QBLki3viRvfXYAOpMY-fvXXCx22RdaddQFCmJ28VTVtPSjW0yd5wRCe-96cuSnhZLm1r8naEaIdDuyHR3hTru0l0czoXRj0HM6YNTrHM1ocF_gaxSF-s5QTVH8SWZqiv7Tik9SA/s400/Vim%E8%90%AC%E6%AD%B2%EF%BC%81.jpg" width="400" /></a></div>為了造福有心維持古老終端機編寫程式碼的眾生們,以下簡單的方法就能改回之前純白的底色:<br />
<blockquote>取消半透明: <br />
1.編輯 → 設定組合偏好設定<br />
2.背景頁 → 點選「透明背景」 → 「漸變的背景或背景圖片」拉到最大值</blockquote><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiP9mJvK8hNU2tqpGMLTErRIeZqINlMWh4449JGbhP0BW3Lnmhxzu2uJseBi9ka8uXyPl7ZZGW_1ougopZz-NYk3dxEO71sojiIeR4v740xAT5nZBFMeZtrDB4ekz7G0_aVmZWTYkFUJRA/s1600/%E7%82%BA%E4%BA%86Vim%EF%BC%8C%E6%88%91%E4%B8%8D%E8%A6%81%E7%B5%82%E7%AB%AF%E6%A9%9F%E6%9C%89%E5%A5%87%E6%80%AA%E7%9A%84%E5%BA%95%E8%89%B2%EF%BC%81(02).png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="244" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiP9mJvK8hNU2tqpGMLTErRIeZqINlMWh4449JGbhP0BW3Lnmhxzu2uJseBi9ka8uXyPl7ZZGW_1ougopZz-NYk3dxEO71sojiIeR4v740xAT5nZBFMeZtrDB4ekz7G0_aVmZWTYkFUJRA/s320/%E7%82%BA%E4%BA%86Vim%EF%BC%8C%E6%88%91%E4%B8%8D%E8%A6%81%E7%B5%82%E7%AB%AF%E6%A9%9F%E6%9C%89%E5%A5%87%E6%80%AA%E7%9A%84%E5%BA%95%E8%89%B2%EF%BC%81(02).png" width="320" /></a></div><blockquote>改底色:<br />
1.同上第一步<br />
2.顏色頁 → 取消「使用系統佈景主題指定的色彩」 </blockquote><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglqNkonRlqYRJFrHeKVcyfpq39ykpcwbtj4U_OCjfl8ce0FwrGFXSRH8tsPKa1-_dWmrVhjTPhL2OPmnhU9BUUx1uNvIJO1R67yY4nNo3Gxsdo5n7wOHuUTREgkcQXwRcZsf3vissq31c/s1600/%E7%82%BA%E4%BA%86Vim%EF%BC%8C%E6%88%91%E4%B8%8D%E8%A6%81%E7%B5%82%E7%AB%AF%E6%A9%9F%E6%9C%89%E5%A5%87%E6%80%AA%E7%9A%84%E5%BA%95%E8%89%B2%EF%BC%81(03).png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglqNkonRlqYRJFrHeKVcyfpq39ykpcwbtj4U_OCjfl8ce0FwrGFXSRH8tsPKa1-_dWmrVhjTPhL2OPmnhU9BUUx1uNvIJO1R67yY4nNo3Gxsdo5n7wOHuUTREgkcQXwRcZsf3vissq31c/s320/%E7%82%BA%E4%BA%86Vim%EF%BC%8C%E6%88%91%E4%B8%8D%E8%A6%81%E7%B5%82%E7%AB%AF%E6%A9%9F%E6%9C%89%E5%A5%87%E6%80%AA%E7%9A%84%E5%BA%95%E8%89%B2%EF%BC%81(03).png" /></a></div>這樣顏色就會變回跟以前一樣啦。<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv0LzThb27fMfxjwpwmPcgeWo8qm0oGpMpMVK4Uc3Bs56j31Le_NMMtaypucpwACAUrvyNNAMFilX9po_ikyBwEBtPULpAMZRwgY53SmyBb8EYWoBMKS8yq-FarmkSgSYVlDIwxvUTSlw/s1600/%E7%82%BA%E4%BA%86Vim%EF%BC%8C%E6%88%91%E4%B8%8D%E8%A6%81%E7%B5%82%E7%AB%AF%E6%A9%9F%E6%9C%89%E5%A5%87%E6%80%AA%E7%9A%84%E5%BA%95%E8%89%B2%EF%BC%81(04).png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="131" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv0LzThb27fMfxjwpwmPcgeWo8qm0oGpMpMVK4Uc3Bs56j31Le_NMMtaypucpwACAUrvyNNAMFilX9po_ikyBwEBtPULpAMZRwgY53SmyBb8EYWoBMKS8yq-FarmkSgSYVlDIwxvUTSlw/s200/%E7%82%BA%E4%BA%86Vim%EF%BC%8C%E6%88%91%E4%B8%8D%E8%A6%81%E7%B5%82%E7%AB%AF%E6%A9%9F%E6%9C%89%E5%A5%87%E6%80%AA%E7%9A%84%E5%BA%95%E8%89%B2%EF%BC%81(04).png" width="200" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div>Shrek Wanghttp://www.blogger.com/profile/01295455960922959288noreply@blogger.com0