2.4 实验3:使用安装模式配置路由器
安装(Setup)模式可以从特权执行模式下使用setup命令进入,或者当一台路由器NVRAM中没有配置文件时,开机自动进入安装模式的对话。
本节演示使用安装模式来配置路由器。
1.实验目的
通过本实验。读者可以掌握以下技能:
使用安装模式对路由器做基本的配置;
理解安装模式中所要求配置项目的含义;
观察安装模式下的路由器显示内容。
2.设备需求与线缆连接要求
本实验的设备与线缆连接要求和实验1完全相同,请参见实验1的有关图示和说明,在此不再赞述。
3.实验配置及监测结果
在给PC机和路由器加电后,开始进行实验。
本实验是在路由器NVRAM中没有配置文件的情况下进行的。如果VNRAM中已有配置文件存在。可在特权执行模式下发出erase nvram或whte erase命令清空NVRAM,再用reload命令重新启动路由器,然后进行实验。
实验过程见配置清单2-1。
配置清单2-1使用安装模式配置路由器(含说明)
---System Configuration Dialog---
Continue with configuration dialog? [yes/no]: y (键入y或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 configure each interface on the system
Would you like to enter basic management setup? [yes/no]: y (键入y或yes进入基本管理设置)
Configuring global parameters:
Enter host name [Router]:Router1 (给路由器命名为Router1)
The enable secret is a password used to protect access to
privileged EXEC and configuration modes. This password, after
entered, becomes encrypted in the configuration.
Enter enable secret: cisco (键入enable secret,即加密的口令)
The enable password is used when you do not specify an
enable secret password, with some older software versions, and
some boot images.
Enter enable password: cisco1
(键入 enable password,当enable secret和enable password同时配置时,只有enable secret生效)
The virtual termina1 password is used to protect
access to the router over a network interface.
Enter virtual termina1 password: cisco2 (键入vty password用于对telnet访问进行认证)
Configure SNMP Network Management? [no]: (不配置SNMP )
Current interface summary (以下显示当前接口的汇总信息)
Interface IP-Address OK? Method Status Protocol
Ethemet0 unassigned YES unset administratively down down
Ethernet1 unassigned YES unset administratively down down
Serial0 unassigned YES unset administratively down down
Serial1 unassigned YES unset administratively down down
Enter interface name used to connect to the
management network from the above interface summary: ethernet0 (键入作为管理接口的接口名)
Configuring interface EthemetO:
Config