某公司新进一批交换机,在投入网络以后要进行初始配置与管理,你作为网络管理员,对交换机进行基本的配置与管理。

一、交换机的管理方式基本分为两种:带内管理和带外管理。
1、通过交换机的Console端口管理交换机属于带外管理;这种管理方式不占用交换机的网络端口,第一次配置交换机必须利用Console端口进行配置。
2、通过Telnet、拨号等方式属于带内管理。


二、交换机的命令行操作模式主要包括:
1、用户模式 Switch>
2、特权模式 Switch#
3、全局配置模式 Switch(config)#
4、端口模式 Switch(config-if)#

三、交换机命令行说明:
1、进入特权模式(en)
2、进入全局配置模式(conf t)
3、进入交换机端口视图模式(int f0/1)
4、返回到上级模式(exit)
5、从全局以下模式返回到特权模式(end)
6、帮助信息(如? 、co?、copy?)
7、命令简写(如 conf t)
8、命令自动补全(Tab)
9、快捷键(ctrl+c中断测试,ctrl+z退回到特权视图)
10、Reload重启。(在特权模式下)
11、修改交换机名称(hostname X)
12、使用tab键,命令简写,帮助命令?

四、设备:
Switch_2960 1台;笔记本1台;配置线一根。

五、笔记本console端口配置:
Switch>enable
Switch#conf t
Switch(config)#hostname SA
Switch(config)#interface fa 0/1
Switch(config-if)#end

六、查看交换机的设置情况。
