一、实验目的

通过本实验,可以掌握以下技能:

  • 配置接口IP地址。
  • 配置路由器主机名。

二、设备需求

  • Cisco路由器1台,
  • 1台带有超级终端程序的PC机,以及Console电缆及转接器。

三、拓扑结构及接口IP配置

1. 设置主机名、描述、IP地址和始终速率

  1. 进入特权模式,使用hostname命令来修改主机名,使用console线连接路由器和pc机

拓扑结构为:

  1. 使用banner命令来设置一个网络管理员可以看到的标志区。

拓扑结构和拓扑结构1一样。

  1. 使用ip address命令可以为一个接口添加IP地址。

拓扑结构如下:

  1. 使用description命令为一个接口添加标识

拓扑结构及实验结果如下:

  1. 当模拟一个DCE的WAN链接时,可以为一个串行链路添加带宽和时钟速率

拓扑结构如下:

四、实验配置文档

步骤1配置命令:

Router>enable
Router#config
Router#configure term
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname Router-sjt
Router-sjt(config)#^Z
Router-sjt#
%SYS-5-CONFIG_I: Configured from console by console
Router-sjt#copy runn
Router-sjt#copy running-config st
Router-sjt#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router-sjt#

步骤2配置命令:

Router-sjt>enable
Router-sjt#conf
Router-sjt#configure te
Router-sjt#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router-sjt(config)#bann
Router-sjt(config)#banner mo
Router-sjt(config)#banner motd #
Enter TEXT message.  End with the character '#'.
WARNING
You are connected to $(hostname) on the cisco system ,incorporated network.
Unauthorized access and use of this network will be vigorously parosecuted.
#
Router-sjt(config)#^Z
Router-sjt#
%SYS-5-CONFIG_I: Configured from console by console
Router-sjt#exit
Router-sjt con0 is now available
Press RETURN to get started.
WARNING
You are connected to Router-sjt on the cisco system ,incorporated network.
Unauthorized access and use of this network will be vigorously parosecuted.
Router-sjt>

步骤3配置命令:

Router-sjt>en
Router-sjt>enable
Router-sjt#conf
Router-sjt#configure te
Router-sjt#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router-sjt(config)#inte
Router-sjt(config)#interface F
Router-sjt(config)#interface FastEthernet 0/0
Router-sjt(config-if)#ip add
Router-sjt(config-if)#ip address 192.168.75.1 255.255.255.0
Router-sjt(config-if)#no shut
Router-sjt(config-if)#no shutdown
Router-sjt(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router-sjt(config-if)#end
Router-sjt#
%SYS-5-CONFIG_I: Configured from console by console
Router-sjt#show int
Router-sjt#show interfaces Fa
Router-sjt#show interfaces FastEthernet 0/0
FastEthernet0/0 is up, line protocol is up (connected)Hardware is Lance, address is 0004.9ab2.4781 (bia 0004.9ab2.4781)Internet address is 192.168.75.1/24MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,reliability 255/255, txload 1/255, rxload 1/255Encapsulation ARPA, loopback not setFull-duplex, 100Mb/s, media type is RJ45ARP type: ARPA, ARP Timeout 04:00:00, Last input 00:00:08, output 00:00:05, output hang neverLast clearing of "show interface" counters neverInput queue: 0/75/0 (size/max/drops); Total output drops: 0Queueing strategy: fifoOutput queue :0/40 (size/max)5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec0 packets input, 0 bytes, 0 no bufferReceived 0 broadcasts, 0 runts, 0 giants, 0 throttles0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort0 input packets with dribble condition detected0 packets output, 0 bytes, 0 underruns0 output errors, 0 collisions, 1 interface resets0 babbles, 0 late collision, 0 deferred0 lost carrier, 0 no carrier0 output buffer failures, 0 output buffers swapped out
Router-sjt#

步骤4配置命令:

Router-sjt>ena
Router-sjt>enable
Router-sjt#confi
Router-sjt#configure ter
Router-sjt#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router-sjt(config)#int F
Router-sjt(config)#int FastEthernet 0/0
Router-sjt(config-if)#des
Router-sjt(config-if)#description 2015122075
Router-sjt(config-if)#exit
Router-sjt(config)#exit
Router-sjt#
%SYS-5-CONFIG_I: Configured from console by console
Router-sjt#show in
Router-sjt#show interfaces F
Router-sjt#show interfaces FastEthernet 0/0
FastEthernet0/0 is up, line protocol is up (connected)Hardware is Lance, address is 0004.9ab2.4781 (bia 0004.9ab2.4781)Description: 2015122075Internet address is 192.168.75.1/24MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,reliability 255/255, txload 1/255, rxload 1/255Encapsulation ARPA, loopback not setFull-duplex, 100Mb/s, media type is RJ45ARP type: ARPA, ARP Timeout 04:00:00, Last input 00:00:08, output 00:00:05, output hang neverLast clearing of "show interface" counters neverInput queue: 0/75/0 (size/max/drops); Total output drops: 0Queueing strategy: fifoOutput queue :0/40 (size/max)5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec0 packets input, 0 bytes, 0 no bufferReceived 0 broadcasts, 0 runts, 0 giants, 0 throttles0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort0 input packets with dribble condition detected0 packets output, 0 bytes, 0 underruns0 output errors, 0 collisions, 1 interface resets0 babbles, 0 late collision, 0 deferred0 lost carrier, 0 no carrier0 output buffer failures, 0 output buffers swapped out
Router-sjt#

步骤5配置命令:

Router9:
Router-sjt>en
Router-sjt>enable
Router-sjt#conf
Router-sjt#configure ter
Router-sjt#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router-sjt(config)#in
Router-sjt(config)#interface se
Router-sjt(config)#interface serial 2/0
Router-sjt(config-if)#ip ad
Router-sjt(config-if)#ip address 192.168.123.1 255.255.255.0
Router-sjt(config-if)#no shu
Router-sjt(config-if)#no shutdown
Router-sjt(config-if)#end
Router-sjt#
%SYS-5-CONFIG_I: Configured from console by console
Router-sjt#show interfaces serial 2/0
Serial2/0 is up, line protocol is up (connected)Hardware is HD64570Internet address is 192.168.123.1/24MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec,reliability 255/255, txload 1/255, rxload 1/255Encapsulation HDLC, loopback not set, keepalive set (10 sec)Last input never, output never, output hang neverLast clearing of "show interface" counters neverInput queue: 0/75/0 (size/max/drops); Total output drops: 0Queueing strategy: weighted fairOutput 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)Available Bandwidth 96 kilobits/sec5 minute input rate 18 bits/sec, 0 packets/sec5 minute output rate 18 bits/sec, 0 packets/sec15 packets input, 1920 bytes, 0 no bufferReceived 0 broadcasts, 0 runts, 0 giants, 0 throttles0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort15 packets output, 1920 bytes, 0 underruns0 output errors, 0 collisions, 1 interface resets0 output buffer failures, 0 output buffers swapped out0 carrier transitionsDCD=up  DSR=up  DTR=up  RTS=up  CTS=up
Router-sjt#Router10:
Router-sjt>ena
Router-sjt>enable
Router-sjt#conf
Router-sjt#configure ter
Router-sjt#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router-sjt(config)#inte
Router-sjt(config)#interface s
Router-sjt(config)#interface serial 2/0
Router-sjt(config-if)#ip ad
Router-sjt(config-if)#ip address 192.168.123.2 255.255.255.0
Router-sjt(config-if)#cl
Router-sjt(config-if)#band
Router-sjt(config-if)#bandwidth 64
Router-sjt(config-if)#cloc
Router-sjt(config-if)#clock ra
Router-sjt(config-if)#clock rate 64000
Router-sjt(config-if)#no shutd
Router-sjt(config-if)#no shutdown
Router-sjt(config-if)#
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
Router-sjt(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
end
Router-sjt#
%SYS-5-CONFIG_I: Configured from console by console
Router-sjt#show in
Router-sjt#show interfaces s
Router-sjt#show interfaces serial 2/0
Serial2/0 is up, line protocol is up (connected)Hardware is HD64570Internet address is 192.168.123.2/24MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec,reliability 255/255, txload 1/255, rxload 1/255Encapsulation HDLC, loopback not set, keepalive set (10 sec)Last input never, output never, output hang neverLast clearing of "show interface" counters neverInput queue: 0/75/0 (size/max/drops); Total output drops: 0Queueing strategy: weighted fairOutput 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)Available Bandwidth 48 kilobits/sec5 minute input rate 12 bits/sec, 0 packets/sec5 minute output rate 12 bits/sec, 0 packets/sec15 packets input, 1920 bytes, 0 no bufferReceived 0 broadcasts, 0 runts, 0 giants, 0 throttles0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort15 packets output, 1920 bytes, 0 underruns0 output errors, 0 collisions, 1 interface resets0 output buffer failures, 0 output buffers swapped out0 carrier transitionsDCD=up  DSR=up  DTR=up  RTS=up  CTS=up
Router-sjt#

五、验证实验结果

  1. hostname修改成功

  1. 设置标志区

  1. show interfaces FastEthernet 0/0后可以看到ip配置成功

  1. 可以看到接口的描述已经存在了

  1. 使用ip为192.168.123.1的Router9去ping Router10,可以成功ping通

六、实验总结

  1. 学会了使用pt模拟器
  2. 所有的配置操作都必须在特权模式下
  3. 对于路由器的接口需要按照实际情况来选择
  4. 如果能够相互ping通则说明配置成功,相互ping通会显示success和一堆!
  5. 连接线要看相应连接的装置和需要进行的操作,不然的话会出错

【网络设备配置与管理实验一】PT 设置主机名,IP 地址相关推荐

  1. 【网络设备配置与管理实验二】路由器口令的配置

    一.实验目的 通过本实验,可以掌握以下技能: 配置接口IP地址 配置路由器口令 验证路由口令的配置 二.设备需求 Cisco路由器3台,分别命名为RouterA.RouterB和RouterC.其中R ...

  2. 网络设备配置与管理,校园网规划

    网络设备配置与管理-综合实验 使用思科模拟器,进行模拟配置 需求与任务 1.某学校有两个校区,在B校区中有两个vlan,A校区有5个vlan,每个vlan的PC属于不同网段,合理规划vlan2.3.3 ...

  3. 网络设备配置与管理————11、配置主机名、时钟、IP地址

    主机名设置 命令:Router(config)#hostname   hostname 操作流程: 命令 作用 Router#configure terminal 进入全局配置模式 Router(co ...

  4. 计算机网络实验二交换机配置Cisco,思科实验1计算机和交换机的ip地址设置

    实验1计算机与交换机IP地址设置 1. 双击HostA, 输入用户名和入口令,键入"?"可以求得帮助. PCA login:root Password:linux 设置 IP : ...

  5. 计算机网络实验如何设置无线路由器密码,实验一熟悉路由器的配置模式,设置主机名,密码...

    实验一熟悉路由器的配置模式,设置主机名,密码 实验目的:熟悉路由器的各个配置模式,熟练hostname,enable,password,enable password ,secret,config t ...

  6. Hadoop入门(二)——VMware虚拟网络设置+Windows10的IP地址配置+CentOS7静态IP设置(图文详解步骤2021)

    Hadoop入门(二)--VMware虚拟网络设置+Windows10的IP地址配置+CentOS7静态IP设置(图文详解步骤2021) 之前在上一篇文章中讲述了 CentOS7下载+VM上安装(手动 ...

  7. Linux 管理联网 设置主机名( nmtui图形化 和 hostnamectl命令 )

    设置主机名 #   常用的有两种方式,一种是 nmtui 图形化界面的方式来设置, 一种是 hostnamectl 命令的方式来设置. nmtui 直接在命令行 输入 nmtui 便进入 图形化界面 ...

  8. svn设置 修改服务器,svn设置 修改服务器ip地址

    svn设置 修改服务器ip地址 内容精选 换一换 介绍单机场景和集群场景配置Ansible主机信息. 日志记录了系统的运行情况和功能流程的处理情况,是维护人员查看系统状态.进行问题定位的重要工具和手段 ...

  9. 如何设置局域网静态ip地址?

    一.什么是静态ip地址? 静态IP地址即固定IP地址,是长期固定分配给一台计算机使用的IP地址,一般只是作为特殊服务器的电脑才拥有静态IP地址.静态IP地址是手动设置的. 二.设置静态ip地址有什么好 ...

最新文章

  1. HTML5有哪些新特性、移除了哪些元素?
  2. UNION会自动删除重复项,union与union all的差异
  3. 34 多线程同步之Event
  4. hdu 2191 多重背包入门
  5. Dataset之CIFAR-10:CIFAR-10数据集简介、下载、使用方法之详细攻略
  6. 前端学习(3301):类组件的ref
  7. HTML5崛起之时,Java桌面时代就已经终结了
  8. linux升级openssl需要先卸载吗,linux下安装/升级openssl
  9. Javascript 中 Array.push 要比 Array.concat 快 945 倍
  10. 华东交通大学ACM-ICPC训练基地简介
  11. PHP 判断客户端请求是 Android 还是 IOS
  12. PADS Router 布线不显示粗细问题的解决
  13. 打开 .mpp文件的一种方法
  14. 红警conquer.mix文件
  15. Mininet系列实验(七):Mininet脚本实现控制交换机行为
  16. Parallels Desktop 安装 Windows10 提示“安全启动功能防止操作系统启动”怎么解决?
  17. 十分钟带汝入门大数据开发语言Scala
  18. 贪心算法之prim算法
  19. mysql+mybaits根据goup by的查询
  20. Linux常见子目录的作用和常用命令

热门文章

  1. 中国母婴用品行业发展趋势与投资研究咨询报告
  2. 探讨css中repaint和reflow
  3. [原]一屋不扫,何以扫天下
  4. 如何高效搭建影视及游戏工业化管线?
  5. Sandcastle方法生成c#.net帮助类帮助文档chm
  6. sap 内存参数调整
  7. GPT-4发布!史上最强大模型来了
  8. Rust机器学习之ndarray
  9. Java自学心得,从小白到高手的蜕变
  10. Socket函数的参数