[tcpdump-workers] virtual interface with macvlan
Hyun Yoo
easetheworld at gmail.com
Tue Jan 12 18:53:25 EST 2016
Hello. Happy new year.
I'm trying to send a pcap file from linux machine A to B(directly
connected).
In machine A, I set up two virtual interfaces.
# ip link add link eth1 eth1:1 address 11:11:11:11:11:11 type macvlan
# ip link set eth1:1 up
# ip link add link eth1 eth1:2 address 22:22:22:22:22:22 type macvlan
# ip link set eth1:2 up
# tcpdump -e -i eth1:1
In machine B, I send a pcap file which is a smtp session
between mac 11:11:11:11:11:11 and 22:22:22:22:22:22.
# tcpreplay -i eth1 smtp.pcap
I expected that eth1:1 in machine A captures only
11:11:11:11:11:11-destined-packet.
but eth1:1 and eth1:2 always capture every packets.
What am I doing wrong?
More information about the tcpdump-workers
mailing list