思科模擬軟件:Cisco Packet Tracer Student
一.交換機(jī)的多種模式以及切換
1.如何進(jìn)入到交換機(jī)配置的命令行用戶界面(Command Line Interface)
enter進(jìn)入到普通用戶模式
2.普通模式模式
普通用戶模式下的
命令提示符:>
Switch>?
Exec commands:
connect Open a terminal connection
disable Turn off privileged commands
disconnect Disconnect an existing network connection
enable Turn on privileged commands
exit Exit from the EXEC
logout Exit from the EXEC
ping Send echo messages
resume Resume an active network connection
show Show running system information
telnet Open a telnet connection
terminal Set terminal line parameters
traceroute Trace route to destination
命令行下的復(fù)制粘貼:
shift+insert:復(fù)制命令行上的內(nèi)容
shift+delete:粘貼最近一次剪切板中的內(nèi)容到命令行上
普通用戶模式轉(zhuǎn)為特權(quán)用戶模式:
Switch>enable
Switch#
3.特權(quán)用戶模式
特權(quán)用戶模式下的命令提示符:#
Switch#?
Exec commands:
clear Reset functions
clock Manage the system clock
configure Enter configuration mode
connect Open a terminal connection
copy Copy from one file to another
debug Debugging functions (see also 'undebug')
delete Delete a file
dir List files on a filesystem
disable Turn off privileged commands
disconnect Disconnect an existing network connection
enable Turn on privileged commands
erase Erase a filesystem
exit Exit from the EXEC
logout Exit from the EXEC
more Display the contents of a file
no Disable debugging informations
ping Send echo messages
reload Halt and perform a cold restart
resume Resume an active network connection
setup Run the SETUP command facility
show Show running system information
ssh Open a secure shell client connection
--More--
more表示由于屏幕大小原因,還有部分內(nèi)容沒(méi)有顯示出來(lái):
- 回車鍵:一次向下顯示一行
- 空格鍵:一次向下顯示一屏
特權(quán)用戶模式轉(zhuǎn)為全局配置模式:
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
ps:
configure terminal意為配置終端,單詞較長(zhǎng),可采用以下解決辦法:
- tab鍵自動(dòng)補(bǔ)全
- 簡(jiǎn)寫成conf t
4.全局配置模式
特權(quán)用戶模式下的命令提示符:(configure)+#
Switch(config)#?
Configure commands:
access-list Add an access list entry
banner Define a login banner
boot Boot Commands
cdp Global CDP configuration subcommands
clock Configure time-of-day clock
crypto Encryption module
do To run exec commands in config mode
enable Modify enable password parameters
end Exit from configure mode
exit Exit from configure mode
hostname Set system's network name
interface Select an interface to configure
ip Global IP configuration subcommands
line Configure a terminal line
logging Modify message logging facilities
mac MAC configuration
mac-address-table Configure the MAC address table
no Negate a command or set its defaults
port-channel EtherChannel configuration
privilege Command privilege parameters
service Modify use of network based services
snmp-server Modify SNMP engine parameters
--More--
查看配置模式中的24個(gè)端口:
ps: FastEthernet0/1單詞意為快速以太網(wǎng)0/1
全局配置模式轉(zhuǎn)為接口配置模式:
Switch(config-if)#interface f0/1
Switch(config-if)#
全局配置模式轉(zhuǎn)為vlan配置模式:
Switch(config)#vlan 4
Switch(config-vlan)#
5.模式切換圖
二.交換機(jī)名稱,口令等設(shè)置
1.全局模式下-交換機(jī)改名
全局模式下:
Switch(config)#hostname song
song(config)#
2.接口模式下-配置端口速度和工作模式
2.1配置端口速度
song(config-if)#speed ?
10 Force 10 Mbps operation
100 Force 100 Mbps operation
auto Enable AUTO speed configuration
ps:默認(rèn)會(huì)自動(dòng)地匹配式10Mbps,還是100Mbps
song(config-if)#speed 10
song(config-if)#speed 100
song(config-if)#speed auto
song(config-if)#
2.2配置工作模式
song(config-if)#duplex ?
auto Enable AUTO duplex configuration
full Force full duplex operation
half Force half-duplex operation
3.特權(quán)模式下-查看交換機(jī)歷史命令
原則上可以一個(gè)一個(gè)通過(guò)上鍵來(lái)上翻找到所有的歷史命令,但是不方便文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-740750.html
song#show running-conf
Building configuration...
Current configuration : 975 bytes
!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname song
!
!
!
spanning-tree mode pvst
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
--More--
4.命令的撤銷
有些命令可以通過(guò)覆蓋來(lái)達(dá)到撤銷后再次寫入的目的,但是有些命令只能通過(guò)撤銷后再次寫入來(lái)完成文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-740750.html
song(config-if)#speed 100
song(config-if)#no speed 100
song(config-if)#
到了這里,關(guān)于【Cisco Packet Tracer| 一.交換機(jī)配置模式與基本參數(shù)配置】的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!