读文网>电脑>网络知识>路由器>路由器设置>cisco思科

cisco交换机的设置

有网友这么问小编“cisco交换机怎么设置?”,读文网小编在网上搜索了一些资料,供大家参考。

对交换机进行配置。一般有两种方法

1 、控制台端口(Console ):可以直接对交换机进行配置

2 、远程登录(Telnet):通过TELNET程序对已经设置了IP的交换机进行远程配置,一般等控制台端口配置好交换机的IP后才可以进行。

除了以上的两种方法外,其实还有两种方法:

1 、WEB 的配置方式。此方法只能配置一般的简单设置2 、硬件自带的应用程序。专用的程序,一般很少用

建立控制台连接到交换机

一般交换机自带一根Console 线,一端连接到交换机的Comsole 口,一端连接到电脑的串行口。打开超级终端,一般就可以连接到交换机。具体的参数设置如下

这样就可以连接到交换机了

连接到交换机后,如果是第一次启动会要执行初始化操作,一般是设置交换机的名称,密码等一般的信息。

由于交换机已经初始化,如果要进行初始化操作,那就要进入特权EXEC模式,在命令提示符号下输入:setup,就会启动初始化操作。

刚才讲到了特权EXEC模式,这理就要讲一下觉换机的几种模式,不同的模式可以执行不同的操作命令,首先来说两种基本的模式。

一般为了安全考虑,CISCO将操作会话分为两个不同的访问级别:用户EXEC级别和特权EXEC级别。用户EXEC级别只能使用有限的命令,且交换机显示Switch>提示符,不能对交换机进行配置。看例子,处于用户EXEC级别下的状态:

AITG_FrontekCoreSW>

特权EXEC级别下交换机显示Switch#提示符,能对交换机进行各种配置。看例子,处于特权EXEC级别下的状态:

输入en,进入特权EXEC级别,接着输入密码,进入特权EXEC级别

AITG_FrontekCoreSW>en

Password:

AITG_FrontekCoreSW#

看看,提示符变了,用户在用户EXEC级别输入enable(或en),然后输入密码,就可以进入特权EXEC级别

在交换机提示符下输入“?”,可以列出相应模式下交换机所支持的所有命令。

退出特权EXEC级别模式:disable

再用户EXEC级别输入?可以获得帮助信息:

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

再特权EXEC级别输入?可以获得帮助信息:

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

其实还有几种模式如下:

全局配置模式:Switch(config)# 配置交换机的全局参数

接口配置模式:Switch(config-if)# 对交换机的接口进行配置,如某个接口属于那个Vlan,启用及禁用接口等

线路配置模式:Switch(config-line)# 对控制台访问

VLAN数据库配置模式:Switch(Vlan)# 对Vlan的参数进行配置

以上内容来自互联网,希望您能喜欢。

相关热搜

相关文章

【cisco思科】热点

【cisco思科】最新