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

一、实验目的

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

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

二、设备需求

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

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

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

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

拓扑结构为:

【网络设备配置与管理实验一】PT设置主机名,IP地址_第1张图片
拓扑结构1
  1. 使用banner命令来设置一个网络管理员可以看到的标志区。

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

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

拓扑结构如下:

【网络设备配置与管理实验一】PT设置主机名,IP地址_第2张图片
拓扑结构2
【网络设备配置与管理实验一】PT设置主机名,IP地址_第3张图片
接口及IP地址
  1. 使用description命令为一个接口添加标识

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

【网络设备配置与管理实验一】PT设置主机名,IP地址_第4张图片
拓扑结构3及实验结果
  1. 当模拟一个DCE的WAN链接时,可以为一个串行链路添加带宽和时钟速率

拓扑结构如下:

【网络设备配置与管理实验一】PT设置主机名,IP地址_第5张图片
拓扑结构4

四、实验配置文档

步骤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/24
  MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Full-duplex, 100Mb/s, media type is RJ45
  ARP type: ARPA, ARP Timeout 04:00:00, 
  Last input 00:00:08, output 00:00:05, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0 (size/max/drops); Total output drops: 0
  Queueing strategy: fifo
  Output queue :0/40 (size/max)
  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 input packets with dribble condition detected
     0 packets output, 0 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier
     0 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: 2015122075
  Internet address is 192.168.75.1/24
  MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Full-duplex, 100Mb/s, media type is RJ45
  ARP type: ARPA, ARP Timeout 04:00:00, 
  Last input 00:00:08, output 00:00:05, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0 (size/max/drops); Total output drops: 0
  Queueing strategy: fifo
  Output queue :0/40 (size/max)
  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 input packets with dribble condition detected
     0 packets output, 0 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier
     0 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 HD64570
  Internet address is 192.168.123.1/24
  MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec,
     reliability 255/255, txload 1/255, rxload 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)
     Available Bandwidth 96 kilobits/sec
  5 minute input rate 18 bits/sec, 0 packets/sec
  5 minute output rate 18 bits/sec, 0 packets/sec
     15 packets input, 1920 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
     15 packets output, 1920 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 output buffer failures, 0 output buffers swapped out
     0 carrier transitions
     DCD=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 HD64570
  Internet address is 192.168.123.2/24
  MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec,
     reliability 255/255, txload 1/255, rxload 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)
     Available Bandwidth 48 kilobits/sec
  5 minute input rate 12 bits/sec, 0 packets/sec
  5 minute output rate 12 bits/sec, 0 packets/sec
     15 packets input, 1920 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
     15 packets output, 1920 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 output buffer failures, 0 output buffers swapped out
     0 carrier transitions
     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up
Router-sjt#

五、验证实验结果

  1. hostname修改成功
hostname Router-sjt
  1. 设置标志区
【网络设备配置与管理实验一】PT设置主机名,IP地址_第6张图片
banner
  1. show interfaces FastEthernet 0/0后可以看到ip配置成功
【网络设备配置与管理实验一】PT设置主机名,IP地址_第7张图片
show interfaces FastEthernet 0/0
  1. 可以看到接口的描述已经存在了
【网络设备配置与管理实验一】PT设置主机名,IP地址_第8张图片
Description
  1. 使用ip为192.168.123.1的Router9去ping Router10,可以成功ping通
【网络设备配置与管理实验一】PT设置主机名,IP地址_第9张图片
ping 192.168.123.2

六、实验总结

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

你可能感兴趣的:(【网络设备配置与管理实验一】PT设置主机名,IP地址)