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

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

Press Enter to Start

Router>

Router>?

show Show running system information

enable Turn on privileged commands

exit Exit from the EXEC

help Description of the interactive help system

disable Turn off privileged commands

disconnect Disconnect an existing network connection

logout Exit from the EXEC

ping Send echo messages

terminal Set terminal line parameters

traceroute Trace route to destination

lock Lock the terminal

login Log in as a particular user

mrinfo Request neighbor and version information from a multicast router

mstat Show statistics after multiple multicast traceroutes

mtrace Trace reverse multicast path from destination to source

name-connection Name and existing network connection

pad Open a X.29 PAD connection

ppp Start IETF Point-to-Point Protocol (PPP)

rlogin Open an rlogin connection

slip Start a Serial-line IP (SLIP)

systat Display information about terminal lines

tunnel Open a tunnel connection

udptn Open an updtn connection

Набрать enableдля того, чтобы оказаться в привилегированном режиме. Знак (#) оповещает о том, что вы находитесь в привилегированном режиме.

Router>enable

Для выхода из этого режима disable, и снова в пользовательском режиме.

Router#disable

Router>enable

Команда configure terminal служит для входа в режим конфигурации терминала.

Router#configure terminal

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

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

Router(config)#hostname router1

router1(config)#enable ?

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)#interface Ethernet0

router1(config-if)#ip address 160.10.1.1 255.255.255.0

router1(config-if)#no shutdown

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

router1(config-if)#exit

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

router1(config)#int s0

router1(config-if)#ip address 175.10.1.1 255.255.255.0

router1(config-if)#no shutdown

%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

router1(config-if)#^Z

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

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

router1#logout

Router con0 is now available

Press RETURN to get started.

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

router1>

router1>enable

Enter password:

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

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

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

router1#showinterface

Serial0 is down, line protocol is down

Hardware is HD64570

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

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

Hardware is HD64570

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

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

router1#show running-config

Building configuration...

!

Version 12.1

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname router1

enable secret 5 $sdf$6978yhg$jnb76sd

enable password 123

!

!

!

ip subnet-zero

spanning-tree vlan 1 priority

!

!

!

!

!

!

!

router1#show startup-config

%% Non-volatile configuration memory is not present

Сохранение активной конфигурации к NVRAM:

router1#copy running-config startup-config

Destination filename [startup-config]?

Building configuration...

[OK]

Отображение содержимого NVRAM:

router1#show startup-config

Current configuration : 677 bytes

!

Version 12.1

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname router1

enable secret 5 $sdf$6978yhg$jnb76sd

enable password 123

!

!

!

ip subnet-zero

spanning-tree vlan 1 priority

!

!

!

!

!

!

!

Показ версии:

router1#show version

Boson Operating Simulation Software

BOSS (tm) C2500 Software (C2500-Enterprise), Version 12.1, RELEASE SOFTWARE

Copyright (c) 1998-2003 by Boson Software, Inc.

BOSS ROM: System Bootstrap, Version 12.2, RELEASE SOFTWARE

router1 Uptime Is 0 days, 0 hours, 11 minutes

System restarted by power-on

System image file is ""flash:c2500-enterprise.12.1.boss"", booted via flash

Boson 2500 (BOSS) processor (revision 5.0)

1 Ethernet/IEEE 802.3 interface(s)

2 Serial network interface(s)

3 ISDN Basic Rate interface(s)

32K bytes of simulated non-volatile configuration memory.

8192K bytes of simulated System flash (Read/Write)

Configuration register is 0X2102

Показ протоколов:

router1#show protocols

Global values:

Internet Protocol routing is enabled

Serial0 is down, line protocol is down

Internet address is 175.10.1.1/24

Serial1 is administratively down, line protocol is down

Ethernet0 is up, line protocol is up

Internet address is 160.10.1.1/24

Bri0 is administratively down, line protocol is down

Bri0:1 is administratively down, line protocol is down

Bri0:2 is administratively down, line protocol is down

router1#exit

Router con0 is now available

Press RETURN to get started

Аналогично для маршрутизатора 2

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