Cisco routers
4 hours
Cisco switches
5 min
Windows Server 2003 and before
2 min ( 10 min, if the address is reused )
Windows Vista and after
Between 15 sec and 45 sec (random)
Linux box
Various aging time
Switches are able to learn destination MAC addresses from client stations' arp request/query (because switches have longer aging time than client hosts). Those time differences keep them from flooding.
Refferences for Windows box
View the Address Resolution Protocol (ARP) cache
http://technet.microsoft.com/en-us/library/cc786759%28v=WS.10%29.aspx
Description of Address Resolution Protocol (ARP) caching behavior in Windows Vista TCP/IP implementations
http://support.microsoft.com/kb/949589
Saturday, April 14, 2012
Tuesday, March 20, 2012
Change of .vimrc
Change log:
1) Added tab settings for html
2) Enabled filetype plugins
3) Enabled matchit
1 "
2 " This file (.vimrc) is modified on 2012/3/19
3 "
4
5 " General
6 set number " to display lines
7 set title " display filename on the title bar
8 set ignorecase " search not casesensitively
9 set showmatch " hilight a pair of parenthesis and braces
10 set matchtime=2 " limit the showmatch's hilight time, ms
11 set wildmenu " compliment vim's commandline instructions
12 set tabstop=4
13 set shiftwidth=4
14 set softtabstop=4
15 set autoindent " Enable autoindent
16 set ruler " Ruler on
17 set incsearch
18 set hlsearch
19 set backup
20 set backupdir=~/.tmp_vim
21 set dir=~/.tmp_vim
22
23 " Plugins
24 filetype on " Enable filetype detection
25 filetype indent on " Enable filetype-specific indenting
26 filetype plugin on " Enable filetype-specific plugins
27 runtime macros/matchit.vim
28
29 " Ruby
30 autocmd FileType ruby,eruby compiler ruby
31 autocmd FileType ruby,eruby set tabstop=2
32 autocmd FileType ruby,eruby set shiftwidth=2
33 autocmd FileType ruby,eruby set softtabstop=2
34 autocmd FileType ruby,eruby set expandtab
35
36 " HTML
37 autocmd FileType html set tabstop=2
38 autocmd FileType html set shiftwidth=2
39 autocmd FileType html set softtabstop=2
40
41
42 " For GUI
43 if has("gui_running")
44 colorscheme oceandeep
45 set clipboard+=unnamed " Yanks to clipboard
46 endif
47
1) Added tab settings for html
2) Enabled filetype plugins
3) Enabled matchit
1 "
2 " This file (.vimrc) is modified on 2012/3/19
3 "
4
5 " General
6 set number " to display lines
7 set title " display filename on the title bar
8 set ignorecase " search not casesensitively
9 set showmatch " hilight a pair of parenthesis and braces
10 set matchtime=2 " limit the showmatch's hilight time, ms
11 set wildmenu " compliment vim's commandline instructions
12 set tabstop=4
13 set shiftwidth=4
14 set softtabstop=4
15 set autoindent " Enable autoindent
16 set ruler " Ruler on
17 set incsearch
18 set hlsearch
19 set backup
20 set backupdir=~/.tmp_vim
21 set dir=~/.tmp_vim
22
23 " Plugins
24 filetype on " Enable filetype detection
25 filetype indent on " Enable filetype-specific indenting
26 filetype plugin on " Enable filetype-specific plugins
27 runtime macros/matchit.vim
28
29 " Ruby
30 autocmd FileType ruby,eruby compiler ruby
31 autocmd FileType ruby,eruby set tabstop=2
32 autocmd FileType ruby,eruby set shiftwidth=2
33 autocmd FileType ruby,eruby set softtabstop=2
34 autocmd FileType ruby,eruby set expandtab
35
36 " HTML
37 autocmd FileType html set tabstop=2
38 autocmd FileType html set shiftwidth=2
39 autocmd FileType html set softtabstop=2
40
41
42 " For GUI
43 if has("gui_running")
44 colorscheme oceandeep
45 set clipboard+=unnamed " Yanks to clipboard
46 endif
47
Tuesday, February 28, 2012
Windows 7 Professional の 表示言語変更
手順:こちらの手順を参考 hinoji の Winodws 7 表示言語の変更の秘密
参考: Windows 7 SP1 Language Pack (English)
http://download.windowsupdate.com/msdownload/update/software/updt/2011/02/windows6.1-kb2483139-x64-en-us_9b9c8a867baff2920507fbf1e1b4a158572b9b87.exe
参考: Windows 7 SP1 Language Pack (English)
http://download.windowsupdate.com/msdownload/update/software/updt/2011/02/windows6.1-kb2483139-x64-en-us_9b9c8a867baff2920507fbf1e1b4a158572b9b87.exe
Saturday, January 21, 2012
Ruby 1.9.3 を Mac にインストール
ruby-1.9.3-p0 を Snow Leopard にインストールした際に、yaml.h が無いというエラーがでた。
参考:http://collectiveidea.com/blog/archives/2011/10/31/install-ruby-193-with-libyaml-on-centos/
LibYAML のインストール方法:
yaml.h is missing. Please install libyaml. Failed to configure psych. It will not be installed.LibYAML をインストールしてから ruby-1.9.3-p0 をインストールするとエラーを回避できる。
参考:http://collectiveidea.com/blog/archives/2011/10/31/install-ruby-193-with-libyaml-on-centos/
LibYAML のインストール方法:
$ curl -O http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz $ tar xzvf yaml-0.1.4.tar.gz $ cd yaml-0.1.4 $ ./configure --prefix=/usr/local $ make $ sudo make install
Friday, January 20, 2012
Kindle for Mac がもっさり
Programming Language Ruby の Kindle 版が $10 以下と大変お値打ち価格だったので初めてKindle の本を購入してみた。Kindle for Mac で読んでいるのだけれど動きがもっさり。さらには、Kindle for Mac の検索がうまく動かないので、Kindle の本を PDF に変換してみた。
calibre
http://calibre-ebook.com/
設定を変えて何度かPDFに変換をしてみたが、ページレイアウトが崩れて残念な結果に。終わったとさ。
calibre
http://calibre-ebook.com/
設定を変えて何度かPDFに変換をしてみたが、ページレイアウトが崩れて残念な結果に。終わったとさ。
Wednesday, January 18, 2012
Key bind for Vim
In an insert mode,
"C - [", "C - {" are bound to ESC
"C - h" is bound to BS
"C - m" is bound to Enter
"C - [", "C - {" are bound to ESC
"C - h" is bound to BS
"C - m" is bound to Enter
Subscribe to:
Posts (Atom)