昆明理工大学信息工程与自动化学院学生实验报告
( 2012 — 2013 学年第 二 学期 )
课程名称:计算机网络技术 开课实验室:自动化系 2013 年 5 月 9日
一、实验目的:
掌握路由器和交换机的基本配置方法;
掌握在CCNA下对路由器和交换机进行网络配置的基本步骤;
熟悉和掌握在CCNA下对路由器和交换机进行网络配置的常用命令;
二、实验报告内容:
Router Con0 is now available
Press RETURN to get started.
Router>
Router>enable
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname RouterB
RouterB(config)#interface s0
RouterB(config-if)#ip address 20.20.20.2 255.255.255.0
RouterB(config-if)#no shut
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up
%LINK-3-UPDOWN: Interface Serial0, changed state to up
RouterB(config-if)#clock rate?
rate
RouterB(config-if)#clock rate 64000
RouterB(config-if)#end
%SYS-5-CONFIG_I: Configured from console by console
RouterB#show interface s0
Serial0 is up, line protocol is up
Hardware is HD64570
Internet address is 20.20.20.2/24
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input 00:00:09, output 00:00:12, 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/1/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
1721 packets input, 106287 bytes, 0 no buffer
Received 1301 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
2195 packets output, 100497 bytes, 0 underruns
0 output errors, 0 collisions, 221 interface resets
0 output buffer failures, 0 output buffers swapped out
280 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up
RouterB#copy running-config startup-config
Building configuration...
[OK]
RouterB#show running-config
Building configuration...
Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname RouterB
!
!
!
!
interface Ethernet0
no ip address
!
interface Serial0
ip address 20.20.20.2 255.255.255.0
!
clockrate 64000
!
!
interface Serial1
no ip address
!
shutdown
!
--More--
Translating 'more' ...domain server (255.255.255.255)
% Unknown command or computer name, or unable to find computer address RouterB#
RouterB#RouterA Con0 is now available
Press RETURN to get started.
RouterA>enable
RouterA#config t
Enter configuration commands, one per line. End with CNTL/Z.
RouterA(config)#interface s0
RouterA(config-if)#ip address 20.20.20.1 255.255.255.0
RouterA(config-if)#no shut
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up %LINK-3-UPDOWN: Interface Serial0, changed state to up
RouterA(config-if)#end
%SYS-5-CONFIG_I: Configured from console by console
RouterA#copy running-config startup-config
Building configuration...
[OK]
RouterA#show interface s0
Serial0 is up, line protocol is up
Hardware is HD64570
Internet address is 20.20.20.1/24
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input 00:00:09, output 00:00:12, output hang never
Last clearing of "show interface" counters never
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/1/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
1721 packets input, 106287 bytes, 0 no buffer
Received 1301 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 2195 packets output, 100497 bytes, 0 underruns
0 output errors, 0 collisions, 221 interface resets
0 output buffer failures, 0 output buffers swapped out
280 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up
RouterA#ping 20.20.20.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.20.20.2, timeout is 2 seconds: .....
Success rate is 0 percent (0/5)
RouterA#
RouterA#show running-config
Building configuration...
Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname RouterA
!
!
!
!
interface Ethernet0
ip address 11.11.11.1 255.255.255.0
!
interface Serial0
ip address 20.20.20.1 255.255.255.0
!
!
interface Serial1
no ip address
!
shutdown
interface TokenRing0
no ip address
!
shutdown
RouterA#copy running-config startup-confi
RouterA#show running-config
Building configuration...
Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname RouterA
!
!
!
!
interface Ethernet0
ip address 11.11.11.1 255.255.255.0
!
interface Serial0
ip address 20.20.20.1 255.255.255.0
!
!
interface Serial1
no ip address
!
shutdown
!
interface TokenRing0
no ip address
!
shutdown
no ip classless
!
--More--
Translating 'more' ...domain server (255.255.255.255)
% Unknown command or computer name, or unable to find computer address RouterA#
RouterA#moreRouter2621 Con0 is now available
Press RETURN to get started.
Router2621>nable
Translating 'nable' ...domain server (255.255.255.255)
% Unknown command or computer name, or unable to find computer address Router2621>enable
Router2621#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router2621(config)#hostname Router2621
Router2621(config)#interface f0/0
Router2621(config-if)#ip address 11.11.11.2 255.255.255.0
Router2621(config-if)#no shut
Router2621(config-if)#end
%SYS-5-CONFIG_I: Configured from console by console
Router2621#copy running-config startup-config
Building configuration...
[OK]
Router2621#show running-config
Building configuration...
Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router2621
!
!
!
!
interface FastEthernet0/0
ip address 11.11.11.2 255.255.255.0
!
interface FastEthernet0/1
no ip address
shutdown
no ip classless
!
!
line con 0
line aux 0
line vty 0 4
end
Router2621#
昆明理工大学信息工程与自动化学院学生实验报告
( 2012 — 2013 学年第 二 学期 )
课程名称:计算机网络技术 开课实验室:自动化系 2013 年 5 月 9日
一、实验目的:
掌握路由器和交换机的基本配置方法;
掌握在CCNA下对路由器和交换机进行网络配置的基本步骤;
熟悉和掌握在CCNA下对路由器和交换机进行网络配置的常用命令;
二、实验报告内容:
Router Con0 is now available
Press RETURN to get started.
Router>
Router>enable
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname RouterB
RouterB(config)#interface s0
RouterB(config-if)#ip address 20.20.20.2 255.255.255.0
RouterB(config-if)#no shut
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up
%LINK-3-UPDOWN: Interface Serial0, changed state to up
RouterB(config-if)#clock rate?
rate
RouterB(config-if)#clock rate 64000
RouterB(config-if)#end
%SYS-5-CONFIG_I: Configured from console by console
RouterB#show interface s0
Serial0 is up, line protocol is up
Hardware is HD64570
Internet address is 20.20.20.2/24
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input 00:00:09, output 00:00:12, 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/1/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
1721 packets input, 106287 bytes, 0 no buffer
Received 1301 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
2195 packets output, 100497 bytes, 0 underruns
0 output errors, 0 collisions, 221 interface resets
0 output buffer failures, 0 output buffers swapped out
280 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up
RouterB#copy running-config startup-config
Building configuration...
[OK]
RouterB#show running-config
Building configuration...
Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname RouterB
!
!
!
!
interface Ethernet0
no ip address
!
interface Serial0
ip address 20.20.20.2 255.255.255.0
!
clockrate 64000
!
!
interface Serial1
no ip address
!
shutdown
!
--More--
Translating 'more' ...domain server (255.255.255.255)
% Unknown command or computer name, or unable to find computer address RouterB#
RouterB#RouterA Con0 is now available
Press RETURN to get started.
RouterA>enable
RouterA#config t
Enter configuration commands, one per line. End with CNTL/Z.
RouterA(config)#interface s0
RouterA(config-if)#ip address 20.20.20.1 255.255.255.0
RouterA(config-if)#no shut
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up %LINK-3-UPDOWN: Interface Serial0, changed state to up
RouterA(config-if)#end
%SYS-5-CONFIG_I: Configured from console by console
RouterA#copy running-config startup-config
Building configuration...
[OK]
RouterA#show interface s0
Serial0 is up, line protocol is up
Hardware is HD64570
Internet address is 20.20.20.1/24
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input 00:00:09, output 00:00:12, output hang never
Last clearing of "show interface" counters never
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/1/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
1721 packets input, 106287 bytes, 0 no buffer
Received 1301 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 2195 packets output, 100497 bytes, 0 underruns
0 output errors, 0 collisions, 221 interface resets
0 output buffer failures, 0 output buffers swapped out
280 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up
RouterA#ping 20.20.20.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.20.20.2, timeout is 2 seconds: .....
Success rate is 0 percent (0/5)
RouterA#
RouterA#show running-config
Building configuration...
Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname RouterA
!
!
!
!
interface Ethernet0
ip address 11.11.11.1 255.255.255.0
!
interface Serial0
ip address 20.20.20.1 255.255.255.0
!
!
interface Serial1
no ip address
!
shutdown
interface TokenRing0
no ip address
!
shutdown
RouterA#copy running-config startup-confi
RouterA#show running-config
Building configuration...
Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname RouterA
!
!
!
!
interface Ethernet0
ip address 11.11.11.1 255.255.255.0
!
interface Serial0
ip address 20.20.20.1 255.255.255.0
!
!
interface Serial1
no ip address
!
shutdown
!
interface TokenRing0
no ip address
!
shutdown
no ip classless
!
--More--
Translating 'more' ...domain server (255.255.255.255)
% Unknown command or computer name, or unable to find computer address RouterA#
RouterA#moreRouter2621 Con0 is now available
Press RETURN to get started.
Router2621>nable
Translating 'nable' ...domain server (255.255.255.255)
% Unknown command or computer name, or unable to find computer address Router2621>enable
Router2621#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router2621(config)#hostname Router2621
Router2621(config)#interface f0/0
Router2621(config-if)#ip address 11.11.11.2 255.255.255.0
Router2621(config-if)#no shut
Router2621(config-if)#end
%SYS-5-CONFIG_I: Configured from console by console
Router2621#copy running-config startup-config
Building configuration...
[OK]
Router2621#show running-config
Building configuration...
Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router2621
!
!
!
!
interface FastEthernet0/0
ip address 11.11.11.2 255.255.255.0
!
interface FastEthernet0/1
no ip address
shutdown
no ip classless
!
!
line con 0
line aux 0
line vty 0 4
end
Router2621#