cisco交换机配置实例教程doc.docx
- 文档编号:14024998
- 上传时间:2023-06-20
- 格式:DOCX
- 页数:9
- 大小:17.33KB
cisco交换机配置实例教程doc.docx
《cisco交换机配置实例教程doc.docx》由会员分享,可在线阅读,更多相关《cisco交换机配置实例教程doc.docx(9页珍藏版)》请在冰点文库上搜索。
cisco交换机配置实例教程doc
cisco交换机配置实例教程
cisco交换机配置实例教程
1、在交换机上启动QOS
Switch(config)#mlsqos//在交换机上启动QOS
2、分别定义PC1(10.10.1.1)和PC2(10.10.2.1)访问控制列表
Switch(config)#access-list10permit10.10.1.00.0.0.255//控制pc1上行流量Switch(config)#access-list100permitany10.10.1.00.0.0.255//控制pc1下行流量Switch(config)#access-list11permit10.10.2.00.0.0.255//控制pc2上行流量Switch(config)#access-list111permitany10.10.2.00.0.0.255//控制pc2下行流量
class-mapmach-all{name}
matchaccess-group110
policy-map
class
二、详细配置过程
注:
每个接口每个方向只支持一个策略;一个策略可以用于多个接口。
因此所有PC的下载速率的限制都应该定义在同一个策略(在本例子当中
为policy-mapuser-down),而PC不同速率的区分是在Class-map分别定义。
1、在交换机上启动QOS
Switch(config)#mlsqos//在交换机上启动QOS
2、分别定义PC1(10.10.1.1)和PC2(10.10.2.1)访问控制列表
Switch(config)#access-list10permit10.10.1.00.0.0.255//控制pc1上行流量
Switch(config)#access-list100permitany10.10.1.00.0.0.255//控制pc1下行流量
Switch(config)#access-list11permit10.10.2.00.0.0.255//控制pc2上行流量
Switch(config)#access-list111permitany10.10.2.00.0.0.255//控制pc2下行流量
3、定义类,并和上面定义的访问控制列表绑定
Switch(config)#class-mapuser1-up//定义PC1上行的类,并绑定访问列表10
Switch(config-cmap)#matchaccess-group10
Switch(config-cmap)#exit
Switch(config)#class-mapuser2-up
Switch(config-cmap)#matchaccess-group11//定义PC2上行的类,并绑定访问列表10
Switch(config-cmap)#exit
Switch(config)#class-mapuser1-down
Switch(config-cmap)#matchaccess-group100//定义PC1下行的类,并绑定访问列表100
Switch(config-cmap)#exit
Switch(config)#class-mapuser2-down
Switch(config-cmap)#matchaccess-group111//定义PC2下行的类,并绑定访问列表111
Switch(config-cmap)#exit
4、定义策略,把上面定义的类绑定到该策略
Switch(config)#policy-mapuser1-up//定义PC1上行的速率为1M
Switch(config-pmap)#classuser1-up
Switch(config-pmap-c)#trustdscp
Switch(config-pmap-c)#police10240001024000exceed-actiondrop
Switch(config)#policy-mapuser2-up//定义PC2上行的速率为2M
Switch(config-pmap)#classuser2-up
Switch(config-pmap-c)#trustdscp
Switch(config-pmap-c)#police20480001024000exceed-actiondrop
Switch(config)#policy-mapuser-down
Switch(config-pmap)#classuser1-down
Switch(config-pmap-c)#trustdscp
Switch(config-pmap-c)#police10240001024000exceed-actiondrop
Switch(config-pmap-c)#exit
Switch(config-pmap)#classuser2-down
Switch(config-pmap-c)#trustdscp
Switch(config-pmap-c)#police20480001024000exceed-actiondrop
Switch(config-pmap-c)#exit
5、在接口上运用策略
Switch(config)#interfacef0/1
Switch(config-if)#service-policyinputuser1-up
Switch(config)#interfacef0/2
Switch(config-if)#service-policyinputuser2-up
Switch(config)#interfaceg0/1
Switch(config-if)#service-policyinputuser-down
看了cisco交换机配置实例教程还想看:
1.思科交换机基本配置实例讲解
2.CISCO交换机配置操作学习教程
3.思科交换机配置教程详解
4.cisco交换机qos配置实例教程
5.思科路由器、交换机的基本管理教程
6.Cisco2960交换机的基础安装配置教程
Cisco交换机入门配置的方法
Cisco交换机入门配置的方法:
机型:
Cisco3750
想对交换机警醒配置。
一般有两种方法:
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_FrontekCoreSWen
Password:
AITG_FrontekCoreSW#
看看,提示符变了,用户在用户EXEC级别输入enable(或en),然后输入密码,就可以进入特权EXEC级别
在交换机提示符下输入?
,可以列出相应模式下交换机所支持的所有命令。
退出特权EXEC级别模式:
disable
再用户EXEC级别输入?
可以获得帮助信息:
AITG_FrontekCoreSW?
Execcommands:
1-99Sessionnumbertoresume
access-enableCreateatemporaryAccess-Listentry
clearResetfunctions
connectOpenaterminalconnection
disableTurnoffprivilegedcommands
disconnectDisconnectanexistingnetworkconnection
enableTurnonprivilegedcommands
exitExitfromtheEXEC
helpDescriptionoftheinteractivehelpsystem
lockLocktheterminal
loginLoginasaparticularuser
logoutExitfromtheEXEC
name-connectionNameanexistingnetworkconnection
pingSendechomessages
rcommandRuncommandonremoteswitch
resumeResumeanactivenetworkconnection
setSetsystemparameter(notconfig)
showShowrunningsysteminformation
systatDisplayinformationaboutterminallines
telnetOpenatelnetconnection
terminalSetterminallineparameters
tracerouteTraceroutetodestination
tunnelOpenatunnelconnection
whereListactiveconnections
再特权EXEC级别输入?
可以获得帮助信息:
AITG_FrontekCoreSW#?
Execcommands:
1-99Sessionnumbertoresume
access-enableCreateatemporaryAccess-Listentry
access-templateCreateatemporaryAccess-Listentry
archivemanagearchivefiles
cdChangecurrentdirectory
clearResetfunctions
clockManagethesystemclock
cnsCNSagents
configureEnterconfigurationmode
connectOpenaterminalconnection
copyCopyfromonefiletoanother
debugDebuggingfunctions(seealsoundebug)
deleteDeleteafile
diagnosticDiagnosticcommands
dirListfilesonafilesystem
disableTurnoffprivilegedcommands
disconnectDisconnectanexistingnetworkconnection
dot1xIEEE802.1XExecCommands
enableTurnonprivilegedcommands
eouEAPoUDP
eraseEraseafilesystem
exitExitfromtheEXEC
formatFormatafilesystem
fsckFsckafilesystem
helpDescriptionoftheinteractivehelpsystem
ipGlobalIPcommands
lockLocktheterminal
loginLoginasaparticularuser
logoutExitfromtheEXEC
mkdirCreatenewdirectory
monitorMonitoringdifferentsystemevents
moreDisplaythecontentsofafile
name-connectionNameanexistingnetworkconnection
noDisabledebuggingfunctions
noNegateacommandorsetitsdefaults
pingSendechomessages
pwdDisplaycurrentworkingdirectory
rcommandRuncommandonremoteswitch
reloadHaltandperformacoldrestart
remoteRemoteprocedures
renameRenameafile
renewRenew
resumeResumeanactivenetworkconnection
rmdirRemoveexistingdirectory
rshExecutearemotecommand
sendSendamessagetootherttylines
sessionRuncommandonmemberswitch
setSetsystemparameter(notconfig)
setupRuntheSETUPcommandfacility
showShowrunningsysteminformation
systatDisplayinformationaboutterminallines
telnetOpenatelnetconnection
terminalSetterminallineparameters
testTestsubsystems,memory,andinterfaces
tracerouteTraceroutetodestination
tunnelOpenatunnelconnection
udldUDLDprotocolcommands
undebugDisabledebuggingfunctions(seealsodebug)
upgradeUpgradecommands
verifyVerifyafile
vlanConfigureVLANparameters
vmpsVMPSactions
vtpConfigureglobalVTPstate
whereListactiveconnections
writeWriterunningconfigurationtomemory,network,orterminal
其实还有几种模式如下:
全局配置模式:
Switch(config)#配置交换机的全局参数
接口配置模式:
Switch(config-if)#对交换机的接口进行配置,如某个接口属于那个Vlan,启用及禁用接口等
线路配置模式:
Switch(config-line)#对控制台访问
VLAN数据库配置模式:
Switch(Vlan)#对Vlan的参数进行配置
看了Cisco交换机入门配置的方法还看了:
1.思科交换机配置教程详解
2.思科交换机基本配置实例讲解
3.Cisco交换机基本配置的方法
4.思科交换机的基本配置详解
5.cisco2960交换机安装配置基础详解
6.西门子交换机怎么配置
7.Cisco交换机常用配置命令总结
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- cisco 交换机 配置 实例教程 doc