[上課筆記] 隨堂測驗 1

將之前所學的透過測驗來揣摩一下自己實力吧!
--------------------------------------------------------------
題目:

練習目標:
A. 請完成以下網路設備與PC的基本設定
B. 確定User01可以Ping得到TFTP-Server
C. 將CO-RO的設定檔備份到TFTP-Server,並以「0921-config」為存檔檔名


<工作一:設定主機名稱及基本密碼>
1-1 設定CO-RO的設備名稱為「CO-RO」
1-2 設定CO-RO的enable secret為cisco
1-3 設定CO-RO的console密碼為pccu
1-4 設定CO-RO的vty 0 4密碼為pccu
1-5 請在CO-RO上以指令將所有密碼加密

1-6 設定Floor-1的設備名稱為「Floor-1」
1-7 設定Floor-1的enable secret為cisco
1-8 設定Floor-1的vty 0 4密碼為pccu

1-9 設定Floor-2的設備名稱為「Floor-2」
1-10 設定Floor-2的enable secret為cisco
1-11 設定Floor-2的vty 0 4密碼為pccu

<工作二:設定各設備的IP>
設備名稱 介面 IP位址及遮罩 預設閘道
-------------------------------------------------
CO-RO fa0/0 10.1.1.254/24
fa0/1 10.2.2.254/24
-------------------------------------------------
Floor-1 vlan 1 10.1.1.250/24 10.1.1.254
-------------------------------------------------
Floor-2 vlan 1 10.2.2.250/24 10.2.2.254
-------------------------------------------------
User01(PC) NIC 10.1.1.1/24 10.1.1.254
-------------------------------------------------
User02(PC) NIC 10.2.2.1/24 10.2.2.254
-------------------------------------------------

<工作三:確認網路皆可通,並執行設定檔備份>
3-1 請確認User01是否可以Ping到User02
3-2 請將CO-RO的設定檔備份至TFTP-Server,並以「0921-config」為存檔檔名


-----------------------sult--------
寫完了要公佈答案了,基本上透過Check Results會成功40個,但這裡值得注意的,是最後漸漸的不使用Check Results的提示,因為在實體上操作是沒有這種訊息提供,我們要熟析如何在CLI指令當中透過Show指令還查詢問題所在,Check Results只是比對標準答案但大多的工程師都知道寫程式沒有一定的準答案,方法很多,怎麼寫都可以。

步驟1-簡單做起設定TFTP Server

首先拍打TFTP的頭,進入config模式將TFTP的Service開啟為on,接著進入Desktop的IP configuration設定,ip address=10.2.2.1,mask=255.255.255.0,gateway=10.2.2.254。很簡單吧!

步驟2-設定你的兩粒Switch

  • Switch>
  • Switch>enable
  • Switch#config t
  • Enter configuration commands, one per line. End with CNTL/Z.
  • Switch(config)#hostname Floor-1
  • Floor-1(config)#enable secret cisco
  • Floor-1(config)#line vty 0 4
  • Floor-1(config-line)#password pccu
  • Floor-1(config-line)#login
  • Floor-1(config-line)#exit
  • Floor-1(config)#int vlan 1
  • Floor-1(config-if)#ip address 10.1.1.250 255.255.255.0
  • Floor-1(config-if)#no shutdown
  • %LINK-5-CHANGED: Interface Vlan1, changed state to up
  • %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
  • Floor-1(config-if)#exit
  • Floor-1(config)#ip default-gateway 10.1.1.254
  • Floor-1(config)#exit
  • %SYS-5-CONFIG_I: Configured from console by console
  • Floor-1#copy run start
  • Destination filename [startup-config]?
  • Building configuration...
  • [OK]
  • Floor-1#
---------------
  • Switch>enable
  • Switch#config t
  • Enter configuration commands, one per line. End with CNTL/Z.
  • Switch(config)#hostname Floor-2
  • Floor-2(config)#enable secret cisco
  • Floor-2(config)#line vty 0 4
  • Floor-2(config-line)#password pccu
  • Floor-2(config-line)#login
  • Floor-2(config-line)#exit
  • Floor-2(config)#int vlan 1
  • Floor-2(config-if)#ip address 10.2.2.250 255.255.255.0
  • Floor-2(config-if)#no shutdown
  • %LINK-5-CHANGED: Interface Vlan1, changed state to up
  • %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
  • Floor-2(config-if)#exit
  • Floor-2(config)#ip default-gateway 10.2.2.254
  • Floor-2(config)#exit
  • %SYS-5-CONFIG_I: Configured from console by console
  • Floor-2#copy run start
  • Destination filename [startup-config]?
  • Building configuration...
  • [OK]
  • Floor-2#
步驟3-設定Router
  • Router>enable
  • Router#config t
  • Enter configuration commands, one per line. End with CNTL/Z.
  • Router(config)#hostname CO-RO
  • CO-RO(config)#enable secret cisco
  • CO-RO(config)#line console 0
  • CO-RO(config-line)#password pccu
  • CO-RO(config-line)#login
  • CO-RO(config-line)#exit
  • CO-RO(config)#line vty 0 4
  • CO-RO(config-line)#pass
  • CO-RO(config-line)#password pccu
  • CO-RO(config-line)#login
  • CO-RO(config-line)#exit
  • CO-RO(config)#service password-encryption
  • CO-RO(config)#int fa 0/0
  • CO-RO(config-if)#ip address 10.1.1.254 255.255.255.0
  • CO-RO(config-if)#no shutdown
  • CO-RO(config-if)#exit
  • CO-RO(config)#int fa 0/1
  • CO-RO(config-if)#ip address 10.2.2.254 255.255.255.0
  • CO-RO(config-if)#no shutdown
  • CO-RO(config-if)#end
  • CO-RO#
  • CO-RO#copy run tftp
  • Address or name of remote host []? 10.2.2.1
  • Destination filename [CO-RO-confg]? 0921-config
  • .!!
  • [OK - 492 bytes]
  • 492 bytes copied in 3.141 secs (0 bytes/sec)
  • CO-RO#
步驟4-設定你的PC
進入desktop->ip configuration->ip=10.1.1.1->mask=255.255.255.0->gateway=10.1.1.254,至於DNS因為沒有用到所以不設。

大功告成-接著在各個地方互ping試試,應該可以很成功的ping到,而Results也是40滿分。

留言