The 2.6 Linux kernel does not respond to multicast ICMP Echo requests by default. This is a setting in /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts Test it: # cat /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts 1 # Set it to 0 for ping replies: # echo “0″ > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts # cat /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts 0 #
Entries Tagged as 'networking'
Linux HOWTO Enable Miltucast Ping (ICMP) Replies (Echo)
April 21st, 2011 · No Comments
Tags: How Tos · linux · networking
Perl code to find an IP A in subnet B/C
June 5th, 2007 · No Comments
my $ip = ’1.2.3.4′; my $block1 = ’1.2.3.0/27′; if(checkip($ip, $block1)) { print STDOUT “$ip is in $block1\n”; } else { print STDOUT “$ip is not in $block1\n”; } sub checkip() { my $ip = shift; my $block = shift; @ip1 = split(/\./, $ip); $ip1 = $ip1[0] * 2**24 + $ip1[1] * 2**16 + $ip1[2] * [...]
Tags: How Tos · ip addressing · ipv4 · networking · perl · Programming