3 DHCP + IOS + Switching Setting
第一部份.
1.登入(不會顯示輸入的密碼)
Password:Taichung2.進入特權模式
CoreRouter>enable3.輸入特權模式密碼
Password:HsiuPing4.進入全局模式
CoreRouter#configure5.設定DHCP網段與基本設定
CoreRouter(config)#ip dhcp pool DHCP-1CoreRouter(dhcp-config)#network 172.16.1.0 255.255.255.128CoreRouter(dhcp-config)#default-router 172.16.1.1CoreRouter(dhcp-config)#dns-server 168.95.1.1CoreRouter(dhcp-config)#exit6.指定DHCP發送範圍(用遮不要發的範圍方式去限制)
CoreRouter(config)#ip dhcp excluded-address 172.16.1.1 172.16.1.15CoreRouter(config)#ip dhcp excluded-address 172.16.1.32 172.16.1.1267.測試電腦是否有領取到
(1)點開PC0與PC1(標籤是DHCPClient)
(2)選Desktop
(3)點選Command Prompt
(4)
Packet Tracer PC Command Line 1.0
C:\>ipconfig /renew(5)
PC0顯示畫面結果如下
Packet Tracer PC Command Line 1.0
C:\>ipconfig /renew
IP Address.......................:172.16.1.16
Subnet Mask......................:255.255.255.128
Default Gateway..................:172.16.1.1
DNS Server.......................:168.95.1.1
C:\>PC1顯示畫面結果如下
Packet Tracer PC Command Line 1.0
C:\>ipconfig /renew
IP Address.......................:172.16.1.17
Subnet Mask......................:255.255.255.128
Default Gateway..................:172.16.1.1
DNS Server.......................:168.95.1.1
C:\>IP不一定一樣,但IP一定介於在172.16.1.16~172.16.1.31之間,只要下方與示範結果一樣就是對了
8.存檔
CoreRouter(config)#do write第二部份
1.退出全局模式
CoreRouter(config)#exit2.下載Advanced IP Service功能之IOS
CoreRouter#copy tftp: flash:Address or name of remote host []? 172.16.2.3Source filename []? c2600-advipservicesk9-mz.124-15.T1.binDestination filename [c2600-advipservicesk9-mz.124-15.T1.bin]? <cr>//直接ENTER輸出結果如下
Accessing tftp://172.16.2.3/c2600-advipservicesk9-mz.124-15.T1.bin....
Loading c2600-advipservicesk9-mz.124-15.T1.bin from 172.16.2.3:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 33591768 bytes]
33591768 bytes copied in 3.801 secs (927912 bytes/sec)
CoreRouter#3.使用命令查看
CoreRouter#show flash:4.重新啟動
CoreRouter#reloadProceed with reload? [comfirm] <cr>//直接ENTER等待一下
5.重複登入步驟 直到進入全局模式
6.查看開機IOS是否升級成功
CoreRouter(config)#do show version7.輸出畫面如下(只須看紅字部份,正確即可)
Cisco IOS Software, 2600 Software (C2600-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Wed 18-Jul-07 06:21 by pt_rel_team
ROM: System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)
Copyright (c) 2000 by cisco Systems, Inc.
System returned to ROM by power-on
System image file is "c2600-advipservicesk9-mz.124-15.T1.bin"
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
--More--只需Ctrl+C回到全局模式即可
第三部份
ALSwitch-1
1.一樣的步驟進入全局模式
Switch(config)#2.設置交換器名稱
Switch(config)#hostname ALSwitch-13.設定加密之特權密碼
ALSwitch-1(config)#enable secret Microsoft4.設定主控台密碼
ALSwitch-1(config)#line console 0ALSwitch-1(config-line)#password WindowsALSwitch-1(config-line)#loginALSwitch-1(config-line)#exit5.設定虛擬終端機密碼
ALSwitch-1(config)#line vty 0 15ALSwitch-1(config-line)#password WindowsALSwitch-1(config-line)#loginALSwitch-1(config-line)#exit6.指定交換器使用該網段最後一個可用IP
ALSwitch-1(config)#interface vlan 1ALSwitch-1(config-if)#ip address 172.16.1.126 255.255.255.128ALSwitch-1(config-if)#no shutdownALSwitch-1(config-if)#exit7.設其預設閘道
ALSwitch-1(config)#ip default-gateway 172.16.1.018.交換器所有密碼加密保護
ALSwitch-1(config)#service password-encryption
9寫入設定(儲存)
ALSwitch-1(config)#do write10.測試PC遠端連線交換器
打開Command Prompt並Telnet到交換器
C:\>telnet 172.16.1.126輸入虛擬終端機密碼
Password:Windows如下代表成功
Packet Tracer PC Command Line 1.0
C:\>telnet 172.16.1.126
Trying 172.16.1.126 ...Open
User Access Verification
Password: //密碼輸入時是看不到的
ALSwitch-1>
第二台交換器作法大同小異,參考第一台的作法
結束