实验一:口令和主机名设置
一、实验目的:
1.了解交换机和路由器初始化的内容,掌握交换机和路由器初始化的方法。 2.掌握交换机和路由器的口令与主机名的设置方法。 3.掌握清除交换机和路由器口令的方法。
二、实验学时
2学时
三、实验内容:
1.交换机的初始化。 2.路由器的初始化。
3.用命令行设置交换机和路由器的口令与主机名。 4.清除交换机和路由器口令。
四、实验原理
1.根据实验的系统配置对话框进行内容操作。 2.根据下列的网络仿真软件使用说明操作软件。 仿真软件使用说明:
①命令要在一行内打完,窗体可以拉大;②该软件支持三级Switch网络,包含路由器的网络支持两级Switch;③要求vlan号<6,即vlan 1、vlan 2、vlan 3、...、vlan 6④设置交换机和路由器的主机名时,名称中不要含有空格;⑤F3键 清屏(为了方便而加) ⑥Ctrl+P 历史命令,建议使用方向键。⑦Ctrl+z 回根, 建议使用end命令;⑧Ctrl+Break 路由器进入ROM监控状态。⑨Ctrl+Break 交换机清除特权密码;⑩双击设备进入终端操作;⑾单击设备的接口可以实现画线;单击画有线的接口可以删除连线。⑿在指定的设备按下鼠标左键可以实现移动;⒀在指定的设备按下鼠标右键可以删除设备;⒁输入命令时,按Tab键,可以得到命令全称;⒂键入\可以得到当前状态下的命令帮助;⒃Aux 口这个版本不支持使用。
3.根据命令提示对实验内容实现命令操作(见软件的命令提示)。
五、实验步骤
1、交换机的初始化:
ROM监控模式,实际当中是上先按住交换机的mode键,再开机。
Xmodem file system is available.
flash_init boot
switch:reset loading IOS ...
############################################################ --- 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
Enter IP netmask:255.255.0.0
Would you like to enter a default gateway address? [yes]:
IP address of default gateway:
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. swa>en
password:aaa
swa#copy run start swa#dir flash: please flash_init
2、路由器初始化:
当前进入了ROM监控模式! rommon>reset loading IOS ...
######################################################################################################################## 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 configure each interface on the system
Would you like to enter basic management setup? [yes/no]: yes
Configuring global parameters: Enter host name [Router]:ra
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:aaa
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:aa
The virtual terminal password is used to protect access to the router over a network interface. Enter virtual terminal password:a
FastEthernet0/0 FastEthernet0/1 Serial0/0 Serial1/0
Enter interface name used to connect to the management network from the above interface summary:fastethernet0/0
Configuring interface FastEthernet0/0:
Use the 100 Base-TX (RJ-45) connector? [yes]:
Operate in full-duplex mode? [no]:
Configure IP on this interface? [yes]: IP address for this interface:10.1.1.1
Subnet mask for this interface [ ]:255.0.0.0 int 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]:
Configuring global parameters:
Enter host name [Router]:
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:
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:
The virtual terminal password is used to protect access to the router over a network interface. Enter virtual terminal password:
FastEthernet0/0 FastEthernet0/1 Serial0/0 Serial1/0
Enter interface name used to connect to the management network from the above interface summary:
Configuring interface FastEthernet0/0:
Use the 100 Base-TX (RJ-45) connector? [yes]: Operate in full-duplex mode? [no]:
Configure IP on this interface? [yes]: IP address for this interface:
Subnet mask for this interface [ ]:
[0] Go to the IOS command prompt without saving this config. [1] Return back to the setup without saving this config. [2] Save this configuration to nvram and exit.
Enter your selection [2]:
Press RETURN to get started!
ra>en
password:aaa ra#show run
Current configuration : 729 bytes !
version 12.2
service timestamps debug uptime service timestamps log uptime no service password-encryption !
hostname ra !
enable secret aaa$1$3Ws&^f enable password aa !
no ip routing ip subnet-zero ! ! ! ! !
interface FastEthernet0/0 ip address 10.1.1.1 255.0.0.0 !
no ip mroute-cache half-duplex shutdown !
interface FastEthernet0/1 ! !
no ip mroute-cache duplex auto shutdown !
interface Serial0/0 ! !
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库计算机网络教程实验报告在线全文阅读。
相关推荐: