cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
564
Views
7
Helpful
3
Replies

ping reply issue.

syjeon
Level 1
Level 1

Can I ping to cisco device using network address?

Is it working?.

Let's see below.

interface fastethernet 3/3

ip address 1.1.1.1 255.255.255.0

no shutdown

I try to ping in my pc

c:\ping 1.1.1.0(network address for host ip 1.1.1.1)

but I received different ip address(it's specific interface ip address in cisco router)

what I want to know about this situation is that network address can responce icmp request? or disgard?

if I received a reply, why it's ip address is other ip addresds?

3 Replies 3

pkhatri
Level 11
Level 11

There is a good reason why you are seeing what you are. When you ping a network address, the router will convert the destination address to be 255.255.255.255 (the local broadcast). It does that even though you entered a specific network address. The reasoning behind this is that you are attempting to ping the whole network and the best way to do that is to send a local broadcast. Now, every device on that LAN segment will receive the ping addressed to 255.255.255.255 and respond to it. That is why you receive a reply from a different address to what you actually pinged. If you had more devices on the LAN, you would receive replies from all of them.

Hope that helps - pls rate the post if it does.

Paresh

My experience is that this explanation of the router forwarding the ping to the network address as a local broadcast is correct if the router is configured with ip directed-braodcast. If the router is configured with no ip directed-broadcast then the router will not forward the ping as a local broadcast. In either case I have experienced that the router will generate a response to the ping request.

ip directed-broadcast used to be enabled by default. Then Cisco changed the default and now the default is to disable directed-broadcast. The reason for the change is that directed-broadcast is used by some denial of service attacks.

HTH

Rick

HTH

Rick

Just a clarification to Rick's post. The 'ip directed-broadcast' capability only comes into play when the directed broadcast originates on a router other than the one that is directly connected to the destination network. For the router that *is* connected to the destination network, the 'ip directed-broadcast' command has no effect. Therefore, if you ping 10.1.1.0 or 10.1.1.255 from the router to which the network 10.1.1.0/24 is connected, it will exploded into a local broadcast, regardless of how you have configured the 'ip directed-broadcast' command.

Paresh.

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: