Pinging interfaces on same machine and subnet

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

 



Dear list,

I have a question about sending ping requests from one interface to
another on the same linux machine .

I have 3 virtual interfaces configured to be on the same subnet with
IPs / interfaces:
192.168.3.1 (interface is mesh0),
192.168.3.2 (interface is mesh1),
192.168.3.3 (interface is mesh2)

But when I try send a ping request from 3.1 to 3.2, its not responsive

root@joel-laptop:/usr/src# ping -I mesh0 192.168.3.2
PING 192.168.3.2 (192.168.3.2) from 192.168.3.1 mesh0: 56(84) bytes of data.
>From 192.168.3.2 icmp_seq=845 Destination Host Unreachable

Funny enough, I see this in tcp dump of mesh0 as soon as I run the ping command.

root@joel-laptop:/usr/src# tcpdump -i mesh0
listening on mesh0, link-type EN10MB (Ethernet), capture size 96 bytes
21:53:47.938527 ARP, Request who-has joel-laptop.local tell
joel-laptop.local, length 28

As the interface is one the same machine and subnet, I'd imagine the
machine would know the MAC address of 192.168.3.2 and wouldn't have to
send an ARP message.
Could anyone explain this behavior and also suggest some way in which
the pinging issue could be fixed?

Thanks!
Joel
--
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