cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
92670
Views
116
Helpful
12
Replies

Why this "ping" response?

news2010a
Level 3
Level 3

I am trying to ping an address from a 3560G switch but I am getting a strange response below. Is this imagine not capable of pinging? Strange that it is "IPservices"...

"flash:c3560-ipservices-mz.122-35.SE5/c3560-ipservices-mz.122-35.SE5.bin"

gw1#ping ip ?

WORD Ping destination address or hostname

<cr>

gw1#ping ip 192.168.10.33

% Unrecognized host or address, or protocol not running.

gw1#ping ip ?

WORD Ping destination address or hostname

<cr>

gw1#ping ip 192.168.10.65

% Unrecognized host or address, or protocol not running.

12 Replies 12

glen.grant
VIP Alumni
VIP Alumni

Just use ping 192.168.10.33 .

I did that too, but instead of returning "time out", it states that protocol may not be running. I never saw this before, just wondering.

switch1#show ip default-gateway

192.168.10.94

switch1#ping 192.168.10.94

% Unrecognized host or address, or protocol not running.

Never mind. Now I am getting the correct ping time out issue.

Thanks.

I did that too, but instead of returning "time out", it states that protocol may not be running. I never saw this before, just wondering.

switch1#show ip default-gateway

192.168.10.94

switch1#ping 192.168.10.94

% Unrecognized host or address, or protocol not running.

Hello Marlon,

I guess you have:

no ip routing

if you are using an ip default-gateway

but I agree that this shouldn't prevent the use of ping command

if you enable ip routing you need a default route instead of ip default-gateway:

ip routing

ip route 0.0.0.0 0.0.0.0 192.168.10.94

and you need an ip address in the same subnet as next-hop / ip default-gateway.

Hope to help

Giuseppe

Justin Brenton
Level 4
Level 4

Do you have an ip address assigned to the switch vlan that your pinging from?

If you do not have a ip address on your switch this will definitely be the issue as there is no returning route.

hth, please rate if so

Regards,

Justin

Thanks a lot Justin, your reply saved me :)

That was my issue.  Thank you!!  This helped.

Amit Sharma
Level 1
Level 1

Please use below command for configuring DNS.

Ip domain lookup

ip name server

ip domain name

ip OSPF name-lookup

I have also had a same problem when I setting up new Router.

and see below link

http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a00800c525f.shtml

Regards

Amit Sharma

Message was edited by: Amit Sharma

Hi there,

 

 

I had the same problem, when I was trying to ping using a hostname i got the error below. 

 

% Unrecognized host or address, or protocol not running.

 

 

After adding the 3 commands in the global configuration, I could ping normally.


ip domain lookup
ip domain name
ip name-server

 

Thanks!!!!

This fixed it for me. IP routing enabled with default route set correctly (on a /30 network). I could ping an IP, but not a hostname. I had name-server and domain-name set up, but not domain-lookup. That was a little odd, as I never use that on any other router.

beeomakina
Level 1
Level 1

If you default gateway is 192.168.10.1/24 or 192.168.10.254/24, the ip of switch is anyone between 192.168.10.2 to 192.168.10.253

 

example

config t
interface vlan 1
ip add 192.168.10.2 255.255.255.0
exit

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco