cisco交換機(jī)的設(shè)置
有網(wǎng)友這么問小編“cisco交換機(jī)怎么設(shè)置?”,學(xué)習(xí)啦小編在網(wǎng)上搜索了一些資料,供大家參考。
對(duì)交換機(jī)進(jìn)行配置。一般有兩種方法:
1 、控制臺(tái)端口(Console ):可以直接對(duì)交換機(jī)進(jìn)行配置
2 、遠(yuǎn)程登錄(Telnet):通過TELNET程序?qū)σ呀?jīng)設(shè)置了IP的交換機(jī)進(jìn)行遠(yuǎn)程配置,一般等控制臺(tái)端口配置好交換機(jī)的IP后才可以進(jìn)行。
除了以上的兩種方法外,其實(shí)還有兩種方法:
1 、WEB 的配置方式。此方法只能配置一般的簡單設(shè)置2 、硬件自帶的應(yīng)用程序。專用的程序,一般很少用
建立控制臺(tái)連接到交換機(jī)
一般交換機(jī)自帶一根Console 線,一端連接到交換機(jī)的Comsole 口,一端連接到電腦的串行口。打開超級(jí)終端,一般就可以連接到交換機(jī)。具體的參數(shù)設(shè)置如下
這樣就可以連接到交換機(jī)了
連接到交換機(jī)后,如果是第一次啟動(dòng)會(huì)要執(zhí)行初始化操作,一般是設(shè)置交換機(jī)的名稱,密碼等一般的信息。
由于交換機(jī)已經(jīng)初始化,如果要進(jìn)行初始化操作,那就要進(jìn)入特權(quán)EXEC模式,在命令提示符號(hào)下輸入:setup,就會(huì)啟動(dòng)初始化操作。
剛才講到了特權(quán)EXEC模式,這理就要講一下覺換機(jī)的幾種模式,不同的模式可以執(zhí)行不同的操作命令,首先來說兩種基本的模式。
一般為了安全考慮,CISCO將操作會(huì)話分為兩個(gè)不同的訪問級(jí)別:用戶EXEC級(jí)別和特權(quán)EXEC級(jí)別。用戶EXEC級(jí)別只能使用有限的命令,且交換機(jī)顯示Switch>提示符,不能對(duì)交換機(jī)進(jìn)行配置。看例子,處于用戶EXEC級(jí)別下的狀態(tài):
AITG_FrontekCoreSW>
特權(quán)EXEC級(jí)別下交換機(jī)顯示Switch#提示符,能對(duì)交換機(jī)進(jìn)行各種配置。看例子,處于特權(quán)EXEC級(jí)別下的狀態(tài):
輸入en,進(jìn)入特權(quán)EXEC級(jí)別,接著輸入密碼,進(jìn)入特權(quán)EXEC級(jí)別
AITG_FrontekCoreSW>en
Password:
AITG_FrontekCoreSW#
看看,提示符變了,用戶在用戶EXEC級(jí)別輸入enable(或en),然后輸入密碼,就可以進(jìn)入特權(quán)EXEC級(jí)別
在交換機(jī)提示符下輸入“?”,可以列出相應(yīng)模式下交換機(jī)所支持的所有命令。
退出特權(quán)EXEC級(jí)別模式:disable
再用戶EXEC級(jí)別輸入?可以獲得幫助信息:
AITG_FrontekCoreSW>?
Exec commands:
<1-99> Session number to resume
access-enableCreate a temporary Access-List entry
clearReset 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
loginLog 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
whereList active connections
再特權(quán)EXEC級(jí)別輸入?可以獲得幫助信息:
AITG_FrontekCoreSW#?
Exec commands:
<1-99> Session number to resume
access-enableCreate a temporary Access-List entry
access-template Create a temporary Access-List entry
archive manage archive files
cd Change current directory
clearReset functions
clockManage the system clock
cns CNS agents
configureEnter configuration mode
connect Open a terminal connection
copy Copy from one file to another
debugDebugging 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
dot1xIEEE 802.1X Exec Commands
enable Turn on privileged commands
eou EAPoUDP
eraseErase 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
loginLog in as a particular user
logout Exit from the EXEC
mkdirCreate 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
renewRenew
resume Resume an active network connection
rmdirRemove 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)
setupRun 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
whereList active connections
writeWrite running configuration to memory, network, or terminal
其實(shí)還有幾種模式如下:
全局配置模式:Switch(config)# 配置交換機(jī)的全局參數(shù)
接口配置模式:Switch(config-if)# 對(duì)交換機(jī)的接口進(jìn)行配置,如某個(gè)接口屬于那個(gè)Vlan,啟用及禁用 接口等
線路配置模式:Switch(config-line)# 對(duì)控制臺(tái)訪問
VLAN數(shù)據(jù)庫配置模式:Switch(Vlan)# 對(duì)Vlan的參數(shù)進(jìn)行配置
以上內(nèi)容來自互聯(lián)網(wǎng),希望您能喜歡。