05-19-2009 11:39 AM - edited 03-06-2019 05:48 AM
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.
05-19-2009 11:43 AM
Just use ping 192.168.10.33 .
05-19-2009 11:45 AM
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.
05-19-2009 11:50 AM
Never mind. Now I am getting the correct ping time out issue.
Thanks.
05-19-2009 11:50 AM
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.
05-19-2009 12:46 PM
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
11-10-2024 08:37 PM
...makes not a difference in the world? How did 5 find this helpful?
05-19-2009 11:58 AM
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
11-03-2014 08:54 AM
Thanks a lot Justin, your reply saved me :)
07-28-2020 09:34 AM
That was my issue. Thank you!! This helped.
04-28-2011 05:46 AM
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
11-14-2018 05:30 PM
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!!!!
07-02-2020 04:40 PM
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.
05-20-2015 03:26 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide