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:
Router Console
Router#config t
Router(config)#int gi0/1
Router(config-if)#ip adress 10.100.100.1. 255.255.255.0
Router(config-if)#ip ad^
% Invalid input detected at ‘^’ marker.
Router(config-if)#
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.
Router Console
Router#config t
Router(config)#int gi0/1
Router(config-if)#ip adress 10.100.100.1. 255.255.255.0
Router(config-if)#ip ad^
% Invalid input detected at ‘^’ marker.
Router(config-if)#ip address 10.100.100.1. 255.255.255.0
Router(config-if)#ip address 10.100.100.1^
% Invalid input detected at ‘^’ marker.
Router(config-if)#
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 ‘.’
Router Console
Router#config t
Router(config)#int gi0/1
Router(config-if)#ip adress 10.100.100.1. 255.255.255.0
Router(config-if)#ip ad^
% Invalid input detected at ‘^’ marker.
Router(config-if)#ip address 10.100.100.1. 255.255.255.0
Router(config-if)#ip address 10.100.100.1^
% Invalid input detected at ‘^’ marker.
Router(config-if)#ip address 10.100.100.1 255.255.255.0
Router(config-if)#
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:
Router Console
Router(config)#sh run
Router(config)#s^
% Invalid input detected at ‘^’ marker.
Router(config)#
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.
Router Console
Router(config)#sh run
Router(config)#s^
% Invalid input detected at ‘^’ marker.
Router(config)#do sh run
Building configuration…
Current confguration: 2440 bytes
!
version 15.5
no service timestamps log datetime msec
no service timestamps debug datetime msec
.
<output truncated>
.
Router(config)#
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.
Remember: The «show running-config» and «show startup-config» commands are only available in Privileged EXEC Mode — they are not available in User EXEC 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.
Switch Console
Switch(config)#interface gigabitethernet 0/27
Router(config)#interface gigabitethernet 0/2^
% Invalid input detected at ‘^’ marker.
Switch(config)#
In the following example, we are attempting to configure interface gigabitethernet 3/10 on a switch stack. The stack only consists of 2 physical switches — the range of valid interfaces for the stack is 0/1 — 0/26 and 1/1 — 1/26. Interface gigabitethernet 3/10 is not a valid interface for this switch stack.
Switch Console
Switch(config)#interface gigabitethernet 3/10
Router(config)#interface gigabitethernet ^
% Invalid input detected at ‘^’ marker.
Switch(config)#
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».
Switch Console
Switch(config)#interface gigabitethernet 0/1
Switch(config-if)#ip address 192.168.0.1 255.255.255.0
Router(config-if)#ip ^
% Invalid input detected at ‘^’ marker.
Switch(config-if)#
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:
Switch Console
Switch(config)#interface gigabitethernet 0/1
Switch(config-if)#ip address 192.168.0.1 255.255.255.0
Router(config-if)#ip ^
% Invalid input detected at ‘^’ marker.
Switch(config-if)#ip ?
. | … <output truncated> | |
arp | Configure ARP features | |
dhcp | Configure DHCP parameters for this interface | |
. | … <output truncated> |
Switch(config-if)#ip
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.
При работе в консоли Cisco CLI вы можете увидеть три типа сообщений об ошибках:
Ambiguous command
(Неоднозначная команда)Incomplete command
(Неполная команда)Invalid input
(Некорректный ввод)
Сообщение об ошибке |
Смысл |
Что делать? |
% Ambiguous Command: “ |
Введено недостаточно символов, чтобы устройство могло распознать команду. |
Повторно введите команду со знаком вопроса (
Будут отображены все возможные ключевые слова |
% Incomplete Command |
Для выполнения команды необходимо ввести дополнительные параметры. |
Повторно введите команду со знаком вопроса ( |
% Invalid input detected at |
Введенная команда содержит ошибку. Знак ^ отмечает место ошибки. |
Повторно введите команду, исправив ошибку в месте расположения файла |
Вас заинтересует / Intresting for you:
apv ответил в теме #9992 2 года 2 нед. назад
Спасибо за шпаргалку, Андрей! Повторение — мать учения))
Ваш аккаунт
Разделы
Автор | Сообщение |
---|---|
Заголовок сообщения: Не работают команды на DGS-1510
|
|
|
Всем привет, столкнулся с проблемой при настройке коммутатора — не работают консольные команды, пишет: «Invalid input detected at ^marker», хотя команду ввожу правильно. При вводе «?» пишет какие-то команды, но они все не подходят. Читал много сайтов с консольными командами именно для этого коммутатора и всех D-Link в целом, и ни одна из них не работает. Подскажите, в чем может быть проблема? Заранее спасибо:) |
Вернуться наверх |
|
AVSokolov |
Заголовок сообщения: Re: Не работают команды на DGS-1510
|
|
Devilish Ilya писал(а): Всем привет, столкнулся с проблемой при настройке коммутатора — не работают консольные команды, пишет: «Invalid input detected at ^marker», хотя команду ввожу правильно. При вводе «?» пишет какие-то команды, но они все не подходят. Читал много сайтов с консольными командами именно для этого коммутатора и всех D-Link в целом, и ни одна из них не работает. Подскажите, в чем может быть проблема? Заранее спасибо:) Добрый день. |
Вернуться наверх |
|
Devilish Ilya |
Заголовок сообщения: Re: Не работают команды на DGS-1510
|
|
AVSokolov писал(а): Devilish Ilya писал(а): Всем привет, столкнулся с проблемой при настройке коммутатора — не работают консольные команды, пишет: «Invalid input detected at ^marker», хотя команду ввожу правильно. При вводе «?» пишет какие-то команды, но они все не подходят. Читал много сайтов с консольными командами именно для этого коммутатора и всех D-Link в целом, и ни одна из них не работает. Подскажите, в чем может быть проблема? Заранее спасибо:) Добрый день. Добрый день, извините, что так долго не отвечал К слову, какие-то команды все-таки работают, например: команда reset system, show running-config startup-config |
Вернуться наверх |
|
AVSokolov |
Заголовок сообщения: Re: Не работают команды на DGS-1510
|
|
Добрый день. https://ftp.dlink.ru/pub/Switch/DGS-151 … _v1.70.pdf Devilish Ilya писал(а): AVSokolov писал(а): Devilish Ilya писал(а): Всем привет, столкнулся с проблемой при настройке коммутатора — не работают консольные команды, пишет: «Invalid input detected at ^marker», хотя команду ввожу правильно. При вводе «?» пишет какие-то команды, но они все не подходят. Читал много сайтов с консольными командами именно для этого коммутатора и всех D-Link в целом, и ни одна из них не работает. Подскажите, в чем может быть проблема? Заранее спасибо:) Добрый день. Добрый день, извините, что так долго не отвечал К слову, какие-то команды все-таки работают, например: команда reset system, show running-config startup-config |
Вернуться наверх |
|
Devilish Ilya |
Заголовок сообщения: Re: Не работают команды на DGS-1510
|
|
|
Вернуться наверх |
|
0 / 0 / 0 Регистрация: 21.09.2012 Сообщений: 5 |
|
1 |
|
21.09.2012, 18:41. Показов 24979. Ответов 14
Не могу побороть фильтрацию вывода в CLI show int работает Router# (^ точно под символом |) что я не так делаю? Помогите, люди добрые! Уже устал искать. версия PT 5.3.3.0019
0 |
Programming Эксперт 94731 / 64177 / 26122 Регистрация: 12.04.2006 Сообщений: 116,782 |
21.09.2012, 18:41 |
14 |
239 / 234 / 8 Регистрация: 05.05.2011 Сообщений: 1,553 |
|
21.09.2012, 19:28 |
2 |
CPT много не умеет. Это видимо в том числе. Добавлено через 2 минуты Кликните здесь для просмотра всего текста show interfaces | include line FastEthernet0 is up, line protocol is up
0 |
0 / 0 / 0 Регистрация: 21.09.2012 Сообщений: 5 |
|
27.09.2012, 16:50 [ТС] |
3 |
выдает Router(config)#no ip class Router(config)# в то же время в конфигурации есть строка а в реальной жизни это нужно — отключить? И для чего…
0 |
239 / 234 / 8 Регистрация: 05.05.2011 Сообщений: 1,553 |
|
27.09.2012, 16:56 |
4 |
выдает Router(config)#no ip class Router(config)# в то же время в конфигурации есть строка а в реальной жизни это нужно — отключить? И для чего…
Команда ip classless влияет на то каким образом маршрутизатор будет просматривать таблицу маршрутизации:
0 |
0 / 0 / 0 Регистрация: 21.09.2012 Сообщений: 5 |
|
27.09.2012, 17:05 [ТС] |
5 |
спасибо, а когда в жизни надо отключать? А то везде пишут, что классы — это устаревшее понятие
0 |
239 / 234 / 8 Регистрация: 05.05.2011 Сообщений: 1,553 |
|
27.09.2012, 17:10 |
6 |
В зависимости от ситуации я думаю. Да, так и есть — классы считаются устаревшими, т.к. сейчас редко кто их придерживается
0 |
0 / 0 / 0 Регистрация: 21.09.2012 Сообщений: 5 |
|
28.09.2012, 16:35 [ТС] |
7 |
Router(config-if)#no ip proxy-arp ^ под p Т.е. Proxy ARP отключить нельзя. Хотел посмотреть как работает без него, и — упппс.
0 |
5889 / 3347 / 1033 Регистрация: 03.11.2009 Сообщений: 9,975 |
|
28.09.2012, 18:22 |
8 |
Вот так: Миниатюры
0 |
239 / 234 / 8 Регистрация: 05.05.2011 Сообщений: 1,553 |
|
29.09.2012, 14:01 |
9 |
kvkvar, Мне кажется, что вы не поняли всей прелести консоли..) Если при нажатии «Tab», команда дописывается, то она существует=) Если нет, то вы её никак не используете.. так же можете стереть то, на что ругается Cisco и нажать «?» и вам выведется весь список команд, которые можно использовать)
0 |
0 / 0 / 0 Регистрация: 21.09.2012 Сообщений: 5 |
|
30.09.2012, 18:27 [ТС] |
10 |
kvkvar, Мне кажется, что вы не поняли всей прелести консоли..) Если при нажатии «Tab», команда дописывается, то она существует=) Если нет, то вы её никак не используете.. так же можете стереть то, на что ругается Cisco и нажать «?» и вам выведется весь список команд, которые можно использовать) спасибо, учту. Наверное здесь еще срабатывает, что я в ПТ работаю, а пытаюсь понять как оно в действительности. Добавлено через 5 минут
Вот так: спасибо. понял, что Так? Добавлено через 6 минут Очистить кеш получается только передергиванием порта. А как это в реальности?
0 |
239 / 234 / 8 Регистрация: 05.05.2011 Сообщений: 1,553 |
|
30.09.2012, 18:42 |
11 |
1.пример сделан не в ПТ, а где, если не секрет? Программа называется GNS3. Она является симулятором и работает с настоящими образами IOS)
0 |
5889 / 3347 / 1033 Регистрация: 03.11.2009 Сообщений: 9,975 |
|
30.09.2012, 19:09 |
12 |
Она является симулятором… CPT — симулятор, GNS — эмулятор
0 |
239 / 234 / 8 Регистрация: 05.05.2011 Сообщений: 1,553 |
|
30.09.2012, 19:31 |
13 |
CPT — симулятор, GNS — эмулятор Да, вы меня раньше уже поправляли так))) я так и хотел написать, то на сайте GNS — назвали его симулятором)
0 |
5889 / 3347 / 1033 Регистрация: 03.11.2009 Сообщений: 9,975 |
|
30.09.2012, 19:46 |
14 |
Да, вы меня раньше уже поправляли так))) я так и хотел написать, то на сайте GNS — назвали его симулятором) Не по теме:
0 |
239 / 234 / 8 Регистрация: 05.05.2011 Сообщений: 1,553 |
|
30.09.2012, 19:51 |
15 |
видимо это они и имеют ввиду
0 |
Text
ASA#conf t ASA(config)# interface ethernet 0/0 ASA(config-if)# ip ?
See what that gives you. If the option of address is not in the list then you will need to configure an SVI (or sub-interface if you will), which goes like this:
Text
ASA#conf t ASAconfig)#interface vlan x (where x is the vlan ID of an existing vlan) ASA(config-if)#ip address x.x.x.x x.x.x.x where the first 4 x's are the ip address and the second 4 x's are the subnet mask ASA(config-if)#end ASA#copy run start
Was this post helpful?
thumb_up
thumb_down