Sending a packet with 127.0.0.2 source address
From: Anatoly Muliarski
Date: Sun Apr 26 2009 - 03:08:33 EST
Hi list,
I want a strange thing :)
I have a box with NATed eth0 interface. For some reason I need to send
packets from the box with source addresses from 127.0.0.0/8 net.
When I try ping -I 127.0.0.2 'somewhere' I get "sendmsg: Invalid argument".
But when I use: ifconfig lo:0 10.0.0.0/24 and ping -I 10.0.0.254
'somewhere' it works fine.
I understand that 127.0.0.0/8 is treated as a special net but is there
any way to send packets with source IP from this subnet?
--
Best regards
Anatoly Muliarski
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html