Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Архив1 / docx56 / Лаба 3.docx
Скачиваний:
41
Добавлен:
01.08.2013
Размер:
81.91 Кб
Скачать

Лабораторная работа №16 ррр и снар

Роутер1:

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

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

%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

router1(config-line)#

router1(config-line)#^Z

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

На Маршрутизаторе 1 запускаем команду показа порта Serial0.

router1#show interfaces serial0

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 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#configure terminal

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

На маршрутизаторе 1 конфигурируем РРР формирование пакета для интерфейса S0.

router1(config)#interface serial0

router1(config-if)#encapsulation ppp

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

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

router1(config-if)#^Z

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

На маршрутизаторах 1 3 выводим показ интерфейса Serial0, чтобы проверить, сконфигурирован ли РРР. прозваниваем от Маршрутизатора 1 Маршрутизатор 3, это должно показать, что связь операционная.

router1#show interfaces serial0

Serial0 is up, line protocol is down

Hardware is HD64570

Description: Serial Link to Router3

Internet address is 175.10.1.1/24

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

Encapsulation PPP, loopback not set, keepalive set (10 sec)

LCP ACKRCVD

Closed: IPCP , CDPCP

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

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

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

router1#ping 175.10.1.2

Type escape sequence to abort.

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

!!!!!

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

router1#configure terminal

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

Конфигурируем РРР идентификацию для S0 через связь между маршрутизатором 1 и 3. Используем пароль cisco.

router1(config)#username router3 password cisco

router1(config)#interface serial0

router1(config-if)#ppp authentication chap

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

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

%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

Для того, чтобы убедиться в правильности работы данных команд, запускаем показ интерфейса serial0, а так же пингуем связь между 1 и 3 маршрутизаторами.

router1#show interface serial0

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 Kbit, DLY 1000 usec, rely 255/255, load 1/255

Encapsulation PPP, loopback not set, keepalive set (10 sec)

LCP Open

Open: IPCP, CDPCP

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#ping 175.10.1.2

Type escape sequence to abort.

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

!!!!!

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

Аналогично роутер 3:

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

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, 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

%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 down

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

router3(config-router)#

router3(config-router)#exit

router3(config)#interface serial0

router3(config-if)#encapsulation ppp

router3(config-if)#^Z

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

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

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

router3#show interfaces serial0

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 PPP, loopback not set, keepalive set (10 sec)

LCP Open

Open: IPCP, CDPCP

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

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

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

router3#configure terminal

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

router3(config)#username router1 password cisco

router3(config)#interface serial0

router3(config-if)#ppp authentication chap

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

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

router3(config-if)#^Z

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

router3#show interfaces serial0

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 PPP, loopback not set, keepalive set (10 sec)

LCP Open

Open: IPCP, CDPCP

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

Соседние файлы в папке docx56