2016年8月31日 星期三

ZMAN 在 酷!學園 上對 VLAN 的 tagged & untagged 觀念

A.
下午4:00
由於兩台都已經設定了 VLAN,我原本以為說設定了 VLAN 就等同於在 Switch 實體隔離了這些 Ports,當我只接上 Switch 1 的 Port 02 接上 Switch 2 的 Port 01 是沒問題的,Switch 兩邊的網路會通,而且兩邊又是同樣的 VLAN 所以不覺得有異。
但是當我 Switch 1 的 Port 10 接上 Switch 2 的 Port 09 之後,VLAN 2 的網路就完全不通,可是 VLAN 1 的網路都是正常的!

D-Link 的 Spanning tree 預設是關閉的
Intel 的網管型 Switch 預設是將 Spanning tree 打開的
在多 Switch 的情況下,封包交換時必須依賴 Tag 資料封裝在 FRAME 最前面加一個 4 Bytes 的 TAG ( 前面 2 BYTES 固定是 8100h ),基本上來說 Tag 就代表著一個附帶的資訊,可告訴網路設備說我這次傳入的封包是一個帶有 Tag 資訊的封包。
對不支援 Tagged VLAN 的 Switch 來說,這類封包會自動丟棄 
Switch 裡預設的情況下所有的 Ports 都是 Untagged VLAN Ports
--------------------

B. 如何在L2 網管型交換器上設定802.1Q 標籤VLAN - TP-Link

-------------------
VLAN 的 tagged & untagged 觀念 

在IEEE802.1p/1Q實際上要一起看
實作的方式就是在FRAME上加一個 4 bytes的TAG(802.3ac封包格式)
前面兩個bytes放8100H 
用口語化來說就是告訴網路設備我是一個特種封包後面有帶資訊不要把我丟掉
所以說如果網路設備看的懂8100H 不會丟掉還會到後面讀資訊並處理
我們就叫他作支援IEEE 802.1p/1Q

所以回到你的問題
單一設備時可以UNTAG
因為要跨設備所以在UPLINK處兩端一定要帶TAG
否則會無法辨識處理
設定上你只要讓第24埠同時屬於VLAN1/2/3即可(到此為止還沒談ROUTING 喔 因為你不需要)
設定方法請看手冊一定有寫
3COM的交換器在設VLAN時可以用WEB 點拉選 
不用在文字模式下指令 很容易操作也不容易犯錯

以企業應用來說
從網卡開始設VLAN是比較彈性的
累前面爽後面
尤其是辦公室位置常變來變去的

-------
原理了解剩下只是不同設備的設定罷了
設備手冊上都會敎你該怎麼設

去設定你的網卡啊
把802.1p/Q TAG enabled
然後指定VLAN ID
這樣的好處是電腦不管搬到一樓或二樓或三樓
MIS啥也不用重新設定

------------
intel 跟 3com 網卡都可以直接設定 tag 
d-link 最受市場歡迎的 530 對不起,不行
不過550 好像可以,不過買550我還是買intel的好了
---------
看起來您似乎是需要以port為單位的vlan
不過.如前面所言.您需要使用tag vlan才能跨switch
如果.網路卡不支援tag 或更下層的switch不支援 tag
可以選擇在兩台switch的port上 做tag的增加及過濾移除
-------------


同樣兩台switch
請問這樣vlan設定好之後要怎麼設定tagged?麻煩賜教~


create vlan vlanX tag X
config vlan vlanX add|delete untagged|tagged port_number


--------------------------------------------
Spanning tree
The Spanning Tree Protocol (STP) is a network protocol that builds a logical loop-free topology for Ethernet networks


Aruba 2620 Switch Series

Aruba 2620 Switch Series manual

HP Search site

Re: Hp Procurve 2620 Vlan configuration and tagging - HP Support Forum - 5646365




 OCCASIONAL VISITOR

Re: Hp Procurve 2620 Vlan configuration and tagging - HP Support Forum - 5646365

Re: Hp Procurve 2620 Vlan configuration and tagging - HP Support Forum - 5646365
Please help to configure vlan on HP procurve
running network present - no vlans
Vlan 10 - primary vlan -one main server with dhcp server - ip address 192.168.1.1 - 255.255.255.0
Vlan 20 - Voice vlan - PBX with dhcp server ip address 192.168.2.1 - 255.255.255.0
Vlan 30 - Guest Vlan - Internet Proxy server with dhcp server ip address 192.168.100.1 - 255.255.240.0
Hp Procurve 2620 24 ports switches - 2 nos
I want to separate each vlan and assign dhcp server to each vlans
how to tagged and untagged ports ?
its very grateful if you provide the entrie CLI commands
thanks 
1 REPLY


 HONORED CONTRIBUTOR

Re: Hp Procurve 2620 Vlan configuration and tagging - HP Support Forum - 5646365

I used to find the "menu" that is available off the CLI is a convenient way to configure
 VLANs for switchports, especially when you're familiar with other vendors where VLAN memebership is configured in interface context mode.
On Procurves, VLAN membership is configured in VLAN context mode.
So you go,
vlan 10 untag 1-12
vlan 10 tag 22,24
vlan 20 tag 1-12,22,24
vlan 30 untag 13-20
vlan 30 tag 22,24
and 22,24 are the ports you use to link your two switches together.
You'll need a 4th VLAN to connect to your WAN/internet router:
vlan 99 untag 23
And a default route pointing at your WAN router.
And why use 192.168. addresses? Use 10. addresses, they are way nicer.

Group Policy Settings for Personalization - TechNet - Microsoft

Group Policy Settings for Personalization - TechNet - Microsoft

  • Prevent changing theme
  • Prevent changing visual style for windows and buttons
  • Prevent changing window color and appearance
  • Prevent changing desktop background
  • Prevent changing desktop icons
  • Prevent changing mouse pointers
  • Prevent changing screen saver
  • Prevent changing sounds

Alex howto calc power consumption

(0.9 A x 220V) + Monitor 180W = 378W for Lenovo PC +Monitor


1000UPS VA x Power Factor 0.9 (on UPS spec) = 900W

378W / 900W = 0.42 = 42% loading

Battery Run time table

40% Loading  1000VA + External Battery = 100Minutes Battery up time

2016年8月30日 星期二

Taskbar go to Bottom of Windows 7

Move back original position 
Work Disable below two item . then manual set

A. Prevent changes to Taskbar and Start Menu Settings

B.
Prevent users from moving taskbar to another screen dock location
This policy setting’s existing functionality from Windows Vista remains unchanged.
If you enable this policy setting in Windows 7, it also disables the new Taskbar location on screen option in the Taskbar properties dialog box.
At least Windows Vista



0. NOT WORK
Locked taskbar moves to the top of the screen in Windows 7 SP1 or Windows Server 2008 R2 SP1

Package:
-----------------------------------------------------------
-----------------------------------------------------------
KB Article Number(s): 2877985
Language: All (Global)
Platform: i386
Location: (http://hotfixv4.microsoft.com/Windows%207/Windows%20Server2008%20R2%20SP1/sp2/Fix470627/7600/free/466573_intl_i386_zip.exe)

-----------------------------------------------------------
KB Article Number(s): 2877985
Language: All (Global)
Platform: x64
Location: (http://hotfixv4.microsoft.com/Windows%207/Windows%20Server2008%20R2%20SP1/sp2/Fix470627/7600/free/466574_intl_x64_zip.exe)


NOTE   Make sure that you include all the text between "(" and ")" when you visit this hotfix location.

Try

Hi Tlong,

Thanks for the update.

I tested this group policy setting on my computer, and it works. When right-click taskbar, the "Lock the taskbar" optin is grayed and selected.

Enable these settings in your group policy.

Lock the Taskbar

Lock all taskbar settings

Prevent users from adding or removing toolbars

Prevent users from rearranging toolbars

Prevent users from moving taskbar to another screen dock location

Prevent users from resizing the taskbar

Check if it works.

If it fails, run cmd as administrator, input gpresult /h gpreport.html to get a group policy report of your computer, check if the settings are correctly applied.

Regards,

Miya

---------------


1.  recovery

How to Force Windows 7 Taskbar Position with Group Policy - Microsoft


not work after apply on domian controller

"Navigate to: User Configuration\Administrative Templates\Start Menu and Taskbar

In the right pane, double-click "Lock the Taskbar", set it to Enabled, click Apply and OK."

2. run a "Gpresult /h %userprofile%\desktop\gp.html" on the affected PC to see where the policy setting is coming from... this should give you direction as to how that policy setting is still applying.

3. prevention
You can prevent users chaning the Taskbar location by Enabling the following GPO setting.

User Configuration\Administrative Templates\Start Menu and Taskbar

Prevent users from moving taskbar to another screen dock location

on domain server find service How to Turn Off (Disable) Web Proxy Auto Discovery (WPAD) in ...

How to Turn Off (Disable) Web Proxy Auto Discovery (WPAD) in ...


We have a web service that is running slowly in production. In QA and UAT it is fine but those are housed at our corporate HQs. But production is in a data center in the cloud. I ran wireshark and found that it is making at least 6 calls to NBNS WPAD (each one timing out), each taking about 3/4 of a second making it very slow. I want to turn off WPAD since the environment is not configured to use it but it is still making the calls and just wasting time.
My platform is windows server 2008 r2 with IE9. I want to completely disable WPAD DNS queries (and NBNS queries). We don't use a proxy. We don't use DHCP. I want to stop WPAD but I haven't been successful. I have tried the following: 
1.disable "automatically detect settings" in IE
 2.disable "use automatic configuration script" in IE 
3.Checked that WinHTTP Web Proxy Auto-Discovery Service is not running automatically, it is set to run manual so I think that should be ok. 
4.Executed "Netsh winhttp show proxy" which tells me Direct access (no proxy server).
What am I missing that needs to be turned off?


2016年8月29日 星期一

unidentified network vs (install "reliable multicast protocol")

The network location profile changes from "Domain" to "Public" in Windows 7 or in Windows Server 2008 R2

-----------
unidentified network
online said install "reliable multicast protocol" can resolve this problem



--------------------------------------

Do I need reliable multicast protocol? - Windows 7 Help Forums

-----------
在Windows環境下,清除cache的指令如下:
ipconfig /flushdns
這個功能一般user應該很少用到,但搞IT的人卻是必備的技能。
當client瀏覽網頁、ping domain時,client PC會先透過DNS Server解析domain-IP的對應,並把結果暫存在cache裡,因此下次再次用到這個domain時,便不需要再次找DNS Server解析,以增加連線效率。
但有時會遇到,暫存的資料實際上已經異動時,client卻不知道,因此不論怎麼連都連不到,此時有幾個辦法可以解決。
1. 重開機
2. Restart 網卡
3. 下指令強制清除cache


unidentified network vs (install "reliable multicast protocol")

The network location profile changes from "Domain" to "Public" in Windows 7 or in Windows Server 2008 R2

-----------
unidentified network
online said install "reliable multicast protocol" can resolve this problem



--------------------------------------

Do I need reliable multicast protocol? - Windows 7 Help Forums

-----------
在Windows環境下,清除cache的指令如下:
ipconfig /flushdns
這個功能一般user應該很少用到,但搞IT的人卻是必備的技能。
當client瀏覽網頁、ping domain時,client PC會先透過DNS Server解析domain-IP的對應,並把結果暫存在cache裡,因此下次再次用到這個domain時,便不需要再次找DNS Server解析,以增加連線效率。
但有時會遇到,暫存的資料實際上已經異動時,client卻不知道,因此不論怎麼連都連不到,此時有幾個辦法可以解決。
1. 重開機
2. Restart 網卡
3. 下指令強制清除cache


2016年8月25日 星期四

How to synchronize to a NTP server on Windows XP? time

net time /querysntp
w32tm /config /maunalpeerlist

  • Make sure the Windows Time (w32time) service is running. (Either through services.msc, or sc query w32time and sc start w32time.)
  • Try running w32tm /register as an administrator.
  • Try manual configuration: w32tm /config /manualpeerlist:pool.ntp.org /update
  • orw32tm /config /manualpeerlist:pool.ntp.org /syncfromflags:manual /update
  • ...and manual resync: w32tm /resync
  • Also open eventvwr.msc and check the Application and System logs for errors.

2016年8月23日 星期二

How to Clear Virtual Memory Pagefile at Shutdown


Disable critical battery event windows 7 , plan should not delete

How To Delete Built-in Windows 7 Power Plans (and Why You Probably Shouldn’t)

http://superuser.com/questions/622545/disable-critical-battery-event



Generally, it's not a good idea to discharge you battery below a certain threshold if you at least a bit care about its life. Too late for you, but you can still read why. That's probably also the reason why the wise ones at Microsoft decided to not allow you to set the critical level below 3% and also prevent you from ignoring the critical event.
Still, what's not available from the dropdowns seems to be possible via command line tool powercfg. If you run the following command from an elevated command console (cmd Run as Administrator) you'll get exactly what you are asking for:
powercfg -setdcvalueindex SCHEME_CURRENT SUB_BATTERY BATACTIONCRIT 0
This command will set the critical event handler to "Do Nothing" when running on battery in your currently selected power scheme (see powercfg -L), thus your system will die only when the battery protection circuit cuts the power off.

2016年8月18日 星期四

Lipo charging

http://www.tjinguytech.com/charging-how-tos

3.7V 600mAh LiPo USB charging/storage question

Understanding RC LiPo Batteries

THE 80% RC LIPO BATTERY RULE TO THE RESCUE!

A very good rule to follow here is the "80% rule". This simply means that you should never discharge a LiPo pack down past 80% of its CAPACITY to be safe. For example, if you have a 2000 mAh LiPo pack, you should never draw more than 1600 mAh out of the pack (80% x 2000). This is assuming a healthy pack as well that has the full 2000 mAh capacity (as packs age, their capacity drops).
This again is where computerized chargers pay for themselves many times over so you can see how much capacity the battery takes allowing you to adjust your flight times accordingly to stay within that 80% rule to get the most life out of your pack.
If you don't have a computerized charger to confirm the amount of capacity, another good indicator is to measure the open circuit voltage (no load voltage) of the pack or individual cells right after a flight/drive with a digital volt meter or other similar digital voltage measuring device. An 80% discharged LiPo cell, will give an approximate open circuit voltage of about 3.74 to 3.75 volts.

Lipo charging

http://www.tjinguytech.com/charging-how-tos

3.7V 600mAh LiPo USB charging/storage question

Understanding RC LiPo Batteries

THE 80% RC LIPO BATTERY RULE TO THE RESCUE!

A very good rule to follow here is the "80% rule". This simply means that you should never discharge a LiPo pack down past 80% of its CAPACITY to be safe. For example, if you have a 2000 mAh LiPo pack, you should never draw more than 1600 mAh out of the pack (80% x 2000). This is assuming a healthy pack as well that has the full 2000 mAh capacity (as packs age, their capacity drops).
This again is where computerized chargers pay for themselves many times over so you can see how much capacity the battery takes allowing you to adjust your flight times accordingly to stay within that 80% rule to get the most life out of your pack.
If you don't have a computerized charger to confirm the amount of capacity, another good indicator is to measure the open circuit voltage (no load voltage) of the pack or individual cells right after a flight/drive with a digital volt meter or other similar digital voltage measuring device. An 80% discharged LiPo cell, will give an approximate open circuit voltage of about 3.74 to 3.75 volts.

2016年8月10日 星期三

2 ssid on same vlan cisco aironet , not possible . will possible when have router route between vlan

2 ssid on same vlan cisco aironet , not possible . will possible when have router route between vlan

http://networkengineering.stackexchange.com/questions/2068/two-ssids-for-same-vlan-problems


HP-E2620-24 J9623A

Search :HP 2620 Switch Series route between two vlan

2 ssid on same vlan cisco aironet , not possible . will possible when have router route between vlan

2 ssid on same vlan cisco aironet , not possible . will possible when have router route between vlan

http://networkengineering.stackexchange.com/questions/2068/two-ssids-for-same-vlan-problems


HP-E2620-24 J9623A

Search :HP 2620 Switch Series route between two vlan

Native VLAN Terminology

Terminology
Trunking · Extending multiple VLANs over the same physical connection
Native VLAN · By default, frames in this VLAN are untagged when sent across a trunk
Access VLAN · The VLAN to which an access port is Assigned
Switched Virtual Interface (SVI) · A virtual interface which provides a routed gateway into and out of a VLAN
Switch Port Modes
trunk · Forms an unconditional trunk
dynamic desirable · Actively attempts to negotiate a trunk with the distant end
dynamic auto · Will form a trunk only if requested by the distant end
access · Will never form a trunk
Troubleshooting
show vlan
show interface status
show interface switchport

show interface trunk

---------

Config AP 中文
https://blog.pmail.idv.tw/?p=14246

以下是在我的SW 接AP port 的設定(需要跑turk mode)
interface GigabitEthernet0/49
description to ap
switchport access vlan 112
switchport trunk encapsulation dot1q
switchport trunk native vlan 112
switchport mode trunk
spanning-tree portfast trunk

2016年8月8日 星期一

How do I increase web-based GUI timeout? Aironet 1142, IOS 12.4

ip httptimeout-policyidle secondslife secondsrequests value 


Example:
Router(config)#ip http timeout-policy idle 600 life 600 requests 100

line vty 0 4
exec-timeout 5 0
password 7 104D000A0618
transport input ssh
CHN-CCT-SW-01#sh users
    Line       User       Host(s)              Idle       Location
   1 vty 0     noc     idle                 00:06:39 172.18.120.84

*  2 vty 1     admin   idle               00:00:00 172.18.120.84