<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="http://120.112.17.17/blog/styles/rss.css" type="text/css"?>
<rss version="0.91">

 <channel>
  <title>豬窩</title>
  <link>http://120.112.17.17/blog/shyong</link>
  <description> 小豬的備忘錄,對錯完全不負責 
</description>
    <item>
   <title>Dlink 一個 port 只有一個 MAC</title>
   <description>   </description>
   <link>http://120.112.17.17/blog/shyong/archives/586</link>
      <pubDate>Thu, 09 May 2019 13:37:40 +0800</pubDate>   
  </item>
    <item>
   <title>中華電信進來光纖只用一芯</title>
   <description> 
其實這一條 細光纜 裡面有二芯光纖絲 
就像很多人以為中華電信供裝拉的那一條電話線裡面只有二芯銅線 事實上是四芯銅線 
目前 純網路訊號的PON 都是只吃一芯光纖絲 來跑網路訊號 
下行(從機房端或路邊交接箱--&gt;用戶端) 的光波長是走1490nm 
上行(從用戶端--&gt;機房端或路邊交接箱) 的光波長是走1310nm 
不同波長所以只要吃一芯光纖絲即可,不會插錯
 
 
一般 switch to switch 用兩芯是因為價差
 
 
&nbsp;一個單芯雙波長(1310nm, 1490nm)的光纖收發模組 &gt; 一個單芯單波長(1310nm)的光纖收發模組+一個單芯單波長(1310nm)的光纖收發模組 還貴 
 </description>
   <link>http://120.112.17.17/blog/shyong/archives/580</link>
      <pubDate>Fri, 09 Nov 2018 18:32:09 +0800</pubDate>   
  </item>
    <item>
   <title>Dlink Switch 查找 MAC Adress 在那裏</title>
   <description> 
先在電腦上利用 ping , arp -a 查找 IP 的 MAC , 或用 netscan 掃描 IP 取得 MAC Address 
DLINK 如何查找 MAC Address 在那一個 PORT 
DGS-3630 =&gt; [L2 Features] -&gt; [FDB] -&gt; [MAC Address Table] 在 MAC Address 輸入查找 MAC Address 接 [Find] 
DGS-3100 =&gt; [Monitoring] -&gt; [MAC Address Table] 在 MAC Address 輸入查找 MAC Address 接 [Find] 
DGS-3120 =&gt; [L2 Features] -&gt; [FDB] -&gt; [MAC Address Table] 在 MAC Address 輸入查找 MAC Address 接 [Find] 
DGS-1210 =&gt; [Security] -&gt; [MAC Address Table] -&gt; [Dynamic Forwarding Table] 查找 
 
 
&nbsp;
 </description>
   <link>http://120.112.17.17/blog/shyong/archives/570</link>
      <pubDate>Fri, 20 Oct 2017 12:13:31 +0800</pubDate>   
  </item>
    <item>
   <title>fortigate 200d 虛擬 IP 設定</title>
   <description> 
在設定 虛擬 IP 1對1 時,介面須選進來的介面,一般是 wan1,這樣在設定 policy才能選到
 
 
&nbsp;
 
 
&nbsp;
 </description>
   <link>http://120.112.17.17/blog/shyong/archives/558</link>
      <pubDate>Mon, 30 Jan 2017 11:00:42 +0800</pubDate>   
  </item>
    <item>
   <title>dlink 1210-24 測試設定</title>
   <description> 
Security =&gt; Port Security =&gt; Admin Sate (Enabled) , Max Learning Address (1)
 
 
Loopback Detection =&gt; State (Enabled)
 
 
Spanning Tree =&gt; Stp Global Settings =&gt; RSTP Status (Enabled)(開啟則還原卡派送抓不到)
 </description>
   <link>http://120.112.17.17/blog/shyong/archives/486</link>
      <pubDate>Tue, 21 May 2013 09:24:45 +0800</pubDate>   
  </item>
    <item>
   <title>DGS-3627G 各 port 的觀察</title>
   <description> 
今天工作常所的網路時好時壞,檢查的結果是有一台switch的vlan port 疑似有問題,處理後好像好了,可是回家連網時又時好時壞,突然想到可以查看所有光纖進來的port,一查發現有一個port的流量非常大,一查brocast也很大,將那個port down 掉,連網變得很快,看來就是它的問題,明天在去現場好好查一查, 以後要學聰明,先查看所有光纖port 
 
 
DGS3627G =&gt; Monitoring =&gt; Packets =&gt;Rx,Rx,Tx(3選1)第二個 Rx 為 Broadcast
 </description>
   <link>http://120.112.17.17/blog/shyong/archives/475</link>
      <pubDate>Thu, 20 Sep 2012 21:04:18 +0800</pubDate>   
  </item>
    <item>
   <title>DGS-3627G 防網路風暴</title>
   <description> 
學校班級網路點,規劃者都規劃兩點,可是這樣有點討厭,學生有時候會將同一條網路線插兩點,形成 Loop,而網路就掛點了,因為學校網路主幹switch用 dlink dgs-3267g,可以用 Traffic Control 來將有網路風暴的switch,連回來的點shutdown掉,以免掛掉整個 vlan,設法如下:

 
 
在左邊功能選 =&gt; [Security] -&gt; [Traffic Control] =&gt; 在右邊設定  
 
 
From,to 選設定 Port&nbsp; ==&gt; Broadcas(廣播)設定 Enabled =&gt; Multicast(多點傳播)設定 Enabled =&gt; Unicast(單點傳播)都可以 =&gt; Action 設定 Shutdown =&gt; Threshold(封包)數內定就可以 =&gt; CountDown 設 5 =&gt; InterVal&nbsp; 設 5&nbsp; 然後接下 [Apply] 就可以了
 
 
這樣當設定 Port 超過封包數 5 分鐘後,該 Port 就會 Shutdown ,這樣就可以查到是那裡產生的問題,而要將該 Port 還原,必須用
 
 
 
 
 
選 Port ,點 [Apply] 就恢復了
 
 
這是測出來的方法,英文差真辛苦,只好半看半猜 
 
 
&nbsp;
 
 
&nbsp;
 </description>
   <link>http://120.112.17.17/blog/shyong/archives/453</link>
      <pubDate>Wed, 05 Oct 2011 15:05:57 +0800</pubDate>   
  </item>
    <item>
   <title>m0n0wall 安裝</title>
   <description>&nbsp; 使用  CF  卡作為主要磁片營運  m0n0wall  ， 例如  Soekris boxes  。或使用  IDE  硬碟的標準  PC  機。   m0n0wall   將從  CF  卡或磁片引導在內存中營運。除了改變並且保留配置的時候，  m0n0wall  不對  CF  卡或磁片進行操作。 
 
 下載  CF/IDE image  。    
 
 
 把  CF/IDE image  寫到足夠大的  CF  卡或硬碟（至少  5 MB  ）。額外的空間被空置。   
 
 
 1.FreeBSD  ︰    
 
 
 gzcat
net45xx-xxx.img | dd of=/dev/rad[n] bs=16k 
 
 
 n = CF  卡或  IDE  硬碟設備號。（  check dmesg  ）   
 
 
 忽略關於  trailing garbage  的警告－是數字化簽名警告。    
 
 
 2.Linux  ︰    
 
 
 gunzip -c net45xx-xxx.img | dd of=/dev/hdX bs=16k 
 
 
 X = CF  卡或  IDE  硬碟（  check with hdparm -i /dev/hdX  ）  IDE  設備名字，特別是  USB  設備。   -   一些改編者，特別是  USB  ，  SCSI  出現  /dev/sdX  設備名字。   
 
 
 忽略關於  trailing garbage  的警告－是數字化簽名警告。   
 
 
 3.Windows  ︰    
 
 
 physdiskwrite [-u]net45xx-xxx.img  
 
 
 可以從  m0n0wall physdiskwrite   頁網站中獲得的  physdiskwrite v0.3  或更高版本的程式。 如果硬碟  &gt;800M  ，使用  「-u」  命令（沒有方括號）。然後選擇硬碟   !  
 
 
 physdiskwrite v0.5 by Manuel Kasper &lt;mk@neon1.net&gt; 
 
 
 Searching for physical drives... 
 
 
 Information for \\.\PhysicalDrive0: 
 
 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Windows: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  cyl: 14593 
 
 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 tpc: 255 
 
 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 spt: 63 
 
 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  C/H/S: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  16383/16/63 
 
 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Model: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  ST3120026A 
 
 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Serial
number: 3JT1V2FS 
 
 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Firmware rev.: 3.06 
 
 
 注意︰加載  CF  卡或硬碟，再營運  physdiskwrite  。選擇正確的硬碟，否則將破壞其他硬碟的數據。   
 
 
 
參考: m0n0wall 中文手冊.doc </description>
   <link>http://120.112.17.17/blog/shyong/archives/353</link>
      <pubDate>Thu, 07 Jan 2010 10:17:18 +0800</pubDate>   
  </item>
    <item>
   <title>CSCIO 2900,3500 密碼恢復</title>
   <description> 這篇是之前在&nbsp;  blog.rec.org.tw  寫的  今天想要修改 cisco2924 的 vlan ,結果竟然將 enable 的密碼忘記,結果只好試試網路上找到的密碼恢復的方法,竟然可用,真爽,網路上說這是 3500 系列的方法,想不到用在 2900 也可以    按住交換機前面板的「mode」按鈕，插上電源線，當端口1上面的燈不亮後，放鬆「mode」按鈕；   依次輸入輸入 flash_init  =&gt; load_helper   rename flash:config.text flash:config.old   輸入boot，重新啟動系統   系統啟動完後顯示：Continue with the configuration dialog? [yes/no] : 輸入N  進入enable模式後，輸入rename flash:config.old flash:config.text  Switch# copy flash:config.text system:running-config  　　Source filename [config.text]? (press Return)  　　Destination filename [running-config]? (press Return)   switch#configure terminal  　　switch(config)#no enable secret  　　switch(config)#no enable password  　　switch(config)#exit  　　switch#write memory  　　這時,系統就恢覆沒有密碼的狀態了    vlan 設定    en vlan database vtp transparent vlan 110 vlan 120 exit  conf t  int fa 0/1 switchport access vlan 110 exit  int fa 0/2 switchport access vlan 110 exit  int fa 0/3 switchport access vlan 120 exit  int fa 0/4 switchport access vlan 120 exit   </description>
   <link>http://120.112.17.17/blog/shyong/archives/19</link>
      <pubDate>Sun, 27 May 2007 20:19:12 +0800</pubDate>   
  </item>
   </channel>
</rss>

