- 38
- 0
- 约 5页
- 2016-10-05 发布于重庆
- 举报
实验01口令和主机名设置
实验一 口令和主机名设置
实验目的:
1、认识交换机和路由器的两种配置模式:对话方式和命令行方式
2、使用命令行来消除交换机和路由器的命令
1.交换机的初始化
当交换机没有进行配置时,接入超级终端会提示是否以对话方式进行配置,初始化内容主要有IP地址、网关、主机名和口令等。配置文件是flash:config.text。
2924交换机进入ROM方式是在上电时按住其mode键,本软件是按Ctrl+Break键,出现:
switch ;按Ctrl+Break键
switch:reset ;或用boot命令,重新引导
如果有配置文件进入用户模式,否则提交对话:
--- System Configuration Dialog --- 交换机系统设置对话框
At any point you may enter a question mark ? for help. 在任何时候可以输入?寻求帮助
Use Ctrl-C to abort configuration dialog at any prompt. 终止配置对话
Default settings are in square brackets []. 默认设置是在方括号内
Continue with configuration dialog? [yes/no]:y 询问是否继续设置
Enter IP address:10.65.1.8 ip地址
Enter IP netmask:255.255.0.0 子网掩码
Would you like to enter a default gateway address? [yes]: 设置默认网关
IP address of default gateway: 将该IP地址作为默认网关
Enter host name [Switch]:swa 交换机名称
The enable secret is a one-way cryptographic secret used 用密码写的
instead of the enable password when it exists. 当密码存在时,替换生效密码
Enter enable secret:aaa 输入交换机密码
Would you like to configure a Telnet password? [yes]: 远程登录
Enter Telnet password:a 输入远程登录密码
Would you like to enable as a cluster command switch? [no]: 群,组;不设置为组命令交换机
The following configuration command script was created: 脚本,配置命令脚本已经生成
......
Press RETURN to get started.
swaen
password:aaa
swa#copy run start (保存配置信息)
swa#dir flash: (查看闪存中的文件)
再次进入对话方式:
swa#setup
2.路由器的初始化
路由器初始化与交换机类似,上电时按Ctrl+Break,进入ROM监控状态
router ;用户模式,按Ctrl+Break
rommonreset ;进入ROM监控状态,复位引导
(没有配置文件或采用寄存器设置跳过配置文件提示对话信息)
Continue with configuration dialog? [yes/no]:yes
At any point you may enter a question mark ? for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets [ ].
Basic management setup configures only enough connectivity
for management of the system, extended setup will ask you
to
原创力文档

文档评论(0)