欢迎来到天天文库
浏览记录
ID:50150937
大小:130.17 KB
页数:3页
时间:2020-03-07
《交换机的端口配置与管理.pdf》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、实验2交换机的端口配置与管理实验目标掌握交换机基本信息的配置管理。实验背景某公司新进一批交换机,在投入网络以后要进行初始配置与管理,你作为网络管理员,对交换机进行端口的配置与管理。技术原理交换机的管理方式基本分为两种:带内管理和带外管理。通过交换机的Console端口管理交换机属于带外管理;这种管理方式不占用交换机的网络端口,第一次配置交换机必须利用Console端口进行配置。交换机的命令行操作模式主要包括:用户模式Switch>特权模式Switch#全局配置模式Switch(config)#端口模式Switch(config-if)#实验步骤:新建PacketTracer拓扑图了解交换机
2、端口配置命令行修改交换机名称(hostnameX)配置交换机端口参数(speed,duplex)查看交换机版本信息(showversion)查看当前生效的配置信息(showrunning-config)查看保存在NVRAM中的启动配置信息(showstartup-config)查看端口信息Switch#showinterface查看交换机的MAC地址表Switch#showmac-address-table选择某个端口Switch(config)#interfacetypemod/port(type表示端口类型,通常有ethernet、Fastethernet、Gigabitetherne
3、t)(mod表示端口所在的模块,port表示在该模块中的编号)例如interfacefastethernet0/1选择多个端口Switch(config)#interfacetypemod/startport-endport设置端口通信速度Switch(config-if)#speed[10/100/auto]设置端口单双工模式Switch(config-if)#duplex[half/full/auto]交换机、路由器中有很多密码,设置对这些密码可以有效的提高设备的安全性。switch(config)#enablepassword******设置进入特权模式的密码switch(confi
4、g-line)可以设置通过console端口连接设备及Telnet远程登录时所需的密码;switch(config)#lineconsole0表示配置控制台线路,0是控制台的线路编号。switch(config-line)#login用于打开登录认证功能。switch(config-line)#password5ijsj//设置进入控制台访问的密码若交换机设置为auto以外的具体速度,此时应注意保证通信双方也要有相同的设置值。注意事项:在配置交换机时,要注意交换机端口的单双工模式的匹配,如果链路一端设置的是全双工,另一端是自动协商,则会造成响应差和高出错率,丢包现象会很严重。通常两端设置为
5、相同的模式。实验设备Switch_29601台;PC1台;配置线;直通线PCconsole端口Switch>enableSwitch#conftSwitch(config)#hostnameS2960S2960(config)#interfacefa0/1S2960(config-if)#speed100S2960(config-if)#duplexfullS2960(config-if)#exit同时将PC的网卡改成全双工模式,100M速率,否则链路不通S2960(config)#hostnameswitchSwitch(config)#exitSwitch#showversionSwi
6、tch#showrunSwitch#showinterfaceSwitch#showmac-address-tableSwitch#configtSwitch(config)#enablepasswordcisco//激活特权模式密码为ciscoSwitch(config)#noenablepassword//取消特权模式密码Switch(config)#lineconsole0Switch(config-line)#passwordciscoSwitch(config-line)#loginSwitch(config-line)#nopassword//取消密码
此文档下载收益归作者所有