Cisco Packet Tracer基本操做

IOS主要模式
模式 描述 提示符
用戶執行模式 路由器受限檢查,遠程訪問 Router>
特權執行模式 路由器的詳細檢查:調試和測試,文件處理,遠程訪問 Router#
全局配置模式 全局配置命令 Router(config)#
其餘配置模式 特定的服務和接口配置 Router(config-mode)#網絡

IOS功能和命令總結:
用戶執行模式:
enable——用戶進入特權執行模式
特權執行模式:
copy running-config startup-config——用於將活動配置複製到NVRAM;
copy startup-config running-config——用於將NVRAM中配置的配置複製到內存;
erase startup-configuration——用於刪除NVRAM個跳;
tracerouteIP地址——用於追蹤通向該地址的每一跳;#若從Windows計算機執行追蹤,使用tracert
show interfaces——用於顯示設備上全部接口的統計信息;
show ip interface brief——驗證交換機接口狀態
show clock——用於顯示路由器中設置的時間
show version——用於顯示當前加載的IOS版本以及硬件和設備信息;
show arp——用於顯示設備的ARP表;
show startup-config——用於顯示保存在NVRAM中的配置;
show running-config——用於顯示當前的運行配置文件的內容;
show ip interfaces——用於顯示路由器上的全部接口IP統計信息;
configure terminal——用於進入終端配置模式;測試

終端配置模式:
hostname hostname——用於爲設備分配主機名;
enable password password——用於設置未加密的使能命令;
enable secret password——用於設置強加密的使能命令;
service password-encryption——用於加密顯示除使能加密口令外的全部口令;
banner motd# message#——用於設置當日消息標語;
line console 0——用於進入控制檯線路配置模式;
line vty 0 4——用於進入虛擬終端(Telnet)線路配置模式;
interfaces interface_name ——用於進入接口配置模式;ui

線路配置模式:
login——用於啓動登陸時的口令檢查;
password password——用於設置線路口令;加密

接口配置模式:
ip address ip_address netmask ——用於設置接口IP地址和子網掩碼;
description description ——用於設置接口描述;
clock rate value——用於設置DCE設備的時鐘頻率;
no shutdown ——用於打開接口;
shutdown ——出於管理目的關閉接口調試

配置路由器以太網接口:
——路由器以太網接口用做局域網中直接鏈接到路由器網絡中的終端設備的網關。每一個以太網接口必須擁有一個IP地址和一個子網掩碼才能路由IP數據包。
配置以太網接口:
Router>
Router>enable #進入特權模式
Router#config t #進入全局模式
Router(config)#interface FastEthernet 0/0 #進入接口配置模式
Router(config-if)#ip address 192.168.10.11 255.255.255.0 #指定接口IP地址和子網掩碼
Router(config-if)#no shutdown #啓動f0/0接口
Router(config-if)#exit #退出接口配置模式
Router(config)#exit #退出全局模式
Router#disable #退出特權模式
Router>接口

配置路由器串行接口
串行接口用於經過廣域網鏈接達到遠程站點或ISP處的路由器。
Router>enable
Router#config t
Router(config)#interface serial 2/0
Router(config-if)#ip address 192.168.20.100 255.255.255.0
Router(config-if)#clock rate 56000#若是鏈接了DCE電纜,則設置時鐘頻率;若是鏈接DTE電纜,則跳過此步驟。
Router(config-if)#no shutdown ip

Router(config-if)#description Connects to main switch in Building A #配置接口描述內存

 

交換機接口配置:
交換機的接口默認啓動的。
Switch>enable
Switch#configure terminal路由

Switch(config)#interface FastEthernet 0/1
Switch(config-if)#description To TAM switch
Switch(config-if)#exit
Switch(config)#hostname Flour_Bluff
Flour_Bluff(config)#exit
Flour_Bluff#terminal


要管理交換機,須要爲其分配地址。交換機的地址被分配給稱爲虛擬局域網接口(VLAN)的虛擬接口,大多數狀況下,該接口爲VLAN1,該接口與路由器的物理接口類似,須要經過
no shutdown命令啓動此接口。

Flour_Bluff#config tFlour_Bluff(config)#interface vlan 1Flour_Bluff(config-if)#ip address 192.168.2.10 255.255.255.0Flour_Bluff(config-if)#no shutdown Flour_Bluff(config)#ip default-gateway 192.168.1.1 #交換機須要一個網關才能與本地網絡以外的設備通訊Flour_Bluff(config)#exitFlour_Bluff#

相關文章
相關標籤/搜索