invalid input detected at marker cisco что это

Cisco CLI Error: % Invalid input detected at ‘^’ marker

In what CLI Mode does this error appear?

This message is not restricted to a particular CLI Mode or to a particular CLI command or task.

What does this error mean?

This error indicates that we have made an error while typing in a CLI command. This error message is preceded by a line with the single character ‘^’. There may be multiple errors in a line that we have typed in at the CLI. The ‘^’ indicates the first instance of an error in the line typed in.

For example, suppose we were attempting to configure an IP address on a router interface. We attempt to configure it as follows:

Looking at the command that we have typed in, we can see that we have misspelled the word «address». The ‘^’ under the letter ‘r’ in the word «address» informs us that there is an error at the letter ‘r’.

We can correct the error and type in the command again.

We have corrected the error in the word «address» but we notice that there is another error message. This time we notice that the ip address that we are trying to configure has an extra ‘.’ at the end. The ‘^’ indicates that there is an error at this location in the line that we have typed in.

We will re-enter the command without the extra ‘.’

This time the command is accepted with no warnings or error messages.

Point to note: There may be multiple errors in a line, but the ‘^’ character appears underneath the first error that is found. All of the errors are not highlighted at the same time.

Читайте также:  что делать в пушкинских горах

A common occurence of this error with the «show» command

Take a look at the following example:

We are attempting to run the «show running-config» command. Why do we see an error message instead of the desired output?

Upon further inspection, we realize that we are currently in Global Configuration Mode (as indicated by the word ‘config’ in the CLI prompt). Most of the «show» commands are available in Privileged EXEC Mode (although a large number of them are also available in User EXEC Mode).

In this instance, if we want to see the running configration, we would need to either precede the command with the word «do», or exit back into Privileged EXEC Mode and run the «show run» command.

If we run into an «Invalid input detected at ‘^’ marker» error while attempting to run a «show» command we should always check to confirm that we are not in a Configuration Mode.

Other common occurences of this error

Interface command

If you run into this error while trying to enter the Interface Specific Configuraiton Mode using the interface command, it is possible that the interface label has been incorrectly typed in.

In the following example, the switch only has 26 gigabitethernet interfaces (0/1 to 0/26). We are attempting to configure interface gi 0/27. The ‘^’ character indicates that 0/27 is not a valid interface label.

Ip address command

If you run into this error while trying to configure an IP address on an interface, make a note of where the ‘^’ character appears. In the following example, the ‘^’ character appears at the beginning of the word «address».

Читайте также:  что делать если call of duty black ops просит стим

The position of the ‘^’ character seems to indicate that the word address is not a valid keyword or parameter in the current command context. We confirm this by entering ‘?’ after the first word of the command as follows:

. .
arp Configure ARP features
dhcp Configure DHCP parameters for this interface
. .

The context sensitive help indicates that the ip address command is not a valid command in the current context. What could be the reason for this? The most likely reason is that we are on a Layer 2 switch attempting to configure an IP address on a Layer 2 interface. IP addresses can only be configured on Layer 3 interfaces.

Источник

Разное

Регистрация (вход) в маршрутизатор

После вывода сообщения о статусе интерфейсов и нажатия клавиши Return появится приглашение Router>. Это приглашение пользовательского режима (user mode), которое часто используется для просмотра статистики, хотя из него можно перейти в привилегированный режим (privileged mode). В пользовательском режиме допускается только просмотр, а изменение конфигурации маршрутизатора Cisco выполняется в привилегированном режиме, переход в который выполняется командой enable.

Router>

Router>enable

Router#

Router#disable

Router>

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

Router>logout

Router con0 is now available

( маршрутизатор con0 доступен )

Press RETURN to get started.

(для начала работы нажмите RETURN)

Либо разрешен ввод logout или exit в привилегированном режиме для вывода приглашения на выход.

Router>en

Router#logout

Router con0 is now available

Press RETURN to get started.

Обзор режимов маршрутизатора

Для настройки из интерфейса CLI необходимо глобально изменить состояние маршрутизатора, указав команду config terminal (краткая форма:config t), которая переводит устройство в режим глобального конфигурирования и изменяет исполняемую конфигурацию running-config. Можно ввести config в приглашении привилегированного режима, а затем нажать Return для возвращения режима терминала по умолчанию.

Читайте также:  что такое государственный бюджет страны

Router#config

Configuring from terminal, memory, or network [terminal]?return (настройка с терминала, из памяти или по сети)

Enter configuration commands, one per line. End with CNTL/Z. (введите команды конфигурирования, по одной в строке. Закончите ввод клавиатурной комбинацией CNTL/Z)

Router(config)#

После этого можно внести изменения, которые действуют на маршрутизатор в целом. Для изменения конфигурации running-config, которая является текущей исполняемой конфигурацией в динамической оперативной памяти DRAM (Dynamic RAM) следует использовать команду config terminal (config t). Для изменения конфигурации из NVRAM (конфигурации запуска startup-config) следует ввести команду config memory (config mem). Если необходимо изменить конфигурацию маршрутизатора, хранящуюся на хосте TFTP, применяйте команду config network (config net). Однако для точного и реального изменения конфигурации маршрутизатора, ее следует поместить в оперативную память RAM. Т.е. ввод config mem или config net приводит к замене текущей исполняемой конфигурации running-config на конфигурацию, хранящуюся в памяти NVRAM или на хосте TFTP.

Приглашения интерфейса CLI

Важно научиться различать приглашения во время конфигурации маршрутизатора, чтобы точно знать текущий конфигурационный режим. В следующем разделе книги мы рассмотрим приглашения, выводимые маршрутизатором Cisco. Рекомендуется обращать внимание на выведенное приглашение перед любым изменением конфигурации маршрутизатора. Мы не стремимся сразу показать все доступные команды, но хотим на их примерах продемонстрировать различные приглашения, которые будут появляться и в других листингах.

Интерфейсы

Для изменения в интерфейсе служит команда interface в режиме глобального конфигурирования:

Источник

Сказочный портал