Virtual interfaces
eeknay opened this issue · 10 comments
Hey,
I have an issue on one of my boxes with virtual interfaces. I can't seem to get it to work an it shows me the error "(null) is not an ethernet".
Virtual interfaces, as in interfaces within vmware, virtualbox, xen, etc?
Or are you talking in the eth0:0 sense?
I have done a little digging into this, and that error is a libpcap error regarding opening the interface.
I was expecting that opening eth0 (the physical to the virtual eth0:0, eth0:1, etc) would capture all virtuals, however when I tried to replicate the issue on a test machine I was able to operate on a virtual interface.
I suspect that this is a libpcap issue. Can I confirm the version of libpcap you are using please?
I've got libpcap-dev (1.5.3-2) on some Parallels Virtuozzo virtualization.
I have setup an Ubuntu box with libpcap-dev 1.5.3-2 and a virtual interface (eth0:0) within VMWare and it seems to work. So I'm not sure why you are experiencing the issue.
Maybe I have accidentally fixed this, are you running the latest version from the git repo?
I just checked. I have the same libpcap-dev version.
Curiously, tcpdump works on the interface.
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:164648 errors:0 dropped:0 overruns:0 frame:0
TX packets:164361 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:65859172 (65.8 MB) TX bytes:56162962 (56.1 MB)
venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr: x.x.x.x P-t-P:x.x.x.x Bcast:x.x.x.x Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
The error occurs on either venet0 and on venet0:0
Interesting, as this happens on venet0 also, not just venet0:0, I wonder if it could be something peculiar to the venet interface type. I'll do some investigation, thanks!
I have made a number of improvements/fixes the past few months and this seems to be working on my test linux equipment, but I don't want to close the issue until it works for you.... Does the current github version look any better for you?
I can't replicate this with the current version.
If you are still experiencing the issue please reopen the issue and I'll happily deal with it!