Cisco交換機入門配置的方法
你還在為不知道Cisco交換機入門配置的方法而煩惱么?接下來是小編為大家收集的Cisco交換機入門配置的方法教程,希望能幫到大家。
Cisco交換機入門配置的方法:
機型:Cisco 3750
想對交換機警醒配置。一般有兩種方法:
1、控制臺端口(Console):可以直接對交換機進行配置
2、遠程登錄(Telnet):通過TELNET程序?qū)σ呀?jīng)設置了IP的交換機進行遠程配置,一般等控制臺端口配置好交換機的IP后才可以進行。
除了以上的兩種方法外,其實還有兩種方法:
1、WEB的配置方式。此方法只能配置一般的簡單設置
2、硬件自帶的應用程序。專用的程序,一般很少用
建立控制臺連接到交換機
一般交換機自帶一根Console線,一端連接到交換機的Comsole口,一端連接到電腦的串行口。打開超級終端,一般就可以連接到交換機。具體的參數(shù)設置如下
這樣就可以連接到交換機了
連接到交換機后,如果是第一次啟動會要執(zhí)行初始化操作,一般是設置交換機的名稱,密碼等一般的信息。
由于交換機已經(jīng)初始化,如果要進行初始化操作,那就要進入特權(quán)EXEC模式,在命令提示符號下輸入:setup,就會啟動初始化操作。
剛才講到了特權(quán)EXEC模式,這理就要講一下覺換機的幾種模式,不同的模式可以執(zhí)行不同的操作命令,首先來說兩種基本的模式。
一般為了安全考慮,CISCO將操作會話分為兩個不同的訪問級別:用戶EXEC級別和特權(quán)EXEC級別。用戶EXEC級別只能使用有限的命令,且交換機顯示Switch>提示符,不能對交換機進行配置。看例子,處于用戶EXEC級別下的狀態(tài):
AITG_FrontekCoreSW>
特權(quán)EXEC級別下交換機顯示Switch#提示符,能對交換機進行各種配置。看例子,處于特權(quán)EXEC級別下的狀態(tài):
輸入en,進入特權(quán)EXEC級別,接著輸入密碼,進入特權(quán)EXEC級別
AITG_FrontekCoreSW>en
Password:
AITG_FrontekCoreSW#
看看,提示符變了,用戶在用戶EXEC級別輸入enable(或en),然后輸入密碼,就可以進入特權(quán)EXEC級別
在交換機提示符下輸入“?”,可以列出相應模式下交換機所支持的所有命令。
退出特權(quán)EXEC級別模式:disable
再用戶EXEC級別輸入?可以獲得幫助信息:
AITG_FrontekCoreSW>?
Exec commands:
<1-99> Session number to resume
access-enable Create a temporary Access-List entry
clear Reset functions
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
help Description of the interactive help system
lock Lock the terminal
login Log in as a particular user
logout Exit from the EXEC
name-connection Name an existing network connection
ping Send echo messages
rcommand Run command on remote switch
resume Resume an active network connection
set Set system parameter (not config)
show Show running system information
systat Display information about terminal lines
telnet Open a telnet connection
terminal Set terminal line parameters
traceroute Trace route to destination
tunnel Open a tunnel connection
where List active connections
再特權(quán)EXEC級別輸入?可以獲得幫助信息:
AITG_FrontekCoreSW#?
Exec commands:
<1-99> Session number to resume
access-enable Create a temporary Access-List entry
access-template Create a temporary Access-List entry
archive manage archive files
cd Change current directory
clear Reset functions
clock Manage the system clock
cns CNS agents
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
diagnostic Diagnostic commands
dir List files on a filesystem
disable Turn off privileged commands
disconnect Disconnect an existing network connection
dot1x IEEE 802.1X Exec Commands
enable Turn on privileged commands
eou EAPoUDP
erase Erase a filesystem
exit Exit from the EXEC
format Format a filesystem
fsck Fsck a filesystem
help Description of the interactive help system
ip Global IP commands
lock Lock the terminal
login Log in as a particular user
logout Exit from the EXEC
mkdir Create new directory
monitor Monitoring different system events
more Display the contents of a file
name-connection Name an existing network connection
no Disable debugging functions
no Negate a command or set its defaults
ping Send echo messages
pwd Display current working directory
rcommand Run command on remote switch
reload Halt and perform a cold restart
remote Remote procedures
rename Rename a file
renew Renew
resume Resume an active network connection
rmdir Remove existing directory
rsh Execute a remote command
send Send a message to other tty lines
session Run command on member switch
set Set system parameter (not config)
setup Run the SETUP command facility
show Show running system information
systat Display information about terminal lines
telnet Open a telnet connection
terminal Set terminal line parameters
test Test subsystems, memory, and interfaces
traceroute Trace route to destination
tunnel Open a tunnel connection
udld UDLD protocol commands
undebug Disable debugging functions (see also 'debug')
upgrade Upgrade commands
verify Verify a file
vlan Configure VLAN parameters
vmps VMPS actions
vtp Configure global VTP state
where List active connections
write Write running configuration to memory, network, or terminal
其實還有幾種模式如下:
全局配置模式:Switch(config)# 配置交換機的全局參數(shù)
接口配置模式:Switch(config-if)# 對交換機的接口進行配置,如某個接口屬于那個Vlan,啟用及禁用 接口等
線路配置模式:Switch(config-line)# 對控制臺訪問
VLAN數(shù)據(jù)庫配置模式:Switch(Vlan)# 對Vlan的參數(shù)進行配置
看了“Cisco交換機入門配置的方法”還看了: