Sending a packet with 127.0.0.2 source address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux