实验一. 二层交换机基本配置
实验 二层交换机基本配置
实验目的:熟练掌握如何进入交换机各种模式设置主机名。
设备需求:
Gatalyst 2950 系列交换机一台
语法:
1.从路由器用户模式进入特权模式:
Aiko>enable
2. 从发特权模式进图全局配置模式:
Aiko#configure terminal
2.为路由器设置主机名:
Aiko#hostname{hostmame}
4. 退出全局模式:
Aiko(config)#end
:
Aiko#disable
6.退出控制台线路:
Aiko>quit
解释:
交换机的模式大致可分为:
1.用户模式:全县最低,通常只能是哟给少量查看性质的命令。
2.特权模式:可以使用更多查看新风格指数低位命令和一些少量修改交换机的参数的命令。
3.全局配置模式:不能使用查看性质命令,但是趋势做全局性修改的模式,它还可以向下分为一些字模式,
比如接口配置模式,线路配置模式等等。
配置实例一:
Switch>enable
Switch#configure terminal
Enter configuration commands,one per line. End with CNTL/Z.
Switch(config)#exit
AIko#
*Mar 1 00:o4:: %SYS-5-CONFIG_I:Configured form console by console
Aiko#disable
Aiko>
实验
目标:熟练掌握如何为交换机设置时间。
设备需求:
Catalyst 2950 系列交换机一台。
语法:
在特权模式下设置交换机时间:
Aiko#clock set{hh:mm:ss day month year}
解释:
交换机本地的时间标识.
配置实例一:
Aiko#clock set 16:16:16 25 Septermber 2005
Aiko#show clock
16:16: UTC Sun Sep 25 2005
Aiko#
实验
目标:熟练掌握如何设置空闲超时时间。
设备需求:
Catalyst 2950 系列交换机一台。
语法:
,进入控制台线路:
Aiko(config)#line console{number}
2. 启用光标跟随:
Aiko(config-line)#logging synchronous
,自动被交换机弹出到用户模式以外,即退出。涂过设置为 0 分 0 秒嗲表永
不超时:
Aiko(config-line)#exec-timeout{minute} {second}
解释:
所谓贯标跟随,使之我们在输入命令的时候,不会被一些日志信息或 debug 命令产生的调试命令所冲断.
默认改特性是没有启用的.
配置实例一:
Aiko(config)#exit
Aiko#
Mar 100:20:: %SYS-5-CONFIG_I:Configured from console by consoleconfigure terminal
Enter configuration commands,one per line. End with CNTL/Z.
Aiko(config)#line console 0
Aiko(config-line)#logging synchronous
Aiko(config-line)#end
Aiko#
*Mar 100:20:: %SYS-5-CONFIG_I:Configured form console by console
Aiko#configure terminal
Aiko#confgure terminal
Aiko(config)#
配置实例二:
Aiko#confgigure terminal
Enter configuration commands,one per line. End with CNTL/Z.
Aiko(config)#line console 0
Aiko(c
CCNA 交换基础实验手册 来自淘豆网m.daumloan.com转载请标明出处.