基本設定 :
使用 console port 登入設備 :
一條 USB 轉 RS-232 ( 公頭 ) ( 現在 NB 大多取消了 console port ),一條 RJ-45 轉 console port ( 母頭 ) ( 有些較新的機器 console port 改成使用 RJ-45 的接頭,購買時都會附上一條 RJ-45 轉 console 的轉接線 )。軟體 :
Windows XP : 內建超級終端機。Windows Vista、7、8 : 建議使用 putty、Teraterm。( 個人是使用 SecureCRT 及 Xshell4,可以自動記錄文字成 txt 檔 )
連線設定
Baud rate : 9600Date : 8 bit
Parity : none
Stop : 1 bit
連線後會要輸入帳號密碼,預設值是 帳號 : admin 密碼 : (無),Web : 帳號 : (無) 密碼 : cisco
連線成功後會進入使用者模式 ( Switch> ),輸入 : enable 後會進入特權模式 ( Switch# ),再輸入 : configure terminal 會進入配置模式 ( Switch(config)# )。
清除所有設定
switch# write erase ( 清除 startup configuration , 執行後 startup configuration 會回復出廠值 )建立 VLAN
建立 vlan 2 並命名為 line2switch# conf t
switch(config)# vlan2
switch(config-vlan)# name line2
switch(config-vlan)# exit
switch# show vlan brief
將 Fa0/1 及 Fa0/2 加入 vlan2 ,並將 Fa0/19 - 24 設定為 Trunk port ( 802.1Q )
switch# conf t
switch(config)# interface range fastethernet0/1-2
switch(config-if-range)# swithport access vlan2
switch(config-if-range)# switch mode access
switch(config-if-range)# exit
switch(config)# interface range fastethernet0/19-24
switch(config-if-range)# swithport trunk encapsulation dot1q
switch(config-if-range)# switch mode trunk
switch(config-if-range)# exit
switch# show vlan brief
啟動 L3 Switch 繞送服務
在未設定的情況下,各 vlan 是無法互通的,必須要輸入指令才能像 Router 一樣在不同 vlan 及網段中繞送封包switch(config)# ip routing
設定 時間、NTP ( 網路時間設定 )
時間 :switch# clock set 16:10:40 23 September 2013
時區 :
switch(config)# clock timezone TW +8
指定 debug 檔及 log 檔加上時間標記
switch(config)# service timestamps debug datetime localtime
switch(config)# service timestamps log datetime localtime
檢視 :
switch# show clock
NTP :
switch(config)# ntp int0 --- 設定 NTP 來源介面為 int0
switch(config)# ntp server 10.10.10.10 --- 連線到外部的NTP Server 自動更新時間 ( 可設定
多台 )
switch(config)# ntp peer 192.168.0.5 --- 設定內部網路的 IP 位置,當有其他設備已經連到
NTP Server 時,可以用這指令跟那台設備同步時間,
這指令可以同時設定多個。
檢視 :
switch# show ntp status
switch# show ntp peer
switch# show ntp associations
這薄薄一本幾乎都是教用快速設定或設定精靈........