顯示具有 Work'n 標籤的文章。 顯示所有文章
顯示具有 Work'n 標籤的文章。 顯示所有文章

2007年9月5日 星期三

Windows 開啟系統碟異常

近日發現,當windows xp sp2版本開啟系統碟(ex: C,D...)會出現選取程式開啟的異常狀況。
上網找了一下相關的資料,並且修改了一下內容,將其描述於下,供大家參考。
首先將下面的程式碼


reg.exe add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoDriveAutoRun /t REG_BINARY /d ffffff03 /f
reg.exe add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 0x000000df /f

reg.exe add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 0x000000df /f
reg.exe add "HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 0x000000df /f

reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2" /f

cd
C:
md autodir
attrib -a -s -h -r autorun.inf /q
ren autorun.inf cauto.txt
move cauto.txt autodir

D:
attrib -a -s -h -r autorun.inf
ren autorun.inf dauto.txt
move dauto.txt C:autodir

E:
attrib -a -s -h -r autorun.inf
ren autorun.inf eauto.txt
move eauto.txt C:autodir

F:
attrib -a -s -h -r autorun.inf
ren autorun.inf fauto.txt
move fauto.txt C:autodir

G:
attrib -a -s -h -r autorun.inf
ren autorun.inf gauto.txt
move gauto.txt C:autodir



將以上的文字一字不漏將其存檔成fix.bat(檔名可自訂),點兩下執行,接著重新啟動電腦即可!

以上若個人的磁碟有超過G以下,則增加類似下段內容即可!
紅色自體為需要修改的部份(EX:磁碟槽H則需改為h)


H:
attrib -a -s -h -r autorun.inf
ren autorun.inf hauto.txt
move hauto.txt C:autodir


以上若有任何疑問歡迎提出指教!^^

2007年6月8日 星期五

Cisco password recover

一:先準備一條使用RJ45接頭的連接線,連接Router的Console Port。

二:終端機使用以下設定(不要用Win NT,建議用WinXP.2000.2003)
9600 baud rate
No parity
8 data bits
1 stop bit
No flow control


三:將Router開機,
System Bootstrap, Version 11.3(19)AA, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1)
Copyright (c) 1998 by cisco Systems, Inc.
C2600 processor with 32768 Kbytes of main memory
Main memory is configured to 32 bit mode with parity enabled
看到出現此訊息後,趕緊按下Ctrl+Break送出 Break,就會進到ROMMON Mode。

四:在rommon>下輸入confreg
rommon 1 > confreg
回答下列問題
Configuration Summary
enabled are:
load rom after netboot fails
console baud: 9600
boot: image specified by the boot system commands
or default to: cisco2-C2600

do you wish to change the configuration? y/n [n]: y-------回答Y
enable "diagnostic mode"? y/n [n]:
enable "use net in IP bcast address"? y/n [n]:
disable "load rom after netboot fails"? y/n [n]:
enable "use all zero broadcast"? y/n [n]:
enable "break/abort has effect"? y/n [n]:
enable "ignore system config info"? y/n [n]: y-------回答Y
change console baud rate? y/n [n]:
change the boot characteristics? y/n [n]: y-------回答Y

enter to boot:
0 = ROM Monitor
1 = the boot helper image
2-15 = boot system
[2]: 2-----要選2

五:rommon 2 > reset 重新啟動 Router
六:--- System Configuration Dialog --- Router 會自動進入 Setup 選單
Would you like to enter the initial configuration dialog? [yes/no]:
按 Ctrl-C 中斷 Setup

七:Router 會進入一般模式
Router>enable 進入 Priviledged mode (不需輸入任何密碼)
Router#show startup-config 顯示 NVRAM 裡面的 Startup-Config
(顯示結果省略)

八:將 Startup-Config 載入 DRAM
Router#configure memory

九: 2611#configure terminal----輸入此命令進入設定模式

十:將 enable 的密碼改為 [自訂]
2611(config)#enable secret [自訂]
十一:將 Running-Config 寫回 NVRAM
2611#copy running-config startup-config

十二:
2611#show version
Cisco Internetwork Operating System Software
(中間結果省略)
Configuration register is 0x2142 目前的 Configuration Register 為 0x2142

十三:
2611#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
2611(config)#config-reg 0x2102 將 Configuration Register 改回來
2611(config)#^Z -----Ctrl+Z
2611#
00:01:54: %SYS-5-CONFIG_I: Configured from console by console
2611# reload 重新開機

PS:參考網頁(Cisco)

2007年4月9日 星期一

Multicast(多點傳播)相關解釋

Multicast的目的在於協助處理以少量頻寬傳送超載的資料,並減輕相關網路設備的負載。即在網路上的任意一位使用者,同時傳送資料給多位使用者時,並非以一人一份的方式傳送,而是考慮以降低重覆程度的方式來傳送。舉例來說,如果一份資料約為200kb,同時送給10位使用者,則傳送端的使用者機器便需有2Mb的上傳頻寬才能完成此一任務。這樣的頻寬需求對於目前國內的網路環境而言仍有相當程度的不便,此時便需運Multicast的技術來解決這樣的問題。

視訊會議或多媒體影音服務系統便屬於此一應用的嘗試者。若使用者對於某項視訊會議或多媒體影音服務感到興趣,而想加入會議進行討論或參與某家影音多媒體之線上服務,此時,對於會議及影音服務提供者而言便多種方式提供此項服務。首先,可針對每一位參與者建立一個連線,如此可確保資料的傳輸是直接且較易控制與處理,但對於伺服器的影響及網路連線頻寬的要求較大;另一種方式即為廣播(Broadcast),此一方式將所有網路上的使用者皆可接收到相關的資訊內容,不管使用者同意或不同意。此一方式的缺點是將會造成網路設備的負載過重,影響其他使用者的權益,並對於加入付費機制的使用者不公平。第三種方式即為本文重點一
Multicast(多重傳送)。

Multicast的服務,主要在於提供一個多對多資料傳送運作機制。當網路上有多位使用者想要參與某項會議,不管是散佈在全球各地或是在同一個會議室內,Multicast對於網路設備或是連線品質的影響程度將遠小於點對點傳輸的影響,且將可促進網路連線頻寬的有效利用。

Multicast協定運作IPv6 Multicast在協定方面與IPv4並無顯著差異。主要仍分為網路設備(Router)端與使用者(Host)端。Router端目前發展主要以PIM(Protocol Independent Multicast)為主;Host端則以MLD(Multicast Listener Discovery)為主。PIM的功能在於與其他Multicast Router進行Multicast的訊息交換,取得所有與Multicast相關的訊息,如(Sender,Group)及瞭解Multicast的整體架構。由於其可配合任何一種IPv6 unicast routing的運作,故稱為”Protocol Independent”;MLD的功能則類似於IPv4的IGMP,主要的功能在於協助Router找出位於其區域網路中之參與Multicast主機(Host)或是其他提供IPv6 Multicast功能的網路設備,並傳遞相關資訊予Rendezvous Point(RP),並產生Rendezvous Point Tree(RPT)的架構以便後續Multicast的進行。

當區域網路中有使用者想要加入某場視訊會議或參與某個多媒體影音串流服務時,必須先告知其連線路由器相關資訊,如想要加入的群組等,再由路由器協助其參與。此一運作協定即由MLD完成。當使用者想要加入時,會送出一個report訊息給其連線路由器。連線路由器便會將此一report訊息及欲參與之群組位址相關資訊送予RP,構成一個IPv6 Multicast傳送骨幹架構(RPT)。當路由器收到來源端所傳送的資料後,便會根據此RPT中包含之使用者的相關訊息傳送出去,完成IPv6 Multicast資訊的傳遞。網路上任何一位使用者都可以傳送資料到Multicast群組中,但只有Multicast群組的成員(group member)才可以接收到此一群組資訊。

另外,目前IPv6 Multicast的連線建置主要有兩種方式,一是Native IPv6 Link,另一種則是IPv6over-IPv4 Tunnel Link或IPv6-over-IPv6 Tunnel Link。目前Tunnel Link機制的運作方式,即以編碼的方式將IPv6 Multicast封包編碼後包含在IPv4封包或IPv6封包中傳送出去,到達對方的Router後再解碼,完成IPv6封包的傳遞及相關協定的運行。目前定義在PIM-SM的封包傳送也包含一段Tunnel,做為控制資料封包的傳遞。

參考資料:
http://www.iicm.org.tw/communication/c1_2/page05.html
RFC1112

2007年3月11日 星期日

SNMP MIB Description

~~~~~SNMP MIB Description~~~~~

in discards
The number of inbound packets which were chosen to bediscarded even though no errors had been detected to preventtheir being deliverable to a higher-layer protocol. Onepossible reason for discarding such a packet could be tofree up buffer space.
Discontinuities in the value of this counter can occur atre-initialization of the management system, and at othertimes as indicated by the value of ifCounterDiscontinuityTime.

in error
For packet-oriented interfaces, the number of inboundpackets that contained errors preventing them from beingdeliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inboundtransmission units that contained errors preventing themfrom being deliverable to a higher-layer protocol.
Discontinuities in the value of this counter can occur atre-initialization of the management system, and at othertimes as indicated by the value of ifCounterDiscontinuityTime.

IN-UcastPkts By upstream
The number of packets, delivered by this sub-layer to ahigher (sub-)layer, which were not addressed to a multicastor broadcast address at this sub-layer.
Discontinuities in the value of this counter can occur atre-initialization of the management system, and at othertimes as indicated by the value of ifCounterDiscontinuityTime.

OUT-UcastPkts By downstream
The total number of packets that higher-level protocolsrequested be transmitted, and which were not addressed to amulticast or broadcast address at this sub-layer, includingthose that were discarded or not sent.
Discontinuities in the value of this counter can occur atre-initialization of the management system, and at othertimes as indicated by the value of ifCounterDiscontinuityTime.

SNMP-Pkts By CMTSIN
The total number of Messages delivered to theSNMP entity from the transport service.

SNMP-Badname By CMTS
The total number of SNMP Messages delivered tothe SNMP protocol entity which used a SNMPcommunity name not known to said entity.

SNMP Uncorrectable By upstream
Codewords received on this channel with uncorrectableerrors. This includes all codewords, whether or notthey were part of frames destined for this device.

2007年3月4日 星期日

工作筆記-Access list 觀念

Access list 觀念,是我們一般常聽見的網路用語, access list 分為條列式,就是依照各各封包屬性進行限定,最初的觀念是始於防火牆觀念(依照順序的優先權進行控管)
EX: By source 與 destination的 #1
Access group 與 access list 是成對出現的,因為設定上的方便而設定,若有部分修改時,只要修改Access group即可,可增加效率.
總和來說,將Access list分類完成(在頻寬管理器上,可能稱為 address group)-->再將其加到policy裡面-->在bind於interface上-->寫回start config內完成.
而一般policy的運用,大致可以分為3大類:
1.政策性路由(rounting policy): 設定rounter相關規則.
2.安全: 運用於pix的相關規則.(ap的應用等..)
3.頻寬管理: rate limit.

#1 TOS也是封包的內容之1,較早期並無對該內容多加設定,但目前多運用於QOS上面,而於IPV6上該設定更為複雜,目前於IPV4上共有8種狀況.(EX: T=0,O=0,S=0,依此類推)

工作筆記-CISCO作業系統觀念

一般來說CISCO做也系統與一般的網路設備,都有階層式的架構:
運用pawwrod進入第一層 -->enable mode -->config mode -->interface mode -->...
其中enable mode 與 config mode 可以說是 global設定.
而一般於cisco設定時,其設定檔接儲存於run config,並沒有存放於start config中(一般來說start config 存放於NVRAM中,而RUN CONFIG 存放於RAM,電源關閉後則失去設定檔)
因此一般來說設定完成須要下: "copy run start"
如果在一開始操作時也可以先將 start config copy 回 run config ,在進行run config 設定,即使設定有誤,立即將start config copy回來即可!
當然也可以運用tftp傳輸的方式於本基端將設定檔修正完成,在回存於設備中!