思科模拟 实验十五:路由器的基本配置命令

一、实验目的

掌握路由器的基本配置命令

二、实验描述

主要实验内容如下:

1.配置路由器的名字

2.配置路由器的enable、secret、console、vty的密码

3.接口IP地址的配置及时钟

 三、实验拓扑

四、实验设备            

1.R2811   1台        

2.PC     1台       

五、实验步骤

第1步:配置主机名

Router>enable

Router#config terminal

Route(config)#hostname R1

第2步:配置路由器的密码

R1(config)#enable password jsj1

R1(config)#enalbe secret jsj2

R1(config)#line console 0

R1(config-line)#password jsj3

R1(config-line)#login

R1(config-line)#exit

R1(config)#line vty 0 4

R1(config-line)#password jsj4

R1(config-line)#login

R1(config-line)#exit

R1(config)#service password-encryption

第3步:配置banner信息

R1(config)#banner motd #

Enter TEXT message.  End with the character '#'.

Welcome to jsj414 R1 -Authorized users only.#

验证配置:

Press RETURN to get started!

Welcome to jsj414 R1 -Authorized users only.

User Access Verification

Password:

第4步:配置接口IP,接口描述及串口时钟

R1(config)#int s1/0

R1(config-if)#ip add 11.1.1.1 255.255.255.0

R1(config-if)#description s1/0 is DCE

R1(config-if)#clock rate 64000

R1(config-if)#no shutdown

验证配置:

R1#show interfaces serial 1/0

Serial1/0 is down, line protocol is down (disabled)

  Hardware is HD64570

  Description: s1/0 is DCE

  Internet address is 11.1.1.1/24

  MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec, rely 255/255, load 1/255

  Encapsulation HDLC, loopback not set, keepalive set (10 sec)

  Last input never, output never, output hang never

  Last clearing of "show interface" counters never

  Input queue: 0/75/0 (size/max/drops); Total output drops: 0

  Queueing strategy: weighted fair

  Output queue: 0/1000/64/0 (size/max total/threshold/drops)

     Conversations  0/0/256 (active/max active/max total)

     Reserved Conversations 0/0 (allocated/max allocated)

  5 minute input rate 0 bits/sec, 0 packets/sec

  5 minute output rate 0 bits/sec, 0 packets/sec

     0 packets input, 0 bytes, 0 no buffer

     Received 0 broadcasts, 0 runts, 0 giants, 0 throttles

     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort

     0 packets output, 0 bytes, 0 underruns

     0 output errors, 0 collisions, 2 interface resets

     0 output buffer failures, 0 output buffers swapped out

     0 carrier transitions

     DCD=down  DSR=down  DTR=down  RTS=down  CTS=down

第5步:配置一个环回接口

R1(config)#int loopback 0

R1(config-if)#ip add 11.2.2.2 255.255.255.0

第6步:保存配置文件

R1#copy running-config startup-config (或R1#write memory)

Destination filename [startup-config]?

Building configuration...

[OK]

第7步:常用的show命令

R1#show ip interface brief

R1#show interfaces

R1#show running-config

R1#show startup-config

R1#show veision


  • 0
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
实验路由器与交换机基础实验 一.实验目的 掌握思科模拟软件Packet Tracer5.0的使用 掌握中低端路由器、交换机的基本配置 掌握路由器、交换机的常用命令 二.实验内容 <一>Packet Tracer 5.0 的使用 1.创建有三台PC和一个集线器的逻辑网络 2.配置IP 在PC选项卡中找到config可以设置PC的各种属性,可以配置IP,将IP地址输入选项卡中 ,子网掩码会自动 <二>路由器、交换机的基本配置 (1) 修改名称 Router(config)# hostname R1 //R1为定义的名称 R1(config)# (2) 配置控制台密码 R1(config)# line console 0 R1(config-line)# password cisco //配置进入控制台密码 R1(config-line)# login R1(config-line)# exit (3) 配置路由器或交换机,使得控制台端口不会终止你的连接 R1(config-line)# exec-timeout 0 R1(config-line)# exit (4) 查看当前配置 设备是否正常运行,决定于当前的配置是否正确,所以在设备配置过程中和故障 排除中,查看当前配置是必不可少的操作之一。 R1# show running-config (5) 查看端口状态 R1# show ip interface brief (6) 保存当前设备配置 R1#write (7)删除配置 R1# erase startup-config (8)重启交换机 清除配置信息时,需要重启网络设备,其实在某些时候为了让某些修改后的配置 信息生效,我们也需要重启社保。 R1# reload (9)显示系统软件版本 Router> show versi 三.实验总结 通过使用软件进行动手实践,学会了如何配置交换机及路由器,以及对普通模式,特殊 模式,全局模式,端口模式的熟悉掌握。同时通过认真阅读实验一课件的内容,结合课 本知识,理解了什么是ARP协议,什么是ICMP协议,以及它们的作用和工作原理。ARP协 议下,源主机与目的主机如何第一次完成信息传递。 ----------------------- 实验一-路由器与交换机基础实验实验报告全文共2页,当前为第1页。 实验一-路由器与交换机基础实验实验报告全文共2页,当前为第2页。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

nulidewo10

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值