- •Изучение программы Packet Tracer 5.1. Изучение интерфейса командной строки Cisco ios.
- •Цель и задачи работы
- •Подготовка
- •Ход работы
- •Ответы на вопросы
- •Вопрос 4 к файлу 1.2.Pka. Какой интерфейс активен?
- •Вопрос 1 к файлу 1.2.Pka. Почему нужно использовать привилегированный режим exec для изучения команд группы show в Cisco ios, использованный в данной лабораторной работе?
- •Вопрос 2 к файлу 1.2.Pka. Сколько флэш-памяти имеет маршрутизатор?
- •Вопрос 3 к файлу 1.2.Pka. Какая из следующих сетей разбивается на подсети?
- •209.165.201.0 – Разбивается на подсети
Ход работы
Открыли файл 1.1.pka в симуляторе.
Воспользовались программой эмуляции терминала на клиентском ПК для подключения клиентского маршрутизатора Cisco 1841.
Командой ? вызвали краткую справку:
CustomerRouter>?
Exec commands:
<1-99> Session number to resume
connect Open a terminal connection (открыть терминал связи)
disconnect Disconnect an existing network connection (отключение существующего подключения к сети)
enable Turn on privileged commands (включение привилегированных команд)
exit Exit from the EXEC (выход из EXEC)
ipv6 ipv6
logout Exit from the EXEC (выход из EXEC)
ping Send echo messages (отправить сообщение)
resume Resume an active network connection (резюме активного подключения к сети)
show Show running system information (показать работу информационной системы)
ssh Open a secure shell client connection (открыть безопасное соединение с клиентской оболочкой)
telnet Open a telnet connection (открыть соединение telnet)
terminal Set terminal line parameters
traceroute Trace route to destination
Ввели e? для отображения команд, начинающихся с буквы "e":
CustomerRouter>e?
enable exit
Ввели en?:
CustomerRouter>en?
enable
Войдем в привилегированный командный режим пользователя посредством команды enable:
CustomerRouter>enable
CustomerRouter#
CustomerRouter#conf
CustomerRouter#configure?
configure
В приглашении маршрутизатора CustomerRouter# напечатали con, затем нажали клавишу ВВОД.
CustomerRouter#con
% Ambiguous command: "con" " указывает на то, что команда неполная
CustomerRouter#
В приглашении маршрутизатора ввели команду с ошибкой configure trminal, затем нажали клавишу ВВОД. Командная строка Cisco IOS не распознала команду(отметила ее знаком «^»:
CustomerRouter#configure trminal
^
% Invalid input detected at '^' marker.
При вводе правильной команды состояние командной строки было следующим:
CustomerRouter#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
CustomerRouter(config)#
С помощью сочетаний клавиш Ctrl+N, Ctrl+P, стрелок вверх и вниз,а также ползунка просмотрели историю введенных команд.
Изучили команды группы show:
ISPRouter>enable
ISPRouter#show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 209.165.201.1 - 000C.CFB0.1E01 ARPA FastEthernet0/0
ISPRouter#show flash
System flash directory:
File Length Name/status
1 13832032 c1841-ipbase-mz.123-14.T7.bin
[13832032 bytes used, 18682016 available, 32514048 total]
32768K bytes of processor board System flash (Read/Write)
ISPRouter#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
209.165.201.0/27 is subnetted, 1 subnets
C 209.165.201.0 is directly connected, FastEthernet0/0
ISPRouter# show interfaces
FastEthernet0/0 is up, line protocol is up (connected)
Hardware is Lance, address is 000c.cfb0.1e01 (bia 000c.cfb0.1e01)
Internet address is 209.165.201.1/27
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, rely 255/255, load 1/255
Encapsulation ARPA, loopback not set
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
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
FastEthernet0/1 is administratively down, line protocol is down (disabled)
Hardware is Lance, address is 000c.cfb0.1e02 (bia 000c.cfb0.1e02)
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, rely 255/255, load 1/255
Encapsulation ARPA, loopback not set
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
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, 2 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Serial0/1/0 is down, line protocol is down (disabled)
Hardware is HD64570
Internet address is 209.165.200.226/27
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, 0 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=down DSR=down DTR=down RTS=down CTS=down
Vlan1 is administratively down, line protocol is down
Hardware is CPU Interface, address is 0060.5ccb.ace0 (bia 0060.5ccb.ace0)
MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00
Last input 21:40:21, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); 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
1682 packets input, 530955 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicast)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
563859 packets output, 0 bytes, 0 underruns
0 output errors, 23 interface resets
0 output buffer failures, 0 output buffers swapped out
ISPRouter#show protocols
Global values:
Internet Protocol routing is enabled
FastEthernet0/0 is up, line protocol is up
Internet address is 209.165.201.1/27
FastEthernet0/1 is administratively down, line protocol is down
Serial0/1/0 is down, line protocol is down
Internet address is 209.165.200.226/27
Vlan1 is administratively down, line protocol is down
ISPRouter#show users
Line User Host(s) Idle Location
* 0 con 0 idle 00:00:00
Interface User Mode Idle Peer Address
ISPRouter#show users
Line User Host(s) Idle Location
* 0 con 0 idle 00:00:00
Interface User Mode Idle Peer Address
ISPRouter#show version
Cisco IOS Software, 1841 Software (C1841-IPBASE-M), Version 12.3(14)T7, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Mon 15-May-06 14:54 by pt_team
ROM: System Bootstrap, Version 12.3(8r)T8, RELEASE SOFTWARE (fc1)
System returned to ROM by power-on
System image file is "flash:c1841-ipbase-mz.123-14.T7.bin"
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Cisco 1841 (revision 5.0) with 114688K/16384K bytes of memory.
Processor board ID FTX0947Z18E
M860 processor: part number 0, mask 49
2 FastEthernet/IEEE 802.3 interface(s)
1 Low-speed serial(sync/async) network interface(s)
191K bytes of NVRAM.
31360K bytes of ATA CompactFlash (Read/Write)
Configuration register is 0x2102
ВЫВОД
Изучили программу симуляции сетей Packet Tracer. Научились работе с интерфейсом командной строки Cisco, более подробно рассмотрели команды группы show в Cisco IOS.
