I created 3 virtual interfaces with different MAC addresses all linked to the same physical interface. I see that they can successfully arp for the gateway (gw) and they can ping (the request is coming in the packet capture in Wireshark). However the ping utility does not count the responses. Does anyone knows the issue? I'm running Ubuntu 14.04 in a VMware.ip link inforoot@ubuntu:~# ip link sh1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:002: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000    link/ether 00:0c:29:bc:fc:8b brd ff:ff:ff:ff:ff:ffip address inforoot@ubuntu:~# ip addr sh1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00    inet 127.0.0.1/8 scope host lo       valid_lft forever preferred_lft forever    inet6 ::1/128 scope host        valid_lft forever preferred_lft forever2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000    link/ether 00:0c:29:bc:fc:8b brd ff:ff:ff:ff:ff:ff    inet6 fe80::20c:29ff:febc:fc8b/64 scope link        valid_lft forever preferred_lft foreverip route inforoot@ubuntu:~# ip route shadd virtual interfacesroot@ubuntu:~# ip link add link eth0 eth0.1 addr 00:00:00:00:00:11 type macvlanroot@ubuntu:~# ip link add link eth0 eth0.2 addr 00:00:00:00:00:22 type macvlanroot@ubuntu:~# ip link add link eth0 eth0.3 addr 00:00:00:00:00:33 type macvlanconfirm they were addedroot@ubuntu:~# ip -4 link sh1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:002: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000    link/ether 00:0c:29:bc:fc:8b brd ff:ff:ff:ff:ff:ff18: eth0.1@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default     link/ether 00:00:00:00:00:11 brd ff:ff:ff:ff:ff:ff19: eth0.2@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default     link/ether 00:00:00:00:00:22 brd ff:ff:ff:ff:ff:ff20: eth0.3@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default     link/ether 00:00:00:00:00:33 brd ff:ff:ff:ff:ff:ffip IPv4 address & route inforoot@ubuntu:~# ip -4 addr sh1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default     inet 127.0.0.1/8 scope host lo       valid_lft forever preferred_lft foreverroot@ubuntu:~# ip -4 route shget DHCP IP for eth0.1root@ubuntu:~# dhclient -v eth0.1Internet Systems Consortium DHCP Client 4.2.4Copyright 2004-2012 Internet Systems Consortium.All rights reserved.For info, please visit https://www.isc.org/software/dhcp/Listening on LPF/eth0.1/00:00:00:00:00:11Sending on   LPF/eth0.1/00:00:00:00:00:11Sending on   Socket/fallbackDHCPDISCOVER on eth0.1 to 255.255.255.255 port 67 interval 3 (xid=0x568eac05)DHCPREQUEST of 192.168.1.145 on eth0.1 to 255.255.255.255 port 67 (xid=0x568eac05)DHCPOFFER of 192.168.1.145 from 192.168.1.254DHCPACK of 192.168.1.145 from 192.168.1.254bound to 192.168.1.145 -- renewal in 1473 seconds.get DHCP IP for eth0.2root@ubuntu:~# dhclient -v eth0.2Internet Systems Consortium DHCP Client 4.2.4Copyright 2004-2012 Internet Systems Consortium.All rights reserved.For info, please visit https://www.isc.org/software/dhcp/Listening on LPF/eth0.2/00:00:00:00:00:22Sending on   LPF/eth0.2/00:00:00:00:00:22Sending on   Socket/fallbackDHCPDISCOVER on eth0.2 to 255.255.255.255 port 67 interval 3 (xid=0x21e3114e)DHCPREQUEST of 192.168.1.146 on eth0.2 to 255.255.255.255 port 67 (xid=0x21e3114e)DHCPOFFER of 192.168.1.146 from 192.168.1.254DHCPACK of 192.168.1.146 from 192.168.1.254bound to 192.168.1.146 -- renewal in 1366 seconds.get DHCP ip for eth0.3root@ubuntu:~# dhclient -v eth0.3Internet Systems Consortium DHCP Client 4.2.4Copyright 2004-2012 Internet Systems Consortium.All rights reserved.For info, please visit https://www.isc.org/software/dhcp/Listening on LPF/eth0.3/00:00:00:00:00:33Sending on   LPF/eth0.3/00:00:00:00:00:33Sending on   Socket/fallbackDHCPDISCOVER on eth0.3 to 255.255.255.255 port 67 interval 3 (xid=0x11dc5f03)DHCPREQUEST of 192.168.1.147 on eth0.3 to 255.255.255.255 port 67 (xid=0x11dc5f03)DHCPOFFER of 192.168.1.147 from 192.168.1.254DHCPACK of 192.168.1.147 from 192.168.1.254bound to 192.168.1.147 -- renewal in 1657 seconds.ip link info for interfacesroot@ubuntu:~# ip -4 link sh1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:002: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000    link/ether 00:0c:29:bc:fc:8b brd ff:ff:ff:ff:ff:ff18: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default     link/ether 00:00:00:00:00:11 brd ff:ff:ff:ff:ff:ff19: eth0.2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default     link/ether 00:00:00:00:00:22 brd ff:ff:ff:ff:ff:ff20: eth0.3@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default     link/ether 00:00:00:00:00:33 brd ff:ff:ff:ff:ff:ffip address info for interfacesroot@ubuntu:~# ip -4 addr sh1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default     inet 127.0.0.1/8 scope host lo       valid_lft forever preferred_lft forever18: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default     inet 192.168.1.145/24 brd 192.168.1.255 scope global eth0.1       valid_lft forever preferred_lft forever19: eth0.2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default     inet 192.168.1.146/24 brd 192.168.1.255 scope global eth0.2       valid_lft forever preferred_lft forever20: eth0.3@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default     inet 192.168.1.147/24 brd 192.168.1.255 scope global eth0.3       valid_lft forever preferred_lft foreverip route inforoot@ubuntu:~# ip -4 route shdefault via 192.168.1.254 dev eth0.1 192.168.1.0/24 dev eth0.1  proto kernel  scope link  src 192.168.1.145 192.168.1.0/24 dev eth0.2  proto kernel  scope link  src 192.168.1.146 192.168.1.0/24 dev eth0.3  proto kernel  scope link  src 192.168.1.147 arpping test eth0.1root@ubuntu:~# arping -c 5 -I eth0.1 192.168.1.254ARPING 192.168.1.254 from 192.168.1.145 eth0.1Unicast reply from 192.168.1.254 [58:98:35:57:a0:70]  6.936msUnicast reply from 192.168.1.254 [58:98:35:57:a0:70]  2.986msUnicast reply from 192.168.1.254 [58:98:35:57:a0:70]  0.654msUnicast reply from 192.168.1.254 [58:98:35:57:a0:70]  5.137msUnicast reply from 192.168.1.254 [58:98:35:57:a0:70]  2.426msSent 5 probes (1 broadcast(s))Received 5 response(s)arpping test eth0.2root@ubuntu:~# arping -c 5 -I eth0.2 192.168.1.254ARPING 192.168.1.254 from 192.168.1.146 eth0.2Unicast reply from 192.168.1.254 [58:98:35:57:a0:70]  5.665msUnicast reply from 192.168.1.254 [58:98:35:57:a0:70]  3.753msUnicast reply from 192.168.1.254 [58:98:35:57:a0:70]  16.500msUnicast reply from 192.168.1.254 [58:98:35:57:a0:70]  3.287msUnicast reply from 192.168.1.254 [58:98:35:57:a0:70]  32.438msSent 5 probes (1 broadcast(s))Received 5 response(s)arpping test eth0.3root@ubuntu:~# arping -c 5 -I eth0.3 192.168.1.254ARPING 192.168.1.254 from 192.168.1.147 eth0.3Unicast reply from 192.168.1.254 [58:98:35:57:a0:70]  4.422msUnicast reply from 192.168.1.254 [58:98:35:57:a0:70]  2.429msUnicast reply from 192.168.1.254 [58:98:35:57:a0:70]  2.321msUnicast reply from 192.168.1.254 [58:98:35:57:a0:70]  40.423msUnicast reply from 192.168.1.254 [58:98:35:57:a0:70]  2.268msSent 5 probes (1 broadcast(s))Received 5 response(s)tcpdump eth0.1 - test pingroot@ubuntu:~# tcpdump -n -i eth0.1 -v &[1] 5317root@ubuntu:~# ping -c5 -q -I eth0.1 192.168.1.254PING 192.168.1.254 (192.168.1.254) from 192.168.1.145 eth0.1: 56(84) bytes of data.tcpdump: listening on eth0.1, link-type EN10MB (Ethernet), capture size 65535 bytes13:18:37.612558 IP (tos 0x0, ttl 64, id 2595, offset 0, flags [DF], proto ICMP (1), length 84)    192.168.1.145 > 192.168.1.254: ICMP echo request, id 5318, seq 2, length 6413:18:37.618864 IP (tos 0x68, ttl 64, id 14493, offset 0, flags [none], proto ICMP (1), length 84)    192.168.1.254 > 192.168.1.145: ICMP echo reply, id 5318, seq 2, length 6413:18:37.743650 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.1.87 tell 192.168.1.86, length 4613:18:38.134997 IP (tos 0x0, ttl 128, id 23547, offset 0, flags [none], proto UDP (17), length 229)    192.168.1.86.138 > 192.168.1.255.138: NBT UDP PACKET(138)13:18:38.614580 IP (tos 0x0, ttl 64, id 2596, offset 0, flags [DF], proto ICMP (1), length 84)    192.168.1.145 > 192.168.1.254: ICMP echo request, id 5318, seq 3, length 6413:18:38.793479 IP (tos 0x68, ttl 64, id 14495, offset 0, flags [none], proto ICMP (1), length 84)    192.168.1.254 > 192.168.1.145: ICMP echo reply, id 5318, seq 3, length 6413:18:39.151282 IP6 (class 0x68, hlim 255, next-header ICMPv6 (58) payload length: 32) fe80::5a98:35ff:fe57:e070 > ff02::1:ff6b:e9b4: [icmp6 sum ok] ICMP6, neighbor solicitation, length 32, who has 2001:818:d812:da00:8ae3:abff:fe6b:e9b4      source link-address option (1), length 8 (1): 58:98:35:57:a0:7013:18:39.615612 IP (tos 0x0, ttl 64, id 2597, offset 0, flags [DF], proto ICMP (1), length 84)    192.168.1.145 > 192.168.1.254: ICMP echo request, id 5318, seq 4, length 6413:18:39.746981 IP (tos 0x68, ttl 64, id 14496, offset 0, flags [none], proto ICMP (1), length 84)    192.168.1.254 > 192.168.1.145: ICMP echo reply, id 5318, seq 4, length 64--- 192.168.1.254 ping statistics ---5 packets transmitted, 5 received, 0% packet loss, time 4008msrtt min/avg/max/mdev = 2.793/67.810/178.934/73.108 mscleanup tcpdumproot@ubuntu:~# killall tcpdump >> /dev/null 2>&19 packets captured12 packets received by filter0 packets dropped by kernel[1]+  Done                    tcpdump -n -i eth0.1 -vtcpdump eth0.2 - test pingroot@ubuntu:~# tcpdump -n -i eth0.2 -v &[1] 5320root@ubuntu:~# ping -c5 -q -I eth0.2 192.168.1.254PING 192.168.1.254 (192.168.1.254) from 192.168.1.146 eth0.2: 56(84) bytes of data.tcpdump: listening on eth0.2, link-type EN10MB (Ethernet), capture size 65535 bytes13:18:41.536874 ARP, Ethernet (len 6), IPv4 (len 4), Reply 192.168.1.254 is-at 58:98:35:57:a0:70, length 4613:18:41.536933 IP (tos 0x0, ttl 64, id 2599, offset 0, flags [DF], proto ICMP (1), length 84)    192.168.1.146 > 192.168.1.254: ICMP echo request, id 5321, seq 1, length 6413:18:41.539255 IP (tos 0x68, ttl 64, id 14507, offset 0, flags [none], proto ICMP (1), length 84)    192.168.1.254 > 192.168.1.146: ICMP echo reply, id 5321, seq 1, length 6413:18:42.127715 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.1.87 tell 192.168.1.86, length 4613:18:42.511725 IP (tos 0x0, ttl 64, id 2600, offset 0, flags [DF], proto ICMP (1), length 84)    192.168.1.146 > 192.168.1.254: ICMP echo request, id 5321, seq 2, length 6413:18:42.514385 IP (tos 0x68, ttl 64, id 14527, offset 0, flags [none], proto ICMP (1), length 84)    192.168.1.254 > 192.168.1.146: ICMP echo reply, id 5321, seq 2, length 6413:18:42.743856 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.1.87 tell 192.168.1.86, length 4613:18:43.511727 IP (tos 0x0, ttl 64, id 2601, offset 0, flags [DF], proto ICMP (1), length 84)    192.168.1.146 > 192.168.1.254: ICMP echo request, id 5321, seq 3, length 6413:18:43.513768 IP (tos 0x68, ttl 64, id 14528, offset 0, flags [none], proto ICMP (1), length 84)    192.168.1.254 > 192.168.1.146: ICMP echo reply, id 5321, seq 3, length 6413:18:43.637598 IP (tos 0x0, ttl 128, id 23551, offset 0, flags [none], proto UDP (17), length 225)    192.168.1.86.17500 > 255.255.255.255.17500: UDP, length 19713:18:43.641185 IP (tos 0x0, ttl 128, id 23552, offset 0, flags [none], proto UDP (17), length 225)    192.168.1.86.17500 > 192.168.1.255.17500: UDP, length 19713:18:43.641201 IP (tos 0x0, ttl 128, id 23553, offset 0, flags [none], proto UDP (17), length 225)    192.168.1.86.17500 > 255.255.255.255.17500: UDP, length 19713:18:43.743890 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.1.87 tell 192.168.1.86, length 4613:18:44.510758 IP (tos 0x0, ttl 64, id 2602, offset 0, flags [DF], proto ICMP (1), length 84)    192.168.1.146 > 192.168.1.254: ICMP echo request, id 5321, seq 4, length 6413:18:44.512892 IP (tos 0x68, ttl 64, id 14538, offset 0, flags [none], proto ICMP (1), length 84)    192.168.1.254 > 192.168.1.146: ICMP echo reply, id 5321, seq 4, length 6413:18:45.510794 IP (tos 0x0, ttl 64, id 2603, offset 0, flags [DF], proto ICMP (1), length 84)    192.168.1.146 > 192.168.1.254: ICMP echo request, id 5321, seq 5, length 6413:18:45.519701 IP (tos 0x68, ttl 64, id 14539, offset 0, flags [none], proto ICMP (1), length 84)    192.168.1.254 > 192.168.1.146: ICMP echo reply, id 5321, seq 5, length 6413:18:49.287554 IP6 (class 0x68, hlim 255, next-header ICMPv6 (58) payload length: 32) fe80::5a98:35ff:fe57:e070 > ff02::1:ff6b:e9b4: [icmp6 sum ok] ICMP6, neighbor solicitation, length 32, who has 2001:818:d812:da00:8ae3:abff:fe6b:e9b4      source link-address option (1), length 8 (1): 58:98:35:57:a0:7013:18:50.013463 IP (tos 0x0, ttl 255, id 50737, offset 0, flags [DF], proto UDP (17), length 73)    192.168.1.146.5353 > 224.0.0.251.5353: 0 [2q] PTR (QM)? _ipps._tcp.local. PTR (QM)? _ipp._tcp.local. (45)13:18:50.218874 IP6 (class 0x68, hlim 255, next-header ICMPv6 (58) payload length: 32) fe80::5a98:35ff:fe57:e070 > ff02::1:ff6b:e9b4: [icmp6 sum ok] ICMP6, neighbor solicitation, length 32, who has 2001:818:d812:da00:8ae3:abff:fe6b:e9b4      source link-address option (1), length 8 (1): 58:98:35:57:a0:7013:18:51.129961 IP6 (class 0x68, hlim 255, next-header ICMPv6 (58) payload length: 32) fe80::5a98:35ff:fe57:e070 > ff02::1:ff6b:e9b4: [icmp6 sum ok] ICMP6, neighbor solicitation, length 32, who has 2001:818:d812:da00:8ae3:abff:fe6b:e9b4      source link-address option (1), length 8 (1): 58:98:35:57:a0:7013:18:52.197074 IP6 (hlim 255, next-header UDP (17) payload length: 53) 2001:818:d812:da00:200:ff:fe00:22.5353 > ff02::fb.5353: [udp sum ok] 0 [2q] PTR (QM)? _ipps._tcp.local. PTR (QM)? _ipp._tcp.local. (45)13:18:54.128240 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.1.87 tell 192.168.1.86, length 46--- 192.168.1.254 ping statistics ---5 packets transmitted, 0 received, 100% packet loss, time 4000mscleanup tcpdumproot@ubuntu:~# killall tcpdump >> /dev/null 2>&113:18:54.657731 IP6 (class 0x68, hlim 255, next-header ICMPv6 (58) payload length: 32) fe80::5a98:35ff:fe57:e070 > ff02::1:ff6b:e9b4: [icmp6 sum ok] ICMP6, neighbor solicitation, length 32, who has 2001:818:d812:da00:8ae3:abff:fe6b:e9b4      source link-address option (1), length 8 (1): 58:98:35:57:a0:7013:18:54.743174 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.1.87 tell 192.168.1.86, length 4625 packets captured26 packets received by filter0 packets dropped by kernel[1]+  Done                    tcpdump -n -i eth0.2 -vtcpdump eth0.3 - test pingroot@ubuntu:~# tcpdump -n -i eth0.3  icmp &[1] 5324root@ubuntu:~# ping -c5 -q -I eth0.3 192.168.1.254 PING 192.168.1.254 (192.168.1.254) from 192.168.1.147 eth0.3: 56(84) bytes of data.tcpdump: verbose output suppressed, use -v or -vv for full protocol decodelistening on eth0.3, link-type EN10MB (Ethernet), capture size 65535 bytes13:18:56.373434 IP 192.168.1.147 > 192.168.1.254: ICMP echo request, id 5325, seq 1, length 6413:18:57.372116 IP 192.168.1.147 > 192.168.1.254: ICMP echo request, id 5325, seq 2, length 6413:18:57.381263 IP 192.168.1.254 > 192.168.1.147: ICMP echo reply, id 5325, seq 2, length 6413:18:58.371141 IP 192.168.1.147 > 192.168.1.254: ICMP echo request, id 5325, seq 3, length 6413:18:58.373275 IP 192.168.1.254 > 192.168.1.147: ICMP echo reply, id 5325, seq 3, length 6413:18:59.371165 IP 192.168.1.147 > 192.168.1.254: ICMP echo request, id 5325, seq 4, length 6413:18:59.373259 IP 192.168.1.254 > 192.168.1.147: ICMP echo reply, id 5325, seq 4, length 6413:19:00.371211 IP 192.168.1.147 > 192.168.1.254: ICMP echo request, id 5325, seq 5, length 6413:19:00.373278 IP 192.168.1.254 > 192.168.1.147: ICMP echo reply, id 5325, seq 5, length 64--- 192.168.1.254 ping statistics ---5 packets transmitted, 1 received, 80% packet loss, time 4001msrtt min/avg/max/mdev = 13.666/13.666/13.666/0.000 mscleanup tcpdumproot@ubuntu:~# killall tcpdump >> /dev/null 2>&19 packets captured10 packets received by filter0 packets dropped by kernel[1]+  Done                    tcpdump -n -i eth0.3 icmpcheck arp cacheroot@ubuntu:~# arp -nAddress                  HWtype  HWaddress           Flags Mask            Iface192.168.1.254            ether   58:98:35:57:a0:70   C                     eth0.1192.168.1.254            ether   58:98:35:57:a0:70   C                     eth0.2192.168.1.254            ether   58:98:35:57:a0:70   C                     eth0.3
Linux - Only first virtual interface can ping external gateway
linux;ubuntu;networking