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