2010年9月19日

VTP LAB實作

VTP協定(VLAN Trunking Protocol):用來傳送和同步VLAN的資訊
vtp mode server
This command is executed in global configuration mode and sets the switch as a VTP Server.
This is the default VTP mode for a new switch with the VTP domain set to NULL
vtp mode client
This command is executed in global configuration mode and sets the switch as a VTP client which learns its VLAN information from the VTP Server in its specified VTP Domain.
vtp domain domainname
This command is executed in global configuration mode and sets the VTP domain of a device.
vtp version X (X=version 1 or version 2)
This command is executed in global configuration mode and sets the VTP Version of the device.
vtp password
This command is executed in global configuration mode and sets the VTP password to prevent unauthorized VTP Servers and/or Clients in a particular VTP Domain.
show vtp password
This command can only be executed in privileged mode and displays the current VTP Password.
show vtp status
This command can be executed from user or privileged mode to view the current VTP configuration such as VTP mode, Domain, Version, Pruning and more.
show vtp counters
This command can be executed from user or privileged mode to view the current VTP advertisement and pruning statistics.
show interface fa1/0 pruning
This command can display VTP pruning state.


Switch 1的設定
SW1>en
SW1#configure t
Enter configuration commands, one per line. End with CNTL/Z.
先設定Trunk port
SW1(config)#int range fa1/0 - 2
SW1(config-if-range)#speed 100
SW1(config-if-range)#duplex full
SW1(config-if-range)#no shutdown
SW1(config-if-range)#switchport mode trunk
SW1(config-if-range)#switchport trunk encapsulation dot1q
SW1(config-if-range)#exit
設定VTP角色與網域
SW1(config)#vtp mode server
Device mode already VTP SERVER.
SW1(config)#vtp domain lucky
Changing VTP domain name from NULL to lucky
SW1(config)#vtp version 2
SW1(config)#exit
建立Vlan資料
SW1#configure t
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#vlan 10
SW1(config-vlan)#name aaa
SW1(config-vlan)#vlan 20
SW1(config-vlan)#name bbb
SW1(config-vlan)#vlan 30
SW1(config-vlan)#name ccc
SW1(config-vlan)#vlan 40
SW1(config-vlan)#name ddd
SW1(config)#exit

SW1#show vtp status
VTP Version : 2
Configuration Revision : 5
Maximum VLANs supported locally : 36
Number of existing VLANs : 9
VTP Operating Mode : Server
VTP Domain Name : lucky
VTP Pruning Mode : Disabled
VTP V2 Mode : Enabled
VTP Traps Generation : Disabled
MD5 digest : 0x9D 0xB2 0x9D 0x4C 0xC5 0xCF 0x0B 0xC9
Configuration last modified by 0.0.0.0 at 3-1-02 00:12:37
Local updater ID is 0.0.0.0 (no valid interface found)
SW1#show int trunk

Switch 2的設定
SW2>en
SW2#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW2(config)#int fa1/0
SW2(config-if)#speed 100
SW2(config-if)#duplex full
SW2(config-if)#no shutdown
SW2(config-if)#switchport mode trunk
SW2(config-if)#switchport trunk encapsulation dot1q
SW2(config-if)#exit
SW2(config)#vtp mode client
Setting device to VTP CLIENT mode.
SW2(config)#vtp domain lucky
Changing VTP domain name from NULL to lucky
SW2(config)#exit
SW2#show vtp status
VTP Version : 2
Configuration Revision : 5
Maximum VLANs supported locally : 36
Number of existing VLANs : 9
VTP Operating Mode : Client
VTP Domain Name : lucky
VTP Pruning Mode : Disabled
VTP V2 Mode : Enabled
VTP Traps Generation : Disabled
MD5 digest : 0x9D 0xB2 0x9D 0x4C 0xC5 0xCF 0x0B 0xC9
Configuration last modified by 0.0.0.0 at 3-1-02 00:12:37
查看是否已同步VTP資訊,取得網域中的Vlan資料
SW2#show vlan-switch brief

Switch 3的設定
SW3>en
SW3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW3(config)#int fa1/0
SW3(config-if)#speed 100
SW3(config-if)#duplex full
SW3(config-if)#no shutdown
SW3(config-if)#switchport mode trunk
SW3(config-if)#switchport trunk encapsulation dot1q
SW3(config-if)#exit
SW3(config)#vtp mode client
Setting device to VTP CLIENT mode.
SW3(config)#vtp domain lucky
Changing VTP domain name from NULL to lucky
SW3(config)#exit

Switch 4的設定
SW4>en
SW4#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW4(config)#int fa1/0
SW4(config-if)#speed 100
SW4(config-if)#duplex full
SW4(config-if)#no shutdown
SW4(config-if)#switchport mode trunk
SW4(config-if)#switchport trunk encapsulation dot1q
SW4(config-if)#exit
SW4(config)#vtp mode client
Setting device to VTP CLIENT mode.
SW4(config)#vtp domain lucky
Changing VTP domain name from NULL to lucky
SW4(config)#exit
(繼續閱讀...)

2010年9月9日

Cisco Switch設定防止廣播風暴發生

當區網裡的某台電腦中了ARP病毒後,會一直送出ARP廣播封包,造成Broadcast Storm
解決方法:
Step 1:
先利用軟體找出中了ARP病毒電腦的MAC地址(可用wireshark分析)

Step 2:
show mac-address-table address 0030.8812.bf7b(中毒電腦的MAC)找到其所在的port
Switch#show mac-address-table address 0030.8812.bf7b
Mac Address Table
-------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
112 0030.8812.bf7b DYNAMIC Gi1/1/1
Total Mac Addresses for this criterion: 1

Step 3:
在Interface設定模式下使用storm-control broadcast level pps 300 150 指令來設定阻攔規則
當該port發送廣播封包達到300個/s的廣播封包時開始blocking,低於150個/s廣播封包時停止blocking

Switch#show run int Gi1/1/1
Building configuration...

Current configuration : 366 bytes
!
interface GigabitEthernet1/1/1
no switchport
bandwidth 6000
ip address 192.72.143.21 255.255.255.252
no ip redirects
no ip proxy-arp
load-interval 30
speed 100
duplex full
storm-control broadcast level pps 300 150
storm-control multicast level pps 300 150
storm-control action shutdown
storm-control action trap
end
(繼續閱讀...)

2010年8月31日

GNS3中使用wireshark擷取封包

GNS3可以支援呼叫Wireshark程式來擷取封包
使用方式如下:
先在其中一台Router設備上,Ping的另一端的Router,先讓該Link上有流量在跑
R4#ping 172.16.40.1 size 2000 repeat 1000
接著在GNS3中按右鍵點選該Link線路,並選擇Capture

再點選Source來源的Interface

選好後,便可以看到wireshark擷取封包的狀況
要觀看最新擷取到封包的話,可以在wireshark中上方按View->Reload或是直接按Ctrl+R更新
(繼續閱讀...)

2010年8月29日

英文單字備忘

SWITCH-642-813 chapter 2 英文單字備忘
threshold
KK [ˋθrɛʃhold], DJ [ˋθreʃhəuld]
1. 門檻[C]
propagate
KK [ˋprɑpə͵get], DJ [ˋprɔpəgeit]
1. 繁殖, 增殖
assumption
KK [əˋsʌmpʃən], DJ [əˋsʌmpʃən]
1. 假定, 設想[U][C][+(that)]
explicitly
KK [ɪkˋsplɪsɪtlɪ], DJ [ikˋsplisitli]
明白地; 明確地

inspect
KK [ɪnˋspɛkt], DJ [inˋspekt]
1. 檢查; 審查
drastic
KK [ˋdræstɪk], DJ [ˋdræstik]
1. 激烈的, 猛烈的
simplification
KK [͵sɪmpləfəˋkeʃən], DJ [͵simplifiˋkeiʃən]
1. 單純化
recursive
KK [rɪˋkɝsɪv], DJ [riˋkə:siv]
【電腦】遞歸的
undergo
KK [͵ʌndɚˋgo], DJ [͵ʌndəˋgəu]
1. 經歷; 經受; 忍受
firm
KK [fɝm], DJ [fə:m]
1. 穩固的; 牢固的; 結實的
grasp
KK [græsp], DJ [grɑ:sp]
1. 抓牢; 握緊; 抱住
complex
KK [ˋkɑmplɛks], DJ [ˋkɔmpleks]
1. 複雜的, 錯綜複雜的; 難懂的
ingress
KK [ˋɪngrɛs], DJ [ˋingres]
1. 進入、入口
flurry
KK [ˋflɝɪ], DJ [ˋflʌri]
1. 陣風、慌張; 混亂
pull off
脫下
simultaneously
KK [saɪməlˋtenɪəslɪ], DJ [saiməlˋteiniəsli]
同時地
portion
KK [ˋporʃən], DJ [ˋpɔ:ʃən]
1. (一)部分[C][(+of)]
egress
KK [ˋigrɛs], DJ [ˋi:gres]
1. 外出、出路
appropriate
KK [əˋproprɪ͵et], DJ [əˋprəupriət]
適當的, 恰當的, 相稱的[(+to/for)]
ternary
KK [ˋtɝnərɪ], DJ [ˋtə:nəri]
1. 三個的; 第三的
compile
KK [kəmˋpaɪl], DJ [kəmˋpail]
1. 匯編; 編輯
utilize
KK [ˋjut!͵aɪz], DJ [ˋju:tilaiz]
【書】利用
specialized
KK [ˋspɛʃəl͵aɪzd], DJ [ˋspeʃəlaizd]
1. 專門的; 專科的
prepopulate - 預填充
consult
KK [kənˋsʌlt], DJ [kənˋsʌlt]
1. 與...商量
penalty
KK [ˋpɛn!tɪ], DJ [ˋpenəlti]
1. 處罰; 刑罰[U][C][(+for)]
decrement
KK [ˋdɛkrɪmənt], DJ [ˋdekrimənt]
減少, 減少量, 減少率
exception
KK [ɪkˋsɛpʃən], DJ [ikˋsepʃən]
1. 例外; 例外的人(或事物)[C][(+to...
occur
KK [əˋkɝ], DJ [əˋkə:]
1. 發生
manipulate
KK [məˋnɪpjə͵let], DJ [məˋnipjuleit]
1. (熟練地)操作, 運用
criterion
KK [kraɪˋtɪrɪən], DJ [kraiˋtiəriən]
(判斷、批評的)標準, 準則, 尺度[C]
criteria
KK [kraɪˋtɪrɪə], DJ [kraiˋtiəriə]
(criterion的複數)
punt
KK [pʌnt], DJ [pʌnt]
平底船
tailored
KK [ˋtelɚd], DJ [ˋteiləd]
1. 定做的; 合身的
stale
1
KK [stel], DJ [steil]
1. 不新鮮的, 腐壞的; 污濁的
discrepancy
KK [dɪˋskrɛpənsɪ], DJ [disˋkrepənsi]
不一致, 不符, 差異; 不一致之處[U][C]...
ordinarily
KK [ˋɔrdn͵ɛrɪlɪ], DJ [ˋɔ:dn͵rili]
通常地, 慣常地; 一般地; 平常地
duplicate
KK [ˋdjuplə͵ket], DJ [ˋdju:pli͵keit]
1. 複製; 複寫; 影印, 拷貝
implement
KK [ˋɪmpləmənt], DJ [ˋimplimənt]
1. 工具; 器具; 用具
evaluate
KK [ɪˋvæljʊ͵et], DJ [iˋvæljueit]
1. 估...的價
abstract
KK [ˋæbstrækt], DJ [ˋæbstrækt]
1. 抽象的
pattern
KK [ˋpætɚn], DJ [ˋpætən]
1. 花樣, 圖案
relevant
KK [ˋrɛləvənt], DJ [ˋrelivənt]
1. 有關的; 切題的; 恰當的
concatenate
KK [kɑnˋkætə͵net], DJ [kɔnˋkætineit]
使連鎖; 把...連成一串; 使連接
quantity
KK [ˋkwɑntətɪ], DJ [ˋkwɔntiti]
1. 量[U]

SWITCH-642-813 chapter 3 英文單字備忘
magnitude
KK [ˋmægnə͵tjud], DJ [ˋmægnitju:d]
1. 巨大, 廣大[U]
scalability - 可擴展性
leverage
KK [ˋlɛvərɪdʒ], DJ [ˋlevəridʒ]
1. 槓桿作用; 槓桿效率、手段; 力量; 影響力
migrate
KK [ˋmaɪ͵gret], DJ [ˋmaigreit]
1. 遷移; 移居
predominant
KK [prɪˋdɑmənənt], DJ [priˋdɔminənt]
1. 佔優勢的; 佔支配地位的[(+over)]
arrange
KK [əˋrendʒ], DJ [əˋreindʒ]
1. 整理; 佈置;安排; 籌備
modular
KK [ˋmɑdʒəlɚ], DJ [ˋmɔdjulə]
1. 模件的
rectangular
KK [rɛkˋtæŋgjəlɚ], DJ [rekˋtæŋgjulə]
1. 矩形的, 長方形
proprietary
KK [prəˋpraɪə͵tɛrɪ], DJ [prəˋpraiətəri]
1.所有人的, 業主的;所有人似的;私有的,私營的;專賣的;專利的
tedious
KK [ˋtidɪəs], DJ [ˋti:diəs]
冗長乏味的; 使人厭煩的
periodically
KK [pɪrɪˋɑdɪklɪ], DJ [piəriˋɔdikli]
1. 週期性地
in-line
KK [ˋɪnˋlaɪn], DJ [ˋinˋlain]
【電】同軸的
truncated
KK [ˋtrʌŋketɪd], DJ [ˋtrʌŋkeitid]
縮短了的; 截形的; 斜截頭的
(繼續閱讀...)

2010年8月28日

NM-16ESW模組 VS Catalyst switches

NM-16ESW模組與一般Catalyst switches相比缺少的功能:
GNS3中無法模擬出來的功能:
Access Switch Device Manager (SDM) Template
ACL - Improved Merging Algorithm
ARP Optimization
BGP Increased Support of Numbered as-path Access Lists to 500
BGP Restart Neighbor Session After max-prefix Limit Reached
BGP Route-Map Continue Support for Outbound Policy
Clear Counters Per Port
DHCP Snooping
DHCP Snooping Counters
Diagnotics Options on bootup
ErrDisable Reactivation Per Port
ErrDisable timeout
EtherChannel
EtherChannel - Flexible PAgP
Etherchannel Guard
Fallback Bridging

Flex Link Bi-directional Fast Convergence
Flex Link VLAN Load-Balancing
Flex Links Interface Preemption
GOLD - Generic Online Diagnostics
IEEE 802.1ab, Link Layer Discovery Protocol
IEEE 802.1s - Multiple Spanning Tree (MST) Standard Compliance
IEEE 802.1s VLAN Multiple Spanning Trees
IEEE 802.1t
IEEE 802.1W Spanning Tree Rapid Reconfiguration
IEEE 802.1x - Auth Fail Open
IEEE 802.1x - Auth Fail VLAN
IEEE 802.1x - VLAN Assignment
IEEE 802.1x - Wake on LAN Support
IEEE 802.1x Authenticator
IEEE 802.1X Multi-Domain Authentication
IEEE 802.1x RADIUS Accounting
IEEE 802.1x with Port Security
IEEE 802.3ad Link Aggregation (LACP)
IEEE 802.3af Power over Ethernet
IGMP Fast Leave
IGMP Version 1
IGRP
IP Phone Detection Enhancements
IP Phone Enhancement - PHY Loop Detection
IPSG (IP Source Guard)
Jumbo Frames
L2PT - Layer 2 Protocol Tunneling
MAC Authentication Bypass
MLD Snooping
Multicast Etherchannel Load Balancing
NAC - L2 IEEE 802.1x
NAC - L2 IP
NAC - L2 IP with Auth Fail Open
Packet-Based Storm Control
Per Port Per VLAN Policing
Port Security
Port Security on Private VLAN Ports
Private VLANs
QoS Policy Propagation via Border Gateway Protocol (QPPB)
Rapid-Per-VLAN-Spanning Tree (Rapid-PVST)
Reduced MAC Address Usage
Remote SPAN (RSPAN)
Smart Port
Spanning Tree Protocol (STP) - Loop Guard
Spanning Tree Protocol (STP) - Portfast
Spanning Tree Protocol (STP) - PortFast BPDU Filtering
Spanning Tree Protocol (STP) - Portfast Support for Trunks
Spanning Tree Protocol (STP) - Root Guard
Spanning Tree Protocol (STP) - Uplink Load Balancing
SRR (Shaped Round Robin)
Standby Supervisor Port Usage
STP Syslog Messages
Switching Database Manager (SDM)
Trunk Failover
Trusted boundary (extended trust for CDP devices)
Unicast Mac Filtering
UniDirectional Link Detection (UDLD)
VLAN Access Control List (VACL)
VLAN Aware Port Security
Weighted Tail Drop (WTD)
(繼續閱讀...)

測試不同國家的Traceroute

可到此網頁點選你要的國家進行測試
http://www.traceroute.org/

Ex:
Hinet Traceroute測試
http://traceroute.hinet.net/cgi-bin/tracert.pl



亞太 Traceroute測試
http://sla.ebix.net.tw/lg/cgi-bin/traceroute.pl

Traceroute的運作原理可參考這個網站
http://www.loriotpro.com/Products/On-line_Documentation_V5/LoriotProDoc_EN/J10-Loriotpro_tools/J10-U21_Trace_Route_EN.htm
(繼續閱讀...)

2010年8月22日

Exam Schedule

在天瓏買了兩本原文書,要準備來考CCNP了
原文書真是有夠貴的,一本要價2040元
買了兩本打折後花了3672元,還送了一張貴賓卡

目前擬定的Exam Schedule每半年要考過一科
SWITCH(642-813)預計2011/2/22完成

ROUTE(642-902)預計2011/8/22完成

TSHOOT(642-832)預計2012/2/22完成



(繼續閱讀...)

Copyright © 2009 New Life in Taipei All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.