Cisco交換機(jī)入門(mén)配置的方法
你還在為不知道Cisco交換機(jī)入門(mén)配置的方法而煩惱么?接下來(lái)是小編為大家收集的Cisco交換機(jī)入門(mén)配置的方法教程,希望能幫到大家。
Cisco交換機(jī)入門(mén)配置的方法:
機(jī)型:Cisco 3750
想對(duì)交換機(jī)警醒配置。一般有兩種方法:
1、控制臺(tái)端口(Console):可以直接對(duì)交換機(jī)進(jìn)行配置
2、遠(yuǎn)程登錄(Telnet):通過(guò)TELNET程序?qū)σ呀?jīng)設(shè)置了IP的交換機(jī)進(jìn)行遠(yuǎn)程配置,一般等控制臺(tái)端口配置好交換機(jī)的IP后才可以進(jìn)行。
除了以上的兩種方法外,其實(shí)還有兩種方法:
1、WEB的配置方式。此方法只能配置一般的簡(jiǎn)單設(shè)置
2、硬件自帶的應(yīng)用程序。專(zhuān)用的程序,一般很少用
建立控制臺(tái)連接到交換機(jī)
一般交換機(jī)自帶一根Console線(xiàn),一端連接到交換機(jī)的Comsole口,一端連接到電腦的串行口。打開(kāi)超級(jí)終端,一般就可以連接到交換機(jī)。具體的參數(shù)設(shè)置如下
這樣就可以連接到交換機(jī)了
連接到交換機(jī)后,如果是第一次啟動(dòng)會(huì)要執(zhí)行初始化操作,一般是設(shè)置交換機(jī)的名稱(chēng),密碼等一般的信息。
由于交換機(jī)已經(jīng)初始化,如果要進(jìn)行初始化操作,那就要進(jìn)入特權(quán)EXEC模式,在命令提示符號(hào)下輸入:setup,就會(huì)啟動(dòng)初始化操作。
剛才講到了特權(quán)EXEC模式,這理就要講一下覺(jué)換機(jī)的幾種模式,不同的模式可以執(zhí)行不同的操作命令,首先來(lái)說(shuō)兩種基本的模式。
一般為了安全考慮,CISCO將操作會(huì)話(huà)分為兩個(gè)不同的訪(fǎng)問(wèn)級(jí)別:用戶(hù)EXEC級(jí)別和特權(quán)EXEC級(jí)別。用戶(hù)EXEC級(jí)別只能使用有限的命令,且交換機(jī)顯示Switch>提示符,不能對(duì)交換機(jī)進(jìn)行配置??蠢?,處于用戶(hù)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#
看看,提示符變了,用戶(hù)在用戶(hù)EXEC級(jí)別輸入enable(或en),然后輸入密碼,就可以進(jìn)入特權(quán)EXEC級(jí)別
在交換機(jī)提示符下輸入“?”,可以列出相應(yīng)模式下交換機(jī)所支持的所有命令。
退出特權(quán)EXEC級(jí)別模式:disable
再用戶(hù)EXEC級(jí)別輸入?可以獲得幫助信息:
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級(jí)別輸入?可以獲得幫助信息:
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
其實(shí)還有幾種模式如下:
全局配置模式:Switch(config)# 配置交換機(jī)的全局參數(shù)
接口配置模式:Switch(config-if)# 對(duì)交換機(jī)的接口進(jìn)行配置,如某個(gè)接口屬于那個(gè)Vlan,啟用及禁用 接口等
線(xiàn)路配置模式:Switch(config-line)# 對(duì)控制臺(tái)訪(fǎng)問(wèn)
VLAN數(shù)據(jù)庫(kù)配置模式:Switch(Vlan)# 對(duì)Vlan的參數(shù)進(jìn)行配置
看了“Cisco交換機(jī)入門(mén)配置的方法”還看了: