2017年9月28日 星期四

Cisco Switch Office Pocket Guide for Cisco & HP Hardware

Example Central (ICS and MVWS > VF6) in VLAN 1:
switch#configure terminal
switch(config)#interface fa0/<Port number>
switch(config-if)#description Central
switch(config-if)#switchport access vlan 1
switch(config-if)#speed 100
switch(config-if)#duplex full
switch(config-if)#switchport host

Ans : This MACRO does 3 things.
1. switchport mode access
2. spanning-tree portfast
3. disables port-channeling.

2017年9月12日 星期二

configuring wpa2 psk on autonomous AP?



https://learningnetwork.cisco.com/thread/81423

Hi Conwyn,

Thanks for the response.
From which prompt would we enable the encryption type? This is not been listed on any of the prompts for the autonomous AP that is with me.
ap(config)#dot11 ssid guest1
ap(config-ssid)#vlan 44
ap(config-ssid)#authen
ap(config-ssid)#authentication ke
ap(config-ssid)#authentication ?
  client          EAP client information
  key-management  key management
  network-eap     leap method
  open            open method
  shared          shared method
ap(config-ssid)#authentication open
ap(config-ssid)#authentication key-management wpa version 2
ap(config-ssid)#mbssid guest-mode
ap(config-ssid)#wpa-psk ascii ?
  0     Specifies an UNENCRYPTED key will follow
  7     Specifies a HIDDEN key will follow
  LINE  Clear WPA password
ap(config-ssid)#wpa-psk ascii 0 1234567890
ap(config)#dot11 ssid guest1
ap(config-ssid)#vlan 44
ap(config-ssid)#authen
ap(config-ssid)#authentication ke
ap(config-ssid)#authentication ?
  client          EAP client information
  key-management  key management
  network-eap     leap method
  open            open method
  shared          shared method

ap(config-ssid)#authentication open
ap(config-ssid)#authentication key-management wpa version 2
ap(config-ssid)#mbssid guest-mode
ap(config-ssid)#wpa-psk ascii ?
  0     Specifies an UNENCRYPTED key will follow
  7     Specifies a HIDDEN key will follow
  LINE  Clear WPA password

ap(config-ssid)#wpa-psk ascii 0 1234567890

ap(config)#dot11 ssid guest1
ap(config-ssid)#encr
ap(config-ssid)#?
ssid configuration commands:
  11w-pmf              11w PMF Client Configuration
  accounting           radius accounting
  authentication       authentication method
  band-select          enable band select
  dot1x                SSID Config Commands for IEEE 802.1X
  exit                 Exit from ssid sub mode
  guest-mode           guest ssid
  ids                  IDS MFP Client Configuration
  information-element  Add information element
  infrastructure-ssid  ssid used to associate to other infrastructure devices
  ip                   IP options
  max-associations     set maximum associations for ssid
  mbssid               Multiple BSSID
  mobility             enable L3 mobility
  no                   Negate a command or set its defaults
  rate_limit           Dot11 Rate_Limitr Configuration Options
  vlan                 bind ssid to vlan
  web-auth             Web Authentication
  wpa-psk              Configure Wi-Fi Protected Access pre-shared key
  xconnect             tunnel incoming frames

ap(config-ssid)#end

2017年9月6日 星期三

Wan Chai Site , : Excessive CRC/Alignment Errors



Hi,
Excessive CRC... means a bad negotiation.
Is port speed/duplex correct ?
Disable lacp on port that do not need i.



Re: Excessive CRC/Alignment Errors on port 19

First of all you should to check the cable connected to the port. Do not trust multimeters - use normal network analizer to measure NEXT, attenuations, wrong pairing etc.
Next, check the speed/duplex settings on both sides.
Next, monitor network traffic of your host, connected to the port. You can use WireShark (freeware tools, Google for it) for this purpose (it is available for *NIX and Windows as well).
Next localize the application generated this traffic. Tools will depend on OS you are using.

P.S. Of course, not all steps will be mandatory ;)).

Good luck!

2017年9月3日 星期日

javascript

https://www.zhihu.com/question/19713563

首先我会把Chrome浏览器装好,在dev tools =&gt; console里直接练习熟悉基本语法,变量,数据类型,数学运算,字符串运算,条件,循环基本结构,简单函数定义和调用这些,之所以用chrome dev tools,是因为这时候我不想费劲折腾单独的编辑器,也不需要在开文件和文件夹,然后去配一些工具最终才接触到真正的JS编程,我想尽可能直接而少干扰就开始写JS,这是最重要的,我学JS,当然应该尽快写JS

45 down vote accepted
  1. Go to chrome://flags/, enable the "Enable Developer Tools experiments" flag and restart Chrome (or start it with the --enable-devtools-experiments command-line flag.)
  2. Open DevTools, go to the Settings dialog, switch to the Experiments tab.
  3. Enable the "Snippets support" experiment, close and reopen DevTools.
  4. Go to the Sources panel. In the left-hand navigator sidebar, switch to the Snippets tab .
  5. Right-click in the [empty] tree in this tab, select the New context menu item.
  6. Give the new snippet any name you like and type the snippet body.
  7. Once done, click the Run (>) button in the status bar to execute the snippet body. You can set breakpoints in snippets and debug them as ordinary scripts.
http://www.bkjia.com/Javascript/1212141.html

2017年9月1日 星期五

Windows 2008 Windows Performance Monitor and Disk usage

Windows 2008 Windows Performance Monitor and Disk usage,

Now select the four counters below and we will then look what they represents.
Avg. Disk Bytes / Transfer
Avg. Disk sec / Transfer
Disk Bytes / sec
Disk Transfers / sec


Throughput is often expressed in MB/sec, but Perfmon in Windows 2003 displays this in Bytes/second, e.g. 382,090,819 meaning 382 MB/s. It would be nice to have to possibility to customize the output of this in Perfmon, but unfortunately that is not an option.