【实验名称】交换机的基本配置
【实验目的】掌握交换机命令行各种操作模式的区别,能够使用各种帮助信息,以及命令进行基本的配置
【实验设备】交换机1台、Console线1条、电脑1台
【实验拓扑】
【实验步骤】
步骤1 交换机各个操作模式直接的切换
//使用enable命令从用户模式进入特权模式
Switch>enable
//使用configure terminer命令从特权模式进入全局配置模式
Switch#configure terminal
//使用interface命令进入接口配置模式
Switch(config)#interface fastEthernet 0/1
//使用exit命令退回上一级操作模式
Switch(config-if)#exit
Switch(config)#interface fastEthernet 0/2
//使用end命令直接退回特权模式
Switch(config-if)#end
Switch#
步骤2 交换机命令行界面基本功能
//显示当前模式下所有可执行的命令
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
telnet Open a telnet connection
terminal Set terminal line parameters
traceroute Trace route to destination
undebug Disab