試驗一常用設備管理操作0001_第1頁
試驗一常用設備管理操作0001_第2頁
試驗一常用設備管理操作0001_第3頁
試驗一常用設備管理操作0001_第4頁
試驗一常用設備管理操作0001_第5頁
已閱讀5頁,還剩7頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、實驗一 常用設備管理操作 、實驗目的: 掌握通過 console 登錄設備 掌握修改設備名稱 掌握顯示、修改系統(tǒng)時間 掌握四種命令視圖 掌握查看版本、當前配置、接口信息 、實驗描述及組網(wǎng)圖: 三、實驗步驟: 實驗任務一: 使用 console 口進行設備的連接 1、通過 console 口將 pc 機與交換機或者路由器相連。 2、通過超級終端進行連接: 首先,通過【開始】 | 【所有程序】 | 【附件】 | 【超級終端】啟動超級終端程序并創(chuàng)建 一個新連接,輸入一個連接的名字。 3、選擇所用的通訊串口( com) 注: com 口信息在“我的電腦” “管理”下的設備管理器中查看到。 4、設置屬性

2、參數(shù),在串口屬性中設置波特率為9600 ,參數(shù)位為 8,奇偶校驗為無,停 止位為 1,流量控制為無。(可以使用 “還原為默認值” 就能完成參數(shù)配置) 。 5、設置好參數(shù)后,直接點擊【確認】 ,就可以進入到如下的設置界面。就可以對設備進 行配置。 實驗任務二: 掌握四種命令視圖 1、進入用戶試圖: 如上圖,通過 console 口登錄到設備上的時候就進入了用戶視圖。 在這個視圖中使用的是用來查看設備啟動后基本的運行狀態(tài)和統(tǒng)計信息的命令。 2、進入系統(tǒng)視圖 system-view H3C 在這個視圖下配置系統(tǒng)全局通用參數(shù)。 注:使用 鍵系統(tǒng)可以自動補全命令 sys 按鍵自動補全 如果有多個一這樣的

3、字母開頭的命令則按 鍵會逐個的出現(xiàn)在屏幕上。 system-view 3、路由協(xié)議視圖 在這個協(xié)議下能夠配置路由協(xié)議參數(shù)。路由協(xié)議的大部分參數(shù)都在此視圖下配置。 協(xié)議則通過 根據(jù)使用的不同的路由協(xié)議進入該視圖的命令也不同,例如使用 rip H3Crip H3C-rip-1 如果使用 ospf 協(xié)議則使用 H3Cospf H3C-ospf-1 4、接口視圖 在這個視圖下可以配置接口參數(shù):在 interface 后面加上接口名稱 H3Cinterface Serial 0/2/0 H3C-Serial0/2/0 5、用戶界面視圖 在這個視圖下可以配置登錄設備的各個用戶屬性 通過在用戶界面視圖下的各

4、種操作,可以達到統(tǒng)一管理各個用戶的目的。 注:任意視圖下可以使用 quit 命令推出此視圖。 切換到前一級視圖。 任意視圖下使用 可以直接退回用戶視圖。 敲命令的時候可以使用 “?”幫助功能在某一下視圖下或者某一個命令的后面輸入 “? 可以顯示出在這一視圖下或者在這個命令后面可以使用哪一些命令。 實驗任務三: 設備的基本操作命令: 1、修改配置設備名稱: H3Csysname TEXT Host name (1 to 30 characters) 例如將設備名稱改為 jiance H3Csysname jiance jiance 2、配置系統(tǒng)時間: clock datetime ? TIME

5、Specify the time (HH:MM:SS) 設置時間格式為 HH:MM:SS clock datetime 14:46:10 ? DATE Specify the date from 2000 to 2035 (MM/DD/YYYY or YYYY/MM/DD) 設置日期的格式為 MM/DD/YYYY或者 YYYY/MM/DD 例如:將日期修改為 2010/3/31 時間改為 14:46: 10 clock datetime 14:46:10 2010/3/31 3、顯示系統(tǒng)時間: display clock 14:46:29 UTC Wed 03/31/2010 4、由于系統(tǒng)有自

6、動識別功能,所以在輸入命令時為方便操作,有時僅需輸入前面的幾 個字符即可,但是前提是這幾個字符可以唯一表示一條命令。 例如:顯示系統(tǒng)時間可以用 dis clo 14:46:29 UTC Wed 03/31/2010 5、查看版本信息: display version H3C Comware Platform Software Comware Software, Version 5.20, Alpha 1011 Copyright (c) 2004-2007 Hangzhou H3C Tech. Co., Ltd. All rights reserved. SIMWARE uptime is 0

7、 week, 0 day, 1 hour, 52 minutes 可以看到軟件平臺為 comware,版本為 5.20 第三行是版權信息。第四行是啟動時間。 6、顯示當前配置: display current-configuration # version 5.20, Alpha 1011 # sysname H3C # password-control login-attempt 3 exceed lock-time 120 # undo voice vlan mac-address 00e0-bb00-0000 # ipsec cpu-backup enable # undo crypto

8、engine enable # domain default enable system # vlan 1 # domain system access-limit disable state active idle-cut disable self-service-url disable # More 可以通過空格鍵進行翻頁顯示, 進行翻行顯示,或者 結束顯示。這里 使用空格鍵繼續(xù)顯示。 interface Ethernet0/1/0 port link-mode route ip address 10.10.10.10 255.255.255.0 # interface Serial0/2

9、/0 link-protocol ppp # interface Serial0/2/1 link-protocol ppp # interface NULL0 # interface Ethernet0/4/0 port link-mode bridge # interface Ethernet0/4/1 port link-mode bridge # interface Ethernet0/4/2 port link-mode bridge # interface Ethernet0/4/3 port link-mode bridge # interface Ethernet0/4/4 p

10、ort link-mode bridge # interface Ethernet0/4/5 port link-mode bridge # interface Ethernet0/4/6 port link-mode bridge # interface Ethernet0/4/7 port link-mode bridge # load xml-configuration # user-interface con 0 user-interface vty 0 4 # return 在配置中你可以看到在設備上的一些配置信息。 實驗任務四: 文件的基本操作命令。 1、保存配置命令: save

11、The current configuration will be written to the device. Are you sure? Y/N:y 選擇 y,表示確定將當前配置文件寫入存儲介質中。 (To leave the existing filename unchanged, press the enter key): Validating file. Please wait. Now saving current configuration to the device. Saving configuration flash:/startup.cfg. Please wait. 也

12、可以更改保存的文件名稱: H3Csave jiance.cfg Y/N:y The current configuration will be saved to flash:/jiance.cfg. Continue? Now saving current configuration to the device. Saving configuration flash:/jiance.cfg. Please wait. 顯示保存的配置文件: dis saved-configuration # version 5.20, Release 1809P01, Standard # sysname ji

13、ance # super password level 3 simple h3c # domain default enable system # telnet server enable # dar p2p signature-file cfa0:/p2p_default.mtd # port-security enable # vlan 1 # domain system access-limit disable state active idle-cut disable self-service-url disable # user-group system # local-user a

14、dmin password cipher .USE=B,53Q=QMAF41! authorization-attribute level 3 service-type telnet local-user jiance password simple jiance service-type telnet # interface Aux0 async mode flow link-protocol ppp # interface Cellular0/0 async mode protocol link-protocol ppp # interface Ethernet0/0 port link-

15、mode route ip address 192.168.1.2 255.255.255.0 # interface Ethernet0/1 port link-mode route # interface Serial1/0 link-protocol ppp # interface Serial2/0 link-protocol ppp # interface NULL0 # load xml-configuration # load tr069-configuration # user-interface con 0 user-interface tty 13 user-interfa

16、ce aux 0 user-interface vty 0 4 authentication-mode none user privilege level 3 set authentication password simple h3c # return 可以顯示已經(jīng)保存的配置文件。如果你沒有保存的配置文件時,使用該命令是不能顯示 任何的配置信息的。 2、刪除和清空配置文件。 reset saved-configuration The saved configuration file will be erased. Are you sure? Y/N:y Configuration file

17、in flash is being cleared. Please wait . Configuration file in flash is cleared. 通過這個命令可以清除掉配置。這時候使用 dis saved-configuration 沒有配置文件。但是使用 dis current-configuration 配置信息還存在于當前配置文件中。 這時候還要通過使用 reboot 命令重啟設備。 才能真正的清空配置。 3、顯示文件目錄: pwd flash: 表示當前路徑是 flash :中 4、顯示當前路徑的所有文件列表。 dir Directory of cfa0:/ 0 -rw

18、- 12629732 Sep 19 2008 14:24:16 main.bin 1 drw- - Mar 05 2009 20:59:36 logfile 2 -rw- 18321 Apr 06 2010 17:45:18 config.cwmp 3 -rw- 18494008 Oct 07 2009 14:54:18 msr20-cmw520-r1809p01-si.bin 4 -rw- 1197 Apr 06 2010 17:30:04 startup.cfg 5 -rw- 33 Apr 06 2010 17:45:16 system.xml 6 -rw- 1197 Apr 06 201

19、0 17:45:20 jiance.cfg 254692 KB total ( 222936 KB free) File system type of cfa0: FAT16 5、顯示文本文件內容。 more jiance.cfg # version 5.20, Release 1809P01, Standard # sysname jiance # super password level 3 simple h3c # domain default enable system # telnet server enable # dar p2p signature-file cfa0:/p2p_

20、default.mtd # port-security enable # vlan 1 # domain system access-limit disable state active idle-cut disable self-service-url disable # user-group system # local-user admin password cipher .USE=B,53Q=QMAF41! authorization-attribute level 3 service-type telnet local-user jiance password simple jian

21、ce service-type telnet # interface Aux0 async mode flow link-protocol ppp # interface Cellular0/0 async mode protocol link-protocol ppp # interface Ethernet0/0 port link-mode route ip address 192.168.1.2 255.255.255.0 # interface Ethernet0/1 port link-mode route # interface Serial1/0 link-protocol p

22、pp # interface Serial2/0 link-protocol ppp # interface NULL0 # load xml-configuration # load tr069-configuration # user-interface con 0 user-interface tty 13 user-interface aux 0 user-interface vty 0 4 authentication-mode none user privilege level 3 set authentication password simple h3c # return 顯示

23、 jiance.cfg 文件中的內容。 6、改變當前工作路徑 使用 cd 命令 例如: cd logfile 進入 logfile 子目錄 jiance.cfg 文件。 .cfg 為后綴名, 7、文件刪除: 使用 delete 命令刪除文件。 使用 dir 命令查看文件中有一個之前保存的文件: 注意:保存時因為保存的是配置文件,所以要用 dir Directory of cfa0:/ 0 -rw- 12629732 Sep 19 2008 14:24:16 main.bin 1 drw- Mar 05 2009 20:59:36 logfile 2 -rw- 18321 Apr 06 2010

24、 17:45:18 config.cwmp 3 -rw- 18494008 Oct 07 2009 14:54:18 msr20-cmw520-r1809p01-si.bin 4 -rw- 1197 Apr 06 2010 17:30:04 startup.cfg 5 -rw- 33 Apr 06 2010 17:45:16 system.xml 6 -rw- 1197 Apr 06 2010 17:45:20 jiance.cfg 254692 KB total ( 222936 KB free) File system type of cfa0: FAT16 刪除文件名為 jiance.c

25、fg 的文件。 delete jiance.cfg Delete flash:/jiance.cfg?Y/N:y %Delete file flash:/jiance.cfg.Done. 再次使用 dir 命令查看。 dir Directory of cfa0:/ 0 -rw- 12629732 Sep 19 2008 14:24:16 main.bin 1 drw- Mar 05 2009 20:59:36 logfile 2 -rw- 18321 Apr 06 2010 17:45:18 config.cwmp 3 -rw- 18494008 Oct 07 2009 14:54:18 ms

26、r20-cmw520-r1809p01-si.bin 4 -rw- 1197 Apr 06 2010 17:30:04 startup.cfg 5 -rw- 33 Apr 06 2010 17:45:16 system.xml 254692 KB total ( 222932 KB free) File system type of cfa0: FAT16 但是 flash 中的空間并沒有減少。 使用 dir /all 命令查看時: dir /all Directory of cfa0:/ 0 -rw- 12629732 Sep 19 2008 14:24:16 main.bin 1 drw-

27、 Mar 05 2009 20:59:36 logfile 2 -rwh 388 Apr 06 2010 17:45:16 private-data.txt 3 -rwh 716 Mar 16 2010 12:00:42 hostkey 4 -rwh 572 Mar 16 2010 12:00:42 serverkey 5 -rw- 18321 Apr 06 2010 17:45:18 config.cwmp 6 -rw- 18494008 Oct 07 2009 14:54:18 msr20-cmw520-r1809p01-si.bin 7 -rw- 1197 Apr 06 2010 17:30:04 startup.cfg 8 -rw- 33

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論