Основные конфигурации маршрутизатора расширенные конфигурации маршрутизатора

Лабораторная работа №1 Основные конфигурации маршрутизатора

Enter configuration commands, one per line. EndwithCNTL/Z.

После входа в режим конфигурации нужно задать имя хоста маршрутизатора 1 командой hostname

password Assign the privileged level password

secret Assign the privileged level secret

Устанавливаем пароли: допускающийся пароль ccnalab, который будет файлом конфигурации маршрутизатора и допустимый пароль cisco, который будет зашифрован.

router1(config)#enable password 123

router1(config)#enable secret cisco

Необходимо присвоить ip адрес для маршрутизатора 1 интерфейс Ethernet0(Ip адрес и маска даны в таблице).

router1(config-if)#ip address 160.10.1.1 255.255.255.0

%LINK-3-UPDOWN: Interface Ethernet0, changed state to up

Необходимо присвоить ip адрес для маршрутизатора 1 интерфейс Serial0. Для выхода из режима конфигурирования можно с помощью команды ctrlz.

router1(config-if)#ip address 175.10.1.1 255.255.255.0

%LINK-3-UPDOWN: Interface Serial0, changed state to up

%LINK-3-UPDOWN: Interface Serial0, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down

%SYS-5-CONFIG_I: Configured from console by console

Ввести logout чтобы выйти в пользовательский режим

Router con0 is now available

Press RETURN to get started.

Нажимаем ЕNTER и попадаем в пользовательский режим и печатаем enable для привилегированного режима, вводим секретный пароль cisco.

Резюме всех интерфейсов:

router1#show ip interface brief

Interface IP-Address OK? Method Status Protocol

Serial0 175.10.1.1 YES unset down down

Serial1 unassigned YES unset administratively down down

Ethernet0 160.10.1.1 YES unset up up

Bri0 unassigned YES unset administratively down down

Bri0:1 unassigned YES unset administratively down down

Bri0:2 unassigned YES unset administratively down down

Детализация относительно каждого интерфейса:

Serial0 is down, line protocol is down

Internet address is 175.10.1.1/24

MTU 1500 bytes, BW 1544 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

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 administratively down, line protocol is down

MTU 1500 bytes, BW 1544 Kbit, DLY 1000 usec, rely 255/255, load 1/255

Отображение сохраненной конфигурации в NVRAM:

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

enable secret 5 $sdf$6978yhg$jnb76sd

spanning-tree vlan 1 priority

Источник

Лабораторная работа №2 Расширенные конфигурации маршрутизатора

Enter configuration commands, one per line. End with CNTL/Z.

Читайте также:  Разбираем роутер tp link

router1(config)#interface serial 0

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

%SYS-5-CONFIG_I: Configured from console by console

router1#show interfaces serial 0

Serial0 is up, line protocol is up

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

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». Это сообщение будет появляться каждый раз, когда вы будете запускать показ интерфейсов.

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#show interfaces serial 0

Serial0 is up, line protocol is up

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

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 маршрутизатору.

%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)#line vty 0 4

router2(config-line)#ip host router2 160.10.1.2

router2 (perm, OK) 0 IP 160.10.1.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 160.10.1.2, timeout is 2 seconds:

Читайте также:  Приложение настройка wifi роутера

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

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)

%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

Enter configuration commands, one per line. End with CNTL/Z.

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)#ip address 175.10.1.2 255.255.255.0

%SYS-5-CONFIG_I: Configured from console by console

Serial0 is up, line protocol is up

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

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

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

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

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

Output queue 0/40, 0 drops; input queue 0/75, 0 drops

Читайте также:  Вход роутер мтс zte

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

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)#clock rate 64000

%SYS-5-CONFIG_I: Configured from console by console

router3#show interfaces serial 0

Serial0 is up, line protocol is up

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

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

% Unrecognized host or address, or protocol not running.

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

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

Configuring from terminal, memory, or network [terminal]?

Enter configuration commands, one per line. End with CNTL/Z.

router3(config-if)#ip address 180.10.1.1 255.255.255.0

router3(config)#ip host router4 180.10.1.2

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

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]?

%LINK-3-UPDOWN: Interface Ethernet0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed state to up

Enter configuration commands, one per line. End with CNTL/Z.

router4(config)#enable password 123

router4(config)#enable secret cisco

router4(config-if)#ip address 195.10.1.1 255.255.255.0

router4(config-if)#ip address 180.10.1.1 255.255.255.0

router4(config)#interface serial 0

router4(config-if)#clock rate 64000

%SYS-5-CONFIG_I: Configured from console by console

Источник

Оцените статью
Adblock
detector