登入路由器
思科2600路由器的配置資訊
配置內口ip
duyi#conf terminal
duyi(config)#inte***ce fastethernet 0/0
duyi(config-if)#ip address
配置外口ip
duyi(config)#inte***ce fastethernet 0/1
duyi(config-if)#ip address
配置預設路由
duyi(config)#ip route 0.0.0.0 0.0.0.0 + 下一跳位址
配置登陸路由器的使用者名稱和密碼
duyi(config)#username + 路由器的名字 password + 密碼
密碼加密
duyi(config)#service password-encryption
配置telnet 登陸的密碼
duyi(config)#line vty 0 4
duyi(config-line)#password + 密碼
duyi(config-line)#login local 密碼生效
路由器丟失password的恢復
以下辦法可以恢復:
enable secret password
enable password
console password
通過修改configuration register(出廠為0x2102),使路由器忽略password,這樣就可以進入路由器,就可以看到enable password和console password,但enable secret password以被加密,只能替換。可以進入的configuration register值為0x142.
執行password恢復可能會使系統down掉乙個半小時;
將console terinal連在路由器的console口上,確認終端設定為9600bps、8data bit 、no parity、1 stop bit;
show version顯示configuration register 0x2102;
關機再開,按"ctrl+ break",進入rom monitor狀態,提示符為">";
鍵入"> o/r 0x142",修改 configuration register到0x142,可以忽略原先的password;
鍵入"> initialize",初始化路由器,等一段時間後,路由器會出現以下提示:
"system configuration diaglog ……"
enter "no"
提示"press return to get started!" ,press "enter"
進入特權模式
router>enable
router#show startup-config
這樣就可以得到password(enable&console password)
修改password
router#config ter
router(config)# enable secret cisco
router(config)# enable password cisco1
router(config)# line con 0
router(config)# password cisco
router(config)# config-register 0x2102
ctrl + z
router#copy running-config startup-config
reload
然後以password cisco進入特權使用者。
思科的裝置配置命令大致是相同配置了上面的資訊這個裝置基本就可以在小區內使用了
我們在路由器的內口還加了防火牆的策略還開啟了 ip route-cache flow
這條命令是為了看小區內使用者的一些資料流量
思科的2950 也是要配置 ip位址因為2950是交換機所以上面只要配置ip位址預設閘道器和埠隔離
un(config)#inte***ce vlan 1
un(config-if)#ip address
un(config)# ip default-gateway
埠基本配置
埠基本配置的內容包括速率、全雙工模式和埠描述。
進入全域性配置模式。
switch# configure terminal
選擇欲配置的埠,進入介面配置模式。
switch(config)# inte***ce inte***ce-id
設定介面速率。1000和auto關鍵字只對1000base-t埠有效;1000base-sx埠和gbic/sfp模組埠只能工作於1000 mbps;nonegotiate關鍵字只對1000base-sx、1000base -lx、和1000base -zx gbic/sfp埠有效。
switch(config-if)# speed [10 | 100 | 1000 | auto | nonegotiate]
設定雙工模式。1000base-sx和1000base-t只能工作於全雙工模式;duplex關鍵字對gbic/sfp埠和catalyst 2950t-24的1000base-t埠無效。
switch(config-if)# duplex [auto | full | half]
switch(config-if)# description string
返回特權配置模式。
switch(config-if)# end
顯示介面狀態和文字描述。
switch# show inte***ces inte***ce-id
switch# show inte***ces inte***ce-id description
儲存配置。
switch# copy running-config startup-config
2.配置埠組
許多埠的配置都完全相同。乙個個埠地分別配置太過繁瑣,又容易出錯。將若干埠定義成乙個埠組後,只需設定該埠組,所包含的埠即可擁有相同的配置。
(1)指定埠範圍
進入全域性配置模式。
switch# configure terminal
選擇欲配置的埠範圍,進入介面配置模式。
switch(config)# inte***ce range port-range
輸入cli命令,將對所有指定的埠生效。
返回特權配置模式。
switch(config-if)# end
顯示當前執行的配置。
switch# show running-config
儲存配置。
switch# copy running-config startup-config
關閉並重啟介面
進入全域性配置模式。
switch# configure terminal
指定欲配置的介面。
switch(config)# inte***ce inte***ce-id
關閉介面。
switch(config-if)# shutdown
重新啟用埠。
switch(config-if)# no shutdown
埠隔離
un#configure terminal 進入全域性配置模式
un(config)#inte***ce rang
un(config)#inte***ce range fastethernet 0/2 – 12 指定欲配置的介面。
un(config-if-range)#switchport protected 將介面配置為保護埠埠隔離
switch# show inte***ces inte***ce-id switchport 顯示並校驗該介面當前的配置
2950中也是可以劃分vlan的但是因為我們用了埠隔離,所以就沒有使用vlan的這個功能
1.建立vlan
進入全域性配置模式。
switch# configure terminal
輸入vlan id,進入vlan配置模式。乙太網vlan id的取值範圍為1~1 001。其中,vlan 1為系統預設vlan,不能被建立,也不能被刪除。
switch(config)# vlan vlan_id
(可選)為vlan命名。如果不為vlan命名,預設在vlan id前新增0作為vlan名稱。例如,vlan0004是vlan 4的預設命稱。
switch(config-vlan)# name vlan-name
返回特權配置模式。
switch(config-vlan)# end
檢視並檢驗vlan配置。
switch# show vlan [id | name] vlan_name
儲存vlan配置。如果交換機處於vtp透明模式,vlan配置被儲存在執行配置檔案時,也被儲存至vlan資料庫。這裡只是將當前配置儲存至啟動配置。
switch# copy running-config startup-config
2.將埠指定至vlan
當已經在交換機上建立了vlan之後,接下來,就需要根據規劃將相應的埠指定至該vlan。當然,也不必在建立vlan後就立即返回至特權模式並儲存配置,而是在將埠指定至vlan後,再返回並儲存。
進入全域性配置模式。
switch# config terminal
指定欲配置的介面。
switch(config)# inte***ce inte***ce-id
將埠(第二層訪問埠)定義為vlan成員模式。
switch(config-if)# switchport mode access
將介面新增至指定的vlan。
switch(config-if)# switchport access vlan vlan_id
退出介面配置模式。
switch(config-if)# end
顯示並校驗該介面當前的配置。
switch# show inte***ce inte***ce-id
儲存vlan配置。
switch# copy running-config startup-config
若將多個埠指定至某個vlan,必須一一重複執行上述命令。或者採用指定埠組的方式,一次將多個埠指定至同一vlan。
神馬科技磁碟陣列配置資訊
神馬集團儲存系統配置資訊 2011 04 24 鄧篪目錄 1.前言 3 1.1.文件介紹 3 1.2.架構示意圖 3 2.應用系統資訊 3 2.1.oa erp系統 3 2.1.1.伺服器一 3 2.1.2.伺服器二 4 3.儲存系統資訊 4 3.1.儲存後台 4 3.1.1.硬體資訊 4 3.1....
電腦配置資訊電腦管家檢測結果
以下資訊由電腦管家提供 匯出時間 2015 6 17 7 13 54 電腦概覽 電腦型號戴爾 inspiron n4050 作業系統 microsoft windows 7 旗艦版 64位 service pack 1 cpu 英特爾 intel r core tm i5 2450m cpu 2.5...
關於申請購置資訊裝置的報告
昌盛街道中心小學關於申請購置資訊裝置的報告 莊河市人民 昌盛街道辦事處 我校近年來積極開展新課程改革試驗,努力探索教育技術與學科整合教學新路,在現有裝置使用 校本培訓 資源開發 教育技術應用等方面取得優異成績,得到上級教育主管部門的肯定和表揚,於2011年5月被評為大連市教育資訊化應用實驗校。為進一...