查看交换机的MAC地址表Switch#show mac-address-table
选择某个端口Switch(config)# intece type mod/port (type表示端口类型,通常有ethernet、Fastethernet、Gigabitethernet)(mod表示端口所在的模块,port表示在该模块中的编号)例如intece fastethernet0/1
选择多个端口Switch(config)#intece type mod/startport-endport
设置端口通信速度Switch(config-if)#speed [10/100/auto]
设置端口单双工模式Switch(config-if)#duplex [half/full/auto]
交换机、路由器中有很多密码,设置对这些密码可以有效的提高设备的安全性。 switch(config)# enable password ****** 设置进入特权模式的密码
switch(config-line)可以设置通过console端口连接设备及Telnet远程登录时所需的密码;
switch(config)# line console 0表示配置控制台线路,0是控制台的线路编号。
switch(config-line)# login 用于打开登录认证功能。
switch(config-line)# password 5ijsj //设置进入控制台访问的密码
若交换机设置为auto以外的具体速度,此时应注意保证通信双方也要有相同的设置值。
注意事项:在配置交换机时,要注意交换机端口的单双工模式的匹配,如果链路一端设置的是全双工,另一端是自动协商,则会造成响应差和高出错率,丢包现象会很严重。通常两端设置为相同的
模式。
实验设备
Switch_2960 1台;PC 1台;配置线;直通线
PC console端口
Switch>enable
Switch#conf t
Switch(config)#hostname S2960
S2960(config)#intece fa 0/1
S2960(config-if)#speed 100
S2960(config-if)#duplex full
S2960(config-if)#exit
同时将PC的网卡改成全双工模式,100M速率,否则链路不通
S2960(config)#hostname switch
Switch(config)#exit
Switch#show version
Switch#show run
Switch#show intece
Switch#show mac-address-table
Switch#config t
Switch(config)#enable password cisco//激活特权模式密码为cisco
Switch(config)#no enable password //取消特权模式密码
Switch(config)#line console 0
Switch(config-line)#password cisco
Switch(config-line)#login
Switch(config-line)#no password//取消密码
实训五 交换机的Telnet远程登陆配置
实验目标
掌握采用Telnet方式配置交换机的方法。
实验背景
第一次在设备机房对交换机进行了初次配置后,你希望以后在办公室或出差时也可以对设
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-22914-2.html
我们坐实12海里要了里子
写得不好