- •Лабораторная работа №1 Основные конфигурации маршрутизатора
- •Лабораторная работа №2 Расширенные конфигурации маршрутизатора
- •Лабораторная работа №3 cdp
- •Лабораторная работа №4 telnet
- •Лабораторная работа №5 tftp
- •Лабораторная работа №6 rip
- •Лабораторная работа №7
- •Лабораторная работа №8. Eigrp
- •Лабораторная работа №9 ospf
- •Лабораторная работа №10 Каталист – конфигурация переключения
- •Лабораторная работа №11
- •Лабораторная работа №12 Конфигурация свитча
- •Лабораторная работа №13
- •VlaNs и Магистраль для 2950 свитча
- •Лабораторная работа №14 Списки доступа ip
- •Лабораторная работа №15 nat/pat
- •Лабораторная работа №16 ррр и снар
- •Лабораторная работа №17.
Лабораторная работа №2 Расширенные конфигурации маршрутизатора
Настройки 1:
Press Enter to Start
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed state to up
%LINK-3-UPDOWN: Interface Bri0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Bri0, changed state to up
Конфигурирование пароля пульта boson, ввод пароля перед получением доступа к пользовательскому режиму:
router1(config-if)#line console 0
router1(config-line)#login
login disabled on line 0 until password is set.
router1(config-line)#password boson
router1(config-line)#exit
Создание баннера, который говорит «Добро пожаловать в Маршрутизатор 1 – только уполномоченные пользователи».
router1(config)#banner motd
%Incomplete command.
router1(config)#banner motd #
Enter the text followed by the '#' to finish
Welcome to Router1-Autorized users only#
router1(config)#exit
Тест баннера и пароля:
router1#logout
Router con0 is now available
Press RETURN to get started.
Welcome to Router1-Autorized users only
Password:
Enter password:
router1>enable
Enter password:
Таблица истории на маршрутизаторе 1 ( последние 10 команд)
router1#show history
logout
enable
line vty 0 4
show history
router1#show interfaces serial 0
Serial0 is up, line protocol is down
Hardware is HD64570
Internet address is 175.10.1.1/24
MTU 1500 bytes, BW Kbit, DLY 1000 usec, rely 255/255, load 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of show interface counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 1000 bits/sec, 2 packets/sec
5 minute output rate 1000 bits/sec, 2 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, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
router1#
На маршрутизаторе 1 сделайте показ интерфейса Serial0. Обратите внимание на то, что пропускная способность маршрутизатора стандартно 1544кб. Вам необходимо установить пропускную способность 64кб.
router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router1(config)#interface serial 0
router1(config-if)#bandwidth 64
router1(config-if)#clock rate 64000
%LINK-3-UPDOWN: Interface Serial0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up
router1(config-if)#^Z
%SYS-5-CONFIG_I: Configured from console by console
router1#show interfaces serial 0
Serial0 is up, line protocol is up
Hardware is HD64570
Internet address is 175.10.1.1/24
MTU 1500 bytes, BW 64 Kbit, DLY 1000 usec, rely 255/255, load 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of show interface counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 1000 bits/sec, 2 packets/sec
5 minute output rate 1000 bits/sec, 2 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, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
На маршрутизаторе 1 добавьте описание, которое будет связано через порт Serial 0 и будет говорить «Serial Link To Router3». Это сообщение будет появляться каждый раз, когда вы будете запускать показ интерфейсов.
router1#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
router1(config)#interface serial 0
router1(config-if)#description serial link to router3
router1(config-if)#exit
router1(config)#exit
router1#show interfaces serial 0
Serial0 is up, line protocol is up
Hardware is HD64570
Description: serial link to router3
Internet address is 175.10.1.1/24
MTU 1500 bytes, BW 64 Kbit, DLY 1000 usec, rely 255/255, load 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of show interface counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 1000 bits/sec, 2 packets/sec
5 minute output rate 1000 bits/sec, 2 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, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Настройки 2:
Аналогично 1 маршрутизатору.
PressEntertoStart
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
%LINK-3-UPDOWN: Interface Bri0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Bri0, changed state to up
router2(config-if)#
router2(config-if)#exit
router2(config)#line vty 0 4
router2(config-line)#login
router2(config-line)#password cisco
router2(config-line)#ip host router2 160.10.1.2
router2(config)#exit
router2#show hosts
router2 (perm, OK) 0 IP 160.10.1.2
router2#ping router2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 160.10.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
router2#show flash
System flash directory:
File Length Name/status
1 5880916 c2600-js-mz.121-9.T.bin
[5880980 bytes used, 2507628 available, 8388608 total]
8192K bytes of processor board System flash (Read/Write)
router2#show history
show hosts
ping router2
show flash
show history
Настройки 3:
Press Enter to Start
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed state to up
%LINK-3-UPDOWN: Interface Serial0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up
Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname router3
router3(config)#enable password 123
router3(config)#enable secret cisco
router3(config)#interface ethernet 0
router3(config-if)#ip address 197.10.1.1 255.255.255.0
router3(config-if)#no shutdown
router3(config-if)#int s0
router3(config-if)#ip address 175.10.1.2 255.255.255.0
router3(config-if)#no shutdown
router3(config-if)#^Z
%SYS-5-CONFIG_I: Configured from console by console
router3#show interface
Serial0 is up, line protocol is up
Hardware is HD64570
Internet address is 175.10.1.2/24
MTU 1500 bytes, BW Kbit, DLY 1000 usec, rely 255/255, load 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 1000 bits/sec, 2 packets/sec
5 minute output rate 1000 bits/sec, 2 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, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Serial1 is down, line protocol is down
Hardware is HD64570
MTU 1500 bytes, BW Kbit, DLY 1000 usec, rely 255/255, load 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 1000 bits/sec, 2 packets/sec
5 minute output rate 1000 bits/sec, 2 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, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Ethernet0 is up, line protocol is up
Hardware is Lance, address is 000C.9620.4083 (bia 000C.9620.4083)
router3#show interfaces serial 0
Serial0 is up, line protocol is up
Hardware is HD64570
Internet address is 175.10.1.2/24
MTU 1500 bytes, BW Kbit, DLY 1000 usec, rely 255/255, load 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of show interface counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 1000 bits/sec, 2 packets/sec
5 minute output rate 1000 bits/sec, 2 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, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
router3#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router3(config)#interface serial 0
router3(config-if)#description serial link to router3
router3(config-if)#bandwidth 64
router3(config-if)#clock rate 64000
router3(config-if)#^Z
%SYS-5-CONFIG_I: Configured from console by console
router3#show interfaces serial 0
Serial0 is up, line protocol is up
Hardware is HD64570
Description: serial link to router3
Internet address is 175.10.1.2/24
MTU 1500 bytes, BW 64 Kbit, DLY 1000 usec, rely 255/255, load 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of show interface counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 1000 bits/sec, 2 packets/sec
5 minute output rate 1000 bits/sec, 2 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, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
router3#ping router1
% Unrecognized host or address, or protocol not running.
router3#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
router3(config)#ip host router1 160.10.1.1
router3(config)#exit
router3#ping router1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 160.10.1.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
router3#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
router3(config)#int s1
router3(config-if)#ip address 180.10.1.1 255.255.255.0
router3(config-if)#no shutdown
router3(config-if)#exit
router3(config)#ip host
%Incomplete command.
router3(config)#ip host router4 180.10.1.2
router3(config)#exit
router3#ping router1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 160.10.1.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
router3#ping router4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 180.10.1.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
router3#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Настройки 4:
Press Enter to Start
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed state to up
Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname router4
router4(config)#enable password 123
router4(config)#enable secret cisco
router4(config)#int ethernet0
router4(config-if)#ip address 195.10.1.1 255.255.255.0
router4(config-if)#no shutdown
router4(config-if)#exit
router4(config)#int s0
router4(config-if)#ip address 180.10.1.1 255.255.255.0
router4(config-if)#no shutdown
router4(config-if)#exit
router4(config)#interface serial 0
router4(config-if)#bandwidth 64
router4(config-if)#clock rate 64000
router4(config-if)#^Z
%SYS-5-CONFIG_I: Configured from console by console