cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2187
Views
0
Helpful
1
Replies

Pinging to broadcast address

bapatsubodh
Level 1
Level 1

Hi,

Although there is no host present with broadcast address (192.168.1.255) ping responce is received how can we stop this?

Tried using ip directed broadcast but some how it's still responding to broadcast address.

Please share the experience to stop broadcast replies.

Thanks

Subodh

1 Reply 1

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Subodh,

if you want that ping to directed broadcast 192.168.1.255 is not sent out on a router interface you need to use

int type x/y

no ip directed-broadcast

you can check this setting using

sh ip interface typex/y

example:

sh ip int vlan160 | inc irected
  Directed broadcast forwarding is disable

sh run int vlan 160 | inc ip address
ip address 10.54.120.4 255.255.255.0

ping 10.54.120.255                

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.54.120.255, timeout is 2 seconds:

Reply to request 0 from 10.54.120.5, 4 ms
Reply to request 1 from 10.54.120.5, 1 ms
Reply to request 2 from 10.54.120.5, 1 ms
Reply to request 3 from 10.54.120.5, 1 ms
Reply to request 4 from 10.54.120.5, 1 ms

the answer comes from the companion switch (a pair of C6500 at distribution layer in a campus network)

however, this setting does not stop packets originated at router itself  as shown above

Hope to help

Giuseppe

Rate useful posts to help Haiti

Review Cisco Networking for a $25 gift card